Share via


AdornerColors.RailFillBrush Property

Gets the fill brush for rails.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Shared ReadOnly Property RailFillBrush As Brush
    Get
public static Brush RailFillBrush { get; }
public:
static property Brush^ RailFillBrush {
    Brush^ get ();
}
static member RailFillBrush : Brush
static function get RailFillBrush () : Brush

Property Value

Type: System.Windows.Media.Brush
A Brush representing the standard brush for rails in the WPF Designer.

Examples

The following code example shows how to use the AdornerColors class to set the Background of a Slider control to the color specified by RailFillBrush. For more information, see Walkthrough: Implementing a Rail Inside a Control.

' Set the slider's background to the rail fill color.
skewSlider.Background = AdornerColors.RailFillBrush
// Set the slider's background to the rail fill color.
skewSlider.Background = AdornerColors.RailFillBrush;

.NET Framework Security

See Also

Reference

AdornerColors Class

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

AdornerFonts

PrimarySelectionAdornerProvider

Other Resources

Walkthrough: Creating a Design-time Adorner

Walkthrough: Implementing a Rail Inside a Control

Adorner Architecture