Markiert: Styles


Creating ComboBox with System Colors in XAML

This snippet shows how to display a list of system colors in XAML only. First we create ab object data source containing the list of colors: <ObjectDataProvider ObjectInstance=“{x:Type Colors}“ MethodName=“GetProperties“ x:Key=“ListOfColors“ /> This data...


Some CSS3 Effects

Shadows Draws a shadow of any HTML element. The first is the shadow distance on the Y axis, the second on the X axis. The third value stands for the blurring of the shadow...


Text Drop Shadow Effect in XAML

A DropShadowEffect can be used to make any WPF control cast a shadow. In order to use this on a text, we can simply assign the effect to the Effect property of the TextBlock....