background preloader

Windows Presentation Foundation

Windows Presentation Foundation

http://msdn.microsoft.com/en-us/library/ms754130(v=vs.110).aspx

Related:  Architectures

XAML Overview (WPF) XAML is a declarative markup language. As applied to the .NET Framework programming model, XAML simplifies creating a UI for a .NET Framework application. You can create visible UI elements in the declarative XAML markup, and then separate the UI definition from the run-time logic by using code-behind files, joined to the markup through partial class definitions. XAML directly represents the instantiation of objects in a specific set of backing types defined in assemblies. This is unlike most other markup languages, which are typically an interpreted language without such a direct tie to a backing type system. XAML enables a workflow where separate parties can work on the UI and the logic of an application, using potentially different tools.

Automatic WPF mapping to Database (Access 07 edition) Download source code - 500 KB Abstract The idea is to create an automatic DAL and an automatic mapping that creates the storage, tables, SUID (Select, Update ...), and WPF mapping from/to the controls to an instance of the classes. Prerequisites Visual Studio 2008 SP1 WPF Toolkit Feb. 2010 release, just for the DatePicker control MS Access 2007, but not necessary WPF Architecture WPF displays data by traversing the unmanaged data structures managed by the milcore. These structures, called composition nodes, represent a hierarchical display tree with rendering instructions at each node. This tree, illustrated on the right hand side of the figure below, is only accessible through a messaging protocol. There is a very important architectural detail to notice here – the entire tree of visuals and drawing instructions is cached.

WPF Tutorial - Introduction To Dependency Properties So I was going to dive right in and do a part 2 on the WPF ListView tutorial from last week, but as I was writing the code I realized that a lot of it relies on some new and very different constructs that WPF provides to developers. Two of these are deep enough topics on their own that I thought it would be a good idea to give an introduction to them before I dove back into the ListView stuff. So today we are going to talk about Dependency Properties, and in a future tutorial I will talk about how binding works in WPF. What are dependency properties? The quick definition from the MSDN docs says that a dependency property is a "property that is backed by the WPF property system."

Code-Behind and XAML in WPF <Page xmlns=" xmlns:x=" x:Class="MyNamespace.MyCanvasCodeInline"><Button Name="button1" Click="Clicked">Click Me!</Button><x:Code><![CDATA[ void Clicked(object sender, RoutedEventArgs e) { button1.Content = "Hello World"; } ]]></x:Code></Page>

WPF: Visualizing arbitrary XML documents in a TreeView control When I was playing around with the TreeView control and HierarchicalDataTemplates yesterday I thought it would be nice to have some sort of generic piece of XAML/code (window) that would allow me to render an arbitrary XML document in a TreeView control. Surprisingly, a little search on the web turned up this thread in the WPF forum which was already very close to what I had in mind. In this blog, I’ll show you how to create a window that’ll render arbitrary XML documents in a WPF TreeView control. The window will have an initial XML-doc provided directly via XAML, but will allow you to load any other XML document into the TreeView. I’ll also show how to, instead of iterating through all nodes via code, utilize Styles to help expanding or collapsing the entire XML hierarchy, allowing to then do the trick with a single line of code.

Silverlight and WPF Behaviours and Triggers - Understanding, Exploring And Developing Interactivity using C#, Visual Studio and Blend Download related source code Introduction The objective of this article series is to give a quick overview of Behaviors, Triggers and Actions in Silverlight and WPF. how to build an outlook style application – part 1 - Erwin van der Valk's blog: Practicing patterns [Update] This is part 1 of this post. Read the second post here. At the end of building prism V2, we have played around with different application styles to see how easy it is to consume our own libraries. In this blog post, I’m going to describe my attempt at creating an outlook style application.

A Beginners Guide To WPF I have been working with WPF a little while now and have published a fair number of WPF articles over at codeproject but in one of them I was slammed for writing a intermediate article that had been mistakenly classified as a beginners article. At first I was a bit annoyed at this, but then I started to hunt about, and there really aren’t that many beginners articles for WPF, so I decided to write a beginners WPF series. This series will be structured as follows: Brent Says… » Blog Archive » MVVM Fabric: Using TriggerAction A few days ago, I wrote about using MVVM Fabric’s ActionCommand. Commanding can be useful with controls that provide a Command property, such as Buttons and MenuItems. However, commanding doesn’t help when you want to wire up arbitrary events to your view model. That is where TriggerAction come in.

how to build an outlook style application with prism v2 – Part 2 - Erwin van der Valk's blog: Practicing patterns A while ago, I put an example application on my blog on how to build an outlook style application. The last couple of weeks, I’ve been working on a new version of this app. I’ve done some bugfixes, but also included support for opening use cases in a popup window. It’s turning out to be quite an advanced demo of what’s possible with Prism.

Related:  Sites généralistesWPF/Silverlight