Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Browsing all 18858 articles
Browse latest View live

Adding data to listbox

I have a button which when selected, pulls one gif image from the database to display in a listbox. I'm trying to have this action repeated, where every time the user selects the button, the new gif is...

View Article


Image may be NSFW.
Clik here to view.

Vertical alignment of DatagridCell

Setting DataGrid RowHeight and the following DatagridCell style is making only the row bigger and not the cell from the image inserted. Please help me to correct this. <Style...

View Article


AddingNewItem method not called on datagrid combobox selection change in wpf...

I have a WPF datagrid with first column as a data template column with combobox control. I allow the users to add rows to the datagrid. When the user changes the selection in combobox( which is the...

View Article

Closing the main window

I want to close the main window by the code: void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { try { e.Cancel = true; Application.Current.Shutdown(); } catch { } }In my...

View Article

RibbonToggleButton with images for different DPI

Hi everyone!I'm trying to implement approach described in this MSDN article  - http://msdn.microsoft.com/en-us/library/windows/desktop/dd316921(v=vs.85).aspx - and I want to do this for...

View Article


Image may be NSFW.
Clik here to view.

DataGrid: Show row index and reset sorting

I am a WPF-noob and have two DataGrid problems:Problem 1:What I got: A DataGird that gets its data from a array:<DataGrid x:Name="dgMain" ItemsSource="{Binding TestArray}" Margin="0,20,0,0"...

View Article

Slow opening WPF Window after first opening VS

Hi to everyone.I started a new WPF project but when I open first Window after opening of VS it takes 2-3 minutes.After the first opening it takes just a second.I find a lot of threads on web that...

View Article

How to use svg in xaml

Hi,how can I use svg files in my WPF application, for example as Icon for buttons?Thanks for hints and help

View Article


Filtering a CollectionView

Hi. I'm struggling to do the following:I have a WPF desktop app (.Net 4.5). I drag-and-drop a DataTable in a DataSet from the Data Sources window onto a Window. It creates a DataGrid, a DataSet and a...

View Article


How to implement GIF icon in tree view

I have tried to search related topics about this, and found out MediaElementand PictureBox being used for GIF icon. Have tired implement by using MediaElements but it does not...

View Article

Why cancellation is not working well in main window closing event?

I have a Start button event and Main window closing event. Basically I click the button to invoke an asynchronous task. private static CancellationTokenSource cTokenSource; private static...

View Article

New Features in WFP 4.6: The Roadmap for WPF

Microsoft today published a post on the .NET Framework blog where they list a few examples to what new features in WPF you can expect to see in upcoming releases of Visual Studio 2015 and .NET 4.6,...

View Article

Optimize PolyLineSegment Points

Hello,In my code I create a PathGeometry that corresponds to the outline of a widened PathGeometry.This outline contains several points into its PolyLineSegment. I need to minimize the number of...

View Article


How to fill colors in each sector of circle and apply click event to each...

I want to draw an circle and fill different many sectors(180 sectors) with different colors which is evenly evenly divided. And have to apply MouseLeftButtonUp event to each sector of circle.. But do...

View Article

Image may be NSFW.
Clik here to view.

how to implement cross scrollbar in listbox or listview?

Hi all,The below picture is one table by listbox or listview, I just separate it to illustrate my question.I need vertical scrollbar for red part, and a horizontal scrollbar for blue par, they are in...

View Article


Removing data from a listbox

I currently have a listbox, which when selected, pulls gif images from the database to display in a listbox.  private void Btn_Click(object sender, RoutedEventArgs e) { SQLiteConnection sqliteCon = new...

View Article

Disabling button in listview grid in wpf depends on row count

<StackPanel x:Uid="StackPanel_2"  Grid.Row="1" Margin="1,0,0,0" x:Name="raham">                    <ListView x:Uid="lstPurchaseOrder1" x:Name="lstPurchaseOrder1"  HorizontalAlignment="Stretch"...

View Article


dual http request?

Hi. i think webclient bug.http one packet :      GET /635514952419109917 HTTP/1.1 GET /635514952419179979 HTTP/1.1source code is         protected async Task<string> CallGetTaskAsync(string...

View Article

Opening WPF-window in project 1 from project 2 results in project 1 using...

Inside my solution I have a WPF-project called Host which is the start up-project and acts as a shell for other WPF-projects.Inside Host I open a window from another project like this:...

View Article

storing list box contents in array

I have a listbox displaying gifs (pulled from a database).I would like to be able to store the listbox's contents into an array. I tried assigning the source to an array, but I'm getting the error that...

View Article
Browsing all 18858 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>