Styling Tips for Silverlight and WPF Controls

In this article I’ve collected together some information and advice that you’ll find useful when creating controls templates. These topics apply generally, no matter what control you’re creating a template for. Here you’ll learn how to bind the look of your template to properties on the control instance, about some of the smart make-into-control workflows,…

3

Styling Tips for Silverlight and WPF Controls

In this article I’ve collected together some information and advice that you’ll find useful when creating controls templates. These topics apply generally, no matter what control you’re creating a template for. Here you’ll learn how to bind the look of your template to properties on the control instance, about some of the smart make-into-control workflows,…

0

Control Styling Tips: RadioButton

Hello! In this article, I’d like to provide you with some information and tips that you’ll find useful when styling a Silverlight 3 RadioButton. Template binding. CommonStates (Normal, MouseOver, Pressed and Disabled), CheckStates (Unchecked, Checked and Indeterminate), FocusStates (Unfocused and Focused) and ValidationStates (Valid, InvalidUnfocused and InvalidFocused). Template parts. None. Template binding. Try template binding…

0

Control Styling Tips: Button

Hello! In this article, I’d like to provide you with some information and tips that you’ll find useful when styling a Silverlight 3 Button. Visual states. CommonStates (Normal, MouseOver, Pressed and Disabled) and FocusStates (Unfocused and Focused). Template parts. None. Template binding. Try template binding Background, BorderBrush, Foreground, BorderThickness or Padding. Make Into Control, where…

3

Common Styling Tips: CheckBox

Hello! In this article, I’d like to provide you with some information and tips that you’ll find useful when styling a Silverlight 3 CheckBox. Visual states. CommonStates (Normal, MouseOver, Pressed and Disabled), CheckStates (Unchecked, Checked and Indeterminate), FocusStates (Unfocused and Focused) and ValidationStates (Valid, InvalidUnfocused and InvalidFocused). Template parts. None. Template binding. Try template binding…

1

Control Styling Tips: Slider

Hello! In this article, I’d like to provide you with some information and tips that you’ll find useful when styling a Silverlight 3 Slider. Visual states. CommonStates (Normal, MouseOver and Disabled) and FocusStates (Unfocused and Focused) and the following template parts: Used when the Slider is oriented horizontally: HorizontalTemplate (FrameworkElement) HorizontalThumb (Thumb) HorizontalTrackLargeChangeDecreaseRepeatButton (RepeatButton) HorizontalTrackLargeChangeIncreaseRepeatButton…

1

Control Styling Tips: ScrollBar

Hello! In this article, I’d like to provide you with some information and tips that you’ll find useful when styling a Silverlight 3 ScrollBar. Visual states.  CommonStates (Normal, MouseOver and Disabled) and the following template parts: Used when the ScrollBar is oriented horizontally: HorizontalLargeDecrease (RepeatButton) HorizontalLargeIncrease (RepeatButton) HorizontalRoot (FrameworkElement) HorizontalSmallDecrease (RepeatButton) HorizontalSmallIncrease (RepeatButton) HorizontalThumb (Thumb)…

1

Control Styling Tips: PasswordBox

Hello! In this article, I’d like to provide you with some information and tips that you’ll find useful when styling a Silverlight 3 PasswordBox. Visual states. CommonStates (Normal, MouseOver and Disabled), FocusStates (Unfocused and Focused) and ValidationStates (Valid, InvalidUnfocused and InvalidFocused). Template parts. ContentElement (FrameworkElement) Try template binding: Background, BorderBrush, Foreground, BorderThickness or Padding. Here’s…

0

Control Styling Tips: TextBox

Hello! In this article, I’d like to provide you with some information and tips that you’ll find useful when styling a Silverlight 3 TextBox. Visual states. CommonStates (Normal, MouseOver, Disabled and ReadOnly), FocusStates (Unfocused and Focused) and ValidationStates (Valid, InvalidUnfocused and InvalidFocused). Template parts. ContentElement (FrameworkElement) Try template binding: Background, BorderBrush, Foreground, BorderThickness or Padding….

0

Control Styling Tips: ScrollViewer

Hello! In this article, I’d like to provide you with some information and tips that you’ll find useful when styling a Silverlight 3 ScrollViewer. Visual states. None Template parts. HorizontalScrollBar (ScrollBar) ScrollContentPresenter (ScrollContentPresenter) VerticalScrollBar (ScrollBar) The following tips will help you out a bit: A ScrollViewer consists of scrollable content controlled by a horizontal and…

2