Top "Wpf" questions

Windows Presentation Foundation, or WPF, is a subsystem for rendering user interfaces in Windows-based applications.

Enter key pressed event handler

I want to capture the text from the textbox when enter key is hit. I am using WPF/visual studio 2010/.…

c# wpf user-interface textbox maskedtextbox
The name 'InitializeComponent' does not exist in the current context

If I create a new project in Visual Studio 2010 SP1 and select "WPF Application" and tries to build the generated …

wpf visual-studio-2010 visual-studio initializecomponent
The calling thread cannot access this object because a different thread owns it

My code is as below public CountryStandards() { InitializeComponent(); try { FillPageControls(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Country Standards", MessageBoxButton.…

c# wpf multithreading backgroundworker
How to get controls in WPF to fill available space?

Some WPF controls (like the Button) seem to happily consume all the available space in its' container if you don't …

wpf user-interface layout
WPF chart controls

I am looking for a very simple WPF chart which should have a 2D graph and should have pan and …

c# wpf charts
Automatic vertical scroll bar in WPF TextBlock?

I have a TextBlock in WPF. I write many lines to it, far exceeding its vertical height. I expected a …

c# .net wpf scrollbar textblock
Open file dialog and select a file using WPF controls and C#

I have a TextBox named textbox1 and a Button named button1. When I click on button1 I want to browse …

c# wpf textbox openfiledialog
Creating Scheduled Tasks

I am working on a C# WPF project. I need to allow the user to create and add a scheduled …

c# wpf scheduled-tasks
How to avoid a System.Runtime.InteropServices.COMException?

In my Microsoft Surface project, I always get a lot of the following exceptions: 'MuReSe.vshost.exe' (Managed (v2.0.50727)): Loaded …

c# .net wpf exception pixelsense
Difference between SelectedItem, SelectedValue and SelectedValuePath

What is the difference betweeen the following: SelectedItem SelectedValue SelectedValuePath All these dependency properties are defined in Selector class. I …

wpf silverlight xaml selecteditem selectedvalue