Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DatePicker.SelectionBackground Property

Silverlight

Gets or sets the background used for selected dates.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls (in System.Windows.Controls.dll)
public Brush SelectionBackground { get; set; }
<sdk:DatePicker>
  <sdk:DatePicker.Background>
    singleBrush
  </sdk:DatePicker.Background>
</sdk:DatePicker>
<sdk:DatePickerBackground="colorString"/>

XAML Values

singleBrush

Within opening and closing property elements for sdk:DatePicker.Background, exactly one object element for an object that derives from Brush. The object element can be one of the following: LinearGradientBrush, RadialGradientBrush, ImageBrush, SolidColorBrush, or VideoBrush.

colorString

The Color for a SolidColorBrush expressed as an attribute string. This can be a named color, an RGB value, or an ScRGB value. RGB or ScRGB may also specify alpha information.

Property Value

Type: System.Windows.Media.Brush
The background used for selected dates.

Dependency property identifier field: SelectionBackgroundProperty

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.