Tag Archives: XAML

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

Workaround for FrameworkElement.Triggers using Style and resolving issue

Many times it would be so handy to have Triggers available at the root FrameworkElement object type. Yes, the property exists, but it only supports EventTrigger at that level, while many times you’d want a different type of trigger, such … Continue reading

Posted in WPF | Tagged , , , , | 4 Comments