DateFilterDashboardLayoutItem Class
Allows you to specify the style and templates to customize the DateFilterDashboardItem appearance.
Namespace: DevExpress.DashboardWpf
Assembly: DevExpress.Xpf.Dashboard.v24.2.dll
Declaration
Remarks
Use the following templates and styles to customize the appearance of visual elements in the DateFilter control:
- DateFilterDashboardLayoutItem.DatePickerPopupTemplate
- DateFilterDashboardLayoutItem.DatePickerTemplate
- DateFilterDashboardLayoutItem.QuickButtonTemplate
- DateFilterDashboardLayoutItem.DateNavigatorStyle
The following code snippet shows how to display the Today button in the DateNavigator control:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfCustom"
xmlns:dxdash="http://schemas.devexpress.com/winfx/2008/xaml/dashboard" x:Class="WpfCustom.MainWindow"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<dxdash:DashboardControl MinHeight="150" UseNeutralFilterMode="True" DashboardSource="{x:Type local:Dashboard1}">
<dxdash:DashboardControl.DateFilterItemStyle>
<Style TargetType="dxdash:DateFilterDashboardLayoutItem">
<Setter Property="DateNavigatorStyle">
<Setter.Value>
<Style TargetType="{x:Type dxe:DateNavigator}">
<Setter Property="ShowTodayButton" Value="True"/>
</Style>
</Setter.Value>
</Setter>
</Style>
</dxdash:DashboardControl.DateFilterItemStyle>
</dxdash:DashboardControl>
</Grid>
</Window>
Tip
For a complete list of dashboard item styles, see A List of Styles and Templates.
Inheritance
Object
DispatcherObject
DependencyObject
Visual
UIElement
FrameworkElement
Control
DevExpress.Xpf.Docking.psvFrameworkElement
BaseLayoutItem
ContentItem
LayoutControlItem
DashboardLayoutItem
DateFilterDashboardLayoutItem
See Also