DateNavigatorカスタム特別な日付スタイル

<たControlTemplate X:キー= "{テーマ:DateNavigatorThemeKeyたResourceKey = CellButtonTemplate、IsThemeIndependent =真}"
TargetTypeに= "{X:タイプdxednc:DateNavigatorCalendarCellButton}">
<dxednc:DateNavigatorCalendarCellButtonContent X:NAME = "PART_Content">
<dxednc:DateNavigatorCalendarCellButtonContent。テンプレート>
<たControlTemplate>
<グリッド背景= "透明">
<ボーダーX:NAME = "PART_Today"背景= "透明" CornerRadius = "2"可視性は= "縮小" />
<ボーダーX:NAME = "PART_Focused" BorderBrush = "#FF3C619B" BorderThickness = "1" CornerRadius = "2"可視性= "折りたたみ" />
<ボーダーは、x:NAME =」PART_MouseOver」背景= "#1 FF6C91CB" CornerRadius = "2" 可視性= "倒壊" />
<ボーダーのx:名= "PART_Selected"背景= "#1 FF3C619B" CornerRadiusは= "2"可視性は= "折りたたみ" />
<! - !!! - >
<ボーダー名= "国境" />
<! - !!! - >
<TextBlockのX:名= "PART_Text"たHorizo​​ntalAlignment = "センター"証拠金= "1,0,1,1" VerticalAlignmentを= "センター" />
</グリッド>
<! - !!! - - >
<ControlTemplate.Triggers>
<Da​​taTrigger =バインディング"{バインディングパス=(dxednc:DateNavigatorCalendar.CellState)、RelativeSource = {RelativeSource TemplatedParent}}"値= "特別な">
<セッターTargetNameは= "境界"プロパティ= "背景"値= "赤" />
</ DataTrigger>
<DataTriggerバインド= "{バインディングパス=(dxednc:DateNavigatorCalendar.CellState)、RelativeSourceは、= {RelativeSource TemplatedParent}}" 値= "スペシャル、休日">
<セッターTargetNameは= "国境"プロパティ= "背景"値= "赤" />
</ DataTrigger>
</ControlTemplate.Triggers>
<! - !!! - >
</ ControlTemplateの>
</dxednc:DateNavigatorCalendarCellButtonContent.Template >
</ dxednc:DateNavigatorCalendarCellButtonContent>
</ ControlTemplateの>

おすすめ

転載: www.cnblogs.com/robertyao/p/11263543.html