Tag Archives: properties

XAML element properties and cut-paste refactoring

As you know, to set properties for WPF objects in XAML, one uses either attributes or elements, like the Text and LayoutTransform properties of the TextBox element below, respectively: <Border> <TextBlock Text=”Hello!”> <TextBlock.LayoutTransform> <ScaleTransform ScaleY=”2″/> </TextBlock.LayoutTransform> </TextBlock> </Border> Using elements is required when … Continue reading

Posted in WPF | Tagged , , , , , , | Leave a comment

C# next should support raising PropertyChanged without requiring back field

As you know, we can define C# class properties using a very simple syntax – that’s great: public <Type> MyProperty {get; set;} On the other side, [CallerMemberName] attribute has been recently introduced helping us (among a few other things) to … Continue reading

Posted in .NET, C# | Tagged , , , | Leave a comment