WPF

TwitterFacebook
Get flash to fully experience Pearltrees
WPF Controls

MVVM

So you have Ribbon, Menu, RibbonTab, and then the Ribbon Group. When you create a new Ribbon application, you get this wireframe ready – so its easy to start. You got the group – lets populate it. If you look at the Xaml, the Ribbon controls have a SmallImageResource and a LargeImageResource property. This enables the ribbon to use the appropriate image when resizing.

Lester's WPF blog

http://blogs.msdn.com/b/llobo/
http://blogs.msdn.com/b/llobo/archive/2006/12/13/vista-look-on-non_2d00_aero-themes.aspx I've tested this, but the results is not here, I work with .NET 3 RTM, VS 2005 Team Suite and extension for WPF/WCF on Windows XP Pro SP2, I've test this piece of code :

Vista look on Non-Aero themes

By now, many of you know that Windows ® Presentation Foundation (WPF) makes it easy to design robust user interfaces. But what you probably didn't know is that it also provides powerful data-binding capabilities. With WPF, you can perform data manipulation using Microsoft ® .NET Framework code, XAML, or a combination of both. You can bind to controls, public properties, XML, or objects, making data binding quick, flexible, and easier than ever. So let's take a look at how you can get started binding your controls to the data sources of your choice. http://msdn.microsoft.com/en-us/magazine/cc163299.aspx

Data Binding in WPF

Introduction One of the most difficult aspects in creating applications from user requirements is the process of capturing the information that pertains to control behaviors. Situations where controls have many dependencies on both data and the state of other controls often lead to spaghetti code.

WPF and Property Dependencies

http://www.codeproject.com/Articles/23487/WPF-and-Property-Dependencies-Part-I

Why is focus in WPF so tricky?

http://www.pluralsight-training.net/community/blogs/eburke/archive/2009/03/18/why-is-focus-in-wpf-so-tricky-managing-and-understanding-focus-in-a-wpf-application.aspx Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /community/blogs/eburke/archive/2009/03/18/why-is-focus-in-wpf-so-tricky-managing-and-understanding-focus-in-a-wpf-application.aspx
http://blogs.msdn.com/b/greg_schechter/archive/2008/05/09/a-series-on-gpu-based-effects-for-wpf.aspx Greg- Is it possible to view the new ShaderEffects in a VirtualBox virtual machine? In my early tests, BitmapEffects seem to work, but the ShaderEffects are not displayed at all.

Series on GPU-based Effects for WPF

A hobby project I have been working on, to clear my mind of the daily grind, is a Control that lets a developer host a Silverlight application to WPF. A good kept secret is there is complete COM API for hosting Silverlight outside the browser. There is even sample C++ code here .

Render Silverlight in WPF

http://jmorrill.hjtcentral.com/Home/tabid/428/EntryId/439/Render-Silverlight-in-WPF-WPF-SilverlightViewport.aspx
This is the first part in a seven part series. Links to the other parts are included at the bottom of this post. Now that the Release Candidate for Visual Studio 2010 is publicly available, we’ve started receiving questions from inquisitive users about how Visual Studio 2010 itself was built. In particular, one questioner wanted to know if we were going to keep all the WPF “magic” to ourselves.

WPF in Visual Studio 2010 - Part 1

http://blogs.msdn.com/b/visualstudio/archive/2010/02/16/wpf-in-visual-studio-2010-part-1.aspx
http://serialseb.blogspot.com/2007/08/wpf-tips-5-receive-notifications-for.html Receiving notifications for dependency property changes on an existing object is a very common scenario. The way to do it properly is not very obvious. So much so that while reviewing some code, I found the following snippet. // Believe it or not, this seems to be the only way to get change // notifications for DPs unless you derive from the relevant // class and override OnPropertyChanged. PropertyDescriptor prop = TypeDescriptor.GetProperties(obj)[ "Prop" ]; prop.AddValueChanged(obj, delegate { viewModel.RaisePropertyChanged( "Prop" ); }); There's a few issues with this code.

Receive notifications for dependency prope

http://blogs.msdn.com/b/mikeormond/archive/2009/01/14/creating-3d-models-for-wpf.aspx

Creating 3D Models for WPF

I’ve had an opportunity recently to play around with WPF’s 3D capabilities to try and recreate part of the Tesco product viewer demo at PDC08 . Of course one of the first hurdles is actually having some sort of 3D model to play with (once you get bored with a cube). There are lots of sites where you can download 3D models in various formats (many of them chargeable) but I wanted to understand a little about the tools and techniques so I decided to build a few simple 3D models myself.
While it’s great that we have a common Xaml stack that works across WPF, WF, and WCF, there are some slight differences in the way that WPF loads XAML that doesn’t work with the simple XamlServices.Load API. For WPF XAML, you should use System.Windows.Markup.XamlReader.Load and System.Windows.Markup.XamlWriter.Save. This will ensure that your XAML will load and save correctly.

Use XamlReader.Load for WPF XAML

This one isn’t for the faint of heart, but if you are a Direct3D guru and always wanted some more low level access…here is a good start. This hack does a overwrites IDirect3DSwapChain9::Present method in memory to hook into the call WPF makes. In that hook, I also pull out the IDirect3DDevice9 pointer. What can we do with this? Well for one, it would be possible to render WPF to a texture in a Direct3D scene. You can also fiddle with the WPF rendering process.

How to get access to WPF’s internal

—Executing Commands with Input Gestures

Using the Help command in such a simple dialog may seem like overkill when a simple event handler for Click would do, but the command has provided an extra benefit (other than localized text): automatic binding to a keyboard shortcut. Applications typically invoke their version of help when the user presses the F1 key. Sure enough, if you press F1 while displaying the dialog defined in Listing 3.10, the Help command is automatically launched, as if you clicked the Help Button !
When I use an ItemsControl (or subclass of ItemsControl, such as ListBox) to display a list of items, I often want the width of an element in each item to match the width of the equivalent elements displayed for all other items. That is easy to achieve by setting the Width property of an element in the DataTemplate used by the ItemTemplate property, but using hard-coded width and height values is generally considered to be a bad practice. It’s better to not specify a width, and let the element figure out how big it should be based on its content. But, if the element created for each item in the ItemsControl is sizing to its own content, that means that the sizes of all elements created for items will usually not be equal to each other.

Synchronizing the width of elements in an ItemsControl « Josh Sm