Top "Wpf" questions

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

Databinding an enum property to a ComboBox in WPF

As an example take the following code: public enum ExampleEnum { FooBar, BarFoo } public class ExampleClass : INotifyPropertyChanged { private ExampleEnum example; public …

.net wpf
How do I get an animated gif to work in WPF?

What control type should I use - Image, MediaElement, etc.?

.net wpf animated-gif
Use StringFormat to add a string to a WPF XAML binding

I have a WPF 4 application that contains a TextBlock which has a one-way binding to an integer value (in this …

c# wpf xaml data-binding string-formatting
WPF Databinding: How do I access the "parent" data context?

I have a list (see below) contained in a window. The window's DataContext has two properties, Items and AllowItemCommand. How …

wpf data-binding datacontext
How do I create a WPF Rounded Corner container?

We are creating an XBAP application that we need to have rounded corners in various locations in a single page …

wpf rounded-corners
WPF: Grid with column/row margin/padding?

Is it easily possible to specify a margin and/or padding for rows or columns in a WPF Grid? I …

wpf grid padding margin
How to read a text file in project's root directory?

I want to read the first line of a text file that I added to the root directory of my …

c# wpf
How to add comments into a Xaml file in WPF?

I used this syntax as I found online but it throws an error: xmlns:x="http://schemas.microsoft.com/winfx/2006/…

c# .net wpf xaml comments
Binding to static property

I'm having a hard time binding a simple static string property to a TextBox. Here's the class with the static …

wpf xaml data-binding
Using FolderBrowserDialog in WPF application

I have a WPF application that I need to have users access directories in. I have searched to the end …

c# .net wpf folderbrowserdialog windowsformsintegration