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
'Usage
Dim value As Color
value = AdornerColors.RailFillColor
public static Color RailFillColor { get; }
public:
static property Color RailFillColor {
Color get ();
}
public 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
- 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