Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Advanced   (RSS)

WPF and Silverlight namescopes and DataContext differences

When authoring a UserControl, you will more often than not end up data binding properties of objects in your XAML file to properties of your UserControl itself. The most elegant way to do this would be without any code-behind at all, using ElementName
Posted by lvovan | 0 Comments
Attachment(s): NameScopeExample.zip

Why: InvalidOperationException name cannot be found in the name scope of 'System.Windows.Controls.ControlTemplate'

( edit : correction following Nick's comment, about which thread actually creates the elements) This exception is confusing for multiple reasons: the code causing it does works on some occasions, the storyboard(s) referencing the infringing name are valid,
Posted by lvovan | 3 Comments
Filed under: , ,

Attachment(s): EarlyResourceAccessIssue.zip

Introduction à l'utilisation de ShaderEffects en WPF

La version 3.5 SP1 de WPF permet d'intégrer des effets pixel shader directement à vos applications. Ces effets, accessibles par le biais de la classe ShaderEffect , permettent d'appliquer des effets visuels puissants et complètement personnalisables sans
Posted by lvovan | 0 Comments
Filed under: , , ,

Attachment(s): CustomShaderTest.zip
 
Page view tracker