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

bind Static property in Xaml WPF

 Dear All,I have a class (Session), which contain static property. Static property contain Brush type property (ForeGround). I want to bind Foreground property in a resource in wpf...

View Article


How to Bind Data to DataGrid at Run-Time

All, I have some test code that works with some test data defined as private ObservableCollection<TestClass> _testData = new ObservableCollection<TestClass>(); public...

View Article


Serializing FixedDocument (not to XPS)

Hello,I'm writing an application that should look like for example a very simple version of CorelDraw. It should allow user to edit a single page document and put some elements (lines, images, text...

View Article

PART_EditableTextBox with Image showing In the ComboBox issue

Hi,I want a ComboBox that in each of the item, there is an image and a TextBox. This is easy to be resolved with the datatemplate.What I want is, If the ComboBox is Editable, I also want to show the...

View Article

get current geolocation

hi all,i'm trying to develop a wpf application that displays on a map (bing maps wpf control) the current geolocation. obviously (for computers) would be better to get the location via wifi or ip,...

View Article


XAML Framework and "Legacy" WPF Desktop Apps

I understand that Windows 8 now has "native" support for XAML.  Is this also true for Windows Server 2012?  Also...does this "native" support provide performance benefits for .NET 4 WPF...

View Article

MediaElement playback of a WMV file containing multiple video streams - dual...

We are using MediaFoundation to capture dual video streams to a single media file (WMV). After the recording is complete, we would like to use a WPF application to play back and display the two video...

View Article

Set TabItem.IsSelected when HeaderTemplate Button is Clicked.

I have the following Style, and want to set the TabItems IsSelected Property to True when the Button is clicked or IsPressed. how can i achieve this?<Style x:Key="ClosableStyle"...

View Article


Wpf threadpool question

Hi,I have to implement validation on datatable in my project but it should be running on different background thread, not main UI thread. And once it's done it should show list of errors on screen....

View Article


Error accessing directory when trying to read a content file

Hi,  I have created a WPF application that uses  flow documents(as templates) to help generate reports. These flow documents are saved as content files. When running the application from code, i am...

View Article

Pasar informacion de datagrid a un archivo de excel wpf c#

Mi programa llena un datagrid con información lo que quiero hacer es que con el clic de un botón se pase la información a un archivo de excelgracias por su tiempo

View Article

show 2 column in Desplay member in DataGridComboBoxColumn

Hellin normal i write this code for fill DataGridComboBoxColumn <DataGridComboBoxColumn Header="bank cheque " Width="100" ItemsSource="{Binding Source={StaticResource BankLookup}}"...

View Article

What is the correct way to organize the Buttons of the ribbon when there are...

I am working in an application that didn't have a ribbon before. We are making major changes in the way the functionality of the application can be accesed, but not in the functionality itself.The...

View Article


How can I group a CollectionViewSource and show a specific grouping in the...

If I have a treeview, which has its items grouped by a string categoryName using the collectionview's grouping feature.Some of the items in the collectionview has an empty categoryName. For these I...

View Article

WPF window width does not adjust properly when ListView scrollbars are removed

I have a WPF project developed with VS 2008 that is using version 3.5 of the .NET framework.  The initial window width is set to 680 and SizeToContent is set to "Width" only.  There are 3 ListView...

View Article


CustomChrome issue with WindowStyle=None, restoring window

Hey guys!Here's some context for my problem:I used downloaded the CustomChromeLibrary, and changed the Shell Reference from Microsoft.Windows.Shell to System.Windows.Shell.Working from the...

View Article

How to change Listbox Selected Item Background in Windows 8

<Style.Resources><SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="DarkRed"/><SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Red"...

View Article


how do I add my textblock to my canvas?

Dim w_label as New TextBlock w_label.Width = 40 w_label.Height = 25 w_label.Padding = new Thickness(p, 25, 0, 0) w_label.Text = today.DayOfWeek.ToString.Substring(0, 3) canvas1.children.Add(w_label)

View Article

autoresize controls in a usercontrol

Hi everyone,I'm trying some Windows Phone development and created a small user control. (clock)Problem is that I would like all the subcontrols resize/move to the correct relative position when setting...

View Article

Define dependency between nodes in WPF TreeviewItem

Hi Folks.I am newbie to WPF.Working on treeview with MVVM pattern.Currently I am binding xml data to Treeview ItemsSource.(Treeview with checkbox).How can I define dependency between nodes like A ---B...

View Article
Browsing all 18858 articles
Browse latest View live


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