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

learn more… | top users | synonyms

243
votes
6answers
27k views

How does the new Windows 8 Runtime (WinRT) compare to Silverlight and WPF? [closed]

I am trying to get my head round the new Windows 8 Runtime that is used to create Metro style apps. I know you can use it with XAML and it is based on .NET so C# and VB.NET can be used to write the ...
189
votes
10answers
128k views

How do I use WPF bindings with RelativeSource?

How do I use RelativeSource with WPF bindings and what are the different use-cases?
177
votes
13answers
31k views

INotifyPropertyChanged vs. DependencyProperty in ViewModel

When implementing the ViewModel in a Model-View-ViewModel architecture WPF application there seem to be two major choices how to make it databindable. I have seen implementations that use ...
163
votes
5answers
50k views

What's the difference between StaticResource and DynamicResource in WPF?

When using resources such as brushes, templates and styles in WPF, they can be specified either as StaticResources <Rectangle Fill="{StaticResource MyBrush}" /> or as a DynamicResource ...
161
votes
13answers
35k views

What framework for MVVM should I use? [closed]

I am developing an application with the MVVM model, but I have reached a point where I need to choose which framework to use. Among the possible options are: MVVM Toolkit MVVM Foundation WPF ...
159
votes
8answers
22k views

In WPF, what are the differences between the x:Name and Name attributes?

The title says it all. Sometimes it seems that the Name and x:Name attributes are interchangeable. So, what are the definitive differences between them, and when is it preferable to use one over the ...
154
votes
6answers
38k views

How to bind RadioButtons to an enum?

I've got an enum like this: public enum MyLovelyEnum { FirstSelection, TheOtherSelection, YetAnotherOne }; I got a property in my DataContext: public MyLovelyEnum VeryLovelyEnum { get; set; ...
153
votes
20answers
35k views

What is the correct way to create a single instance application?

Using C# and WPF under .net (rather than WindowsForms or console), what is the correct way to create an application that can only be run as a single instance? I know it has something to do with some ...
146
votes
8answers
131k views

WPF image resources

I come from a mostly web and a little bit Windows Forms background. For a new project, we will be using WPF. The WPF application will need 10 - 20 small icons and images for illustrative purposes. I ...
138
votes
14answers
193k views

Setting WPF image source in code

I'm trying to set a WPF image's source in code. The image is embedded as a resource in the project. By looking at examples I've come up with the below code. For some reason it doesn't work - the image ...
137
votes
18answers
55k views

Handling Dialogs in WPF with MVVM

In the MVVM pattern for WPF, handling dialogs is one of the more complex operations. As your view model does not know anything about the view, dialog communication can be interesting. I can expose ...
132
votes
20answers
52k views

Interview questions: WPF Developer [closed]

What should every WPF developer know? Entry Level Strong .NET 2.0 Background & willing to learn! Explain dependency properties? What's a style? What's a template? Binding Differences between ...
129
votes
22answers
35k views

Qt versus WPF/.NET [closed]

My company is trying to make the decision between using Qt/C++ for our GUI framework or migrating to .NET and using WPF. We have up to this point been using MFC. It seems that .NET/WPF is ...
124
votes
10answers
79k views

How to get Color from Hex color code using .NET?

How can I get Color from a Hex color code(e.g. #FFDFD991)? I am reading a file and getting Hex color code, I need to create the corresponding System.Windows.Media.Color instance for the Hex color ...
120
votes
0answers
23k views

When is Windows Forms the correct choice vs WPF? [duplicate]

Possible Duplicate: WPF versus Windows Forms I presume that WPF is intended to eventually replace Windows Forms altogether, but for now, they are both shipping. My question is, when is one ...

1 2 3 4 5 4293
15 30 50 per page