Share via


AdornerColors.RailFillColor Property

Gets the fill color for rails.

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

Syntax

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

Property Value

Type: System.Windows.Media.Color
A Color representing the standard color 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 standard RailFillColor. 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