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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace
PrimarySelectionAdornerProvider
Other Resources
Walkthrough: Creating a Design-time Adorner