Quantcast
Channel: WPF » Binding
Browsing latest articles
Browse All 10 View Live

A quick overview of MVVM

Model View ViewModel (MVVM) is a design pattern based on Model View Controller (MVC) but specifically tailored to Windows Presentation Foundation (WPF). MVVM is not a framework per se but many...

View Article



WPF Binding to a property of a static class

Binding to a property of a static class is quite straight forward. The binding string looks like this: {x:Static s:MyStaticClass.StaticValue2} For an example do this: Create a new folder in your...

View Article

WPF Binding to a property of a static class

Binding to a property of a static class is quite straight forward. The binding string looks like this: {x:Static s:MyStaticClass.StaticValue2} For an example do this: Create a new folder in your...

View Article

A snippet for Properties in a ViewModel

If you are using MVVM you probably should create a snippet very similar to the following to save time. C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC#\Snippets\1033\Visual C#\propvm.snippet...

View Article

How to change language at run-time in WPF with loadable Resource Dictionaries...

Update: I created a framework for this here: http://globalizer.codeplex.com/ Dynamically changing the language of a WPF application at run-time or on-the-fly is possible and quite simple. With this...

View Article


Image may be NSFW.
Clik here to view.

How to disable a Button on TextBox ValidationErrors in WPF

Lets say  you want to create a submittable form in WPF. You want to make sure the form is filled out with valid values and you want the Submit button to be disabled until the form is filled out with...

View Article

MVVM and Drag and Drop Command Binding with an Attached Behavior

Drag and drop works quite well already with some UIElements, such as TextBox. However, you may want to using MVVM and binding to bind a command for dragging and dropping to a UIElement that doesn’t...

View Article

Creating an Interface for data binding in Views with WPF

Perhaps you have seen the same idea as me. A list of bound objects and an interface with a list of properties, have a lot in common. To start with, both are contracts. By adding Bindings in WPF, you...

View Article


Displaying Images from a folder with details in WPF

Today I decided to write how to display images from a folder with details using WPF. What is my motivation? This StackOverflow post:...

View Article


Image may be NSFW.
Clik here to view.

A SpinningImage control in WPF

In the past, I once wrote an article about WPF replacement options for an animated gif. Recently I needed to use this again, but I wanted a control that was more MVVM friendly. I also didn’t want to...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images