DCSIMG
January 2011 - Posts - Essential XAML

January 2011 - Posts

0
Comments

Animating ViewModel Properties instead of View Bound Properties by Tomer Shamam

Trying to animate a View property which is bound two-way to a View Model property, yields working animation but also unchanged View Model. It turns out that animating a two-way data-bound property breaks the data-binding! For example, having a line bounds to its view-model, X1, Y1, X2, Y2 properties, if you'll try to animate the Line, the line will be animated but at the same time its X1, Y1, X2, Y2 properties will left unbound. So how to fix that? Instead of animating the view, animate the view...
8
Comments

Blendability Part III – View Model Locator Replacement using MEF by Tomer Shamam

Everybody loves MEF! Don't you? I think MEF is one of the best things happened to the latest .NET Framework 4. Just in case that you don't know what I'm talking about, I urge you to start reading about MEF in my colleague, Bnaya Eshet, blog . He has great MEF tutorial for beginners. So why am I writing about MEF in this WPF related post anyway? Well MEF is a great framework for extensibility and object composition, also it can be used as a DI container, declaratively and imperatively...
0
Comments

Sela SDP 2011 Registration is now Open! by Tomer Shamam

SAVE THE DATE: 13-14.3 Tutorials, 15-16.3 Presentations. Sela College SDP 2011 registration is now open, and I’m leading a one day “ Smart Client Applications with WPF, Silverlight, and MVVM ” tutorial and one interesting session related to WPF, MEF and MVVM. Sela Developer Practice brings to you the best of Microsoft’s PDC. This is a great opportunity to meet the best of Sela’s experts and to be exposed to the new technologies and products revealed in the last year. This four days conference comprises...
2
Comments

WPF Quiz #3 – Naming by Tomer Shamam

Having the following UserControl: < UserControl x : Class = "Quiz3.RobotView"             xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"             xmlns : x = http://schemas.microsoft.com/winfx/2006/xaml >     < Grid >         < ListBox x : Name = "listBoxParts" />    ...
תגים:, , ,
0
Comments

Typed styles in WPF by Tomer Shamam

Based on my previous post, WPF Quiz #2 , I would like to shed some light on a very important mechanism in WPF related to styles. WPF has a very handy feature called typed-style, which is a style located in a resource dictionary, has no explicit key (or the key explicitly set as the type of the target) and is type specific. For an instance: < Style TargetType ="{ x : Type Button } " >     < Setter Property = "Background" Value = "Red" /> <...
תגים:, , ,
2
Comments

WPF Quiz #2 – Styles by Tomer Shamam

Having the following WPF code snippets: < Application x : Class = "Quiz2.App"             xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"             xmlns : x = "http://schemas.microsoft.com/winfx/2006/xaml"             StartupUri = "MainWindow.xaml" >    ...
תגים:, , ,
0
Comments

WPF Quiz #1 – Resources by Tomer Shamam

Having the following WPF code snippets: < Application x : Class = "Quiz1.App" xmlns = http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns : x = "http://schemas.microsoft.com/winfx/2006/xaml" >     < Application.Resources >         < SolidColorBrush x : Key = "BackgroundBrush" Color = "Red" />     </ Application.Resources > </ Application > public  ...
תגים:, , ,
20
Comments

Blendability Part II – Design time support for Prism by Tomer Shamam

In my previous post I’ve presented the Blendability concept and explained how to leverage Blend’s sample-data generation in order to support view-model at design time. In this post I would like to continue with this concept and reveal a tiny research I’ve done related to design time support of Prism modules. If you’ve ever developed a WPF Composite Application using Prism you may be aware of a frustrating problem while trying to work with the Shell at design time. It always ends with something like...
Powered by Community Server (Commercial Edition), by Telligent Systems