|
0
|
1 |
<ResourceDictionary
|
|
|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:layoutToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit" xmlns:layoutPrimitivesToolkit="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Layout.Toolkit">
|
|
|
4 |
<!-- Resource dictionary entries should be defined here. -->
|
|
|
5 |
<!--<Style x:Key="AccordionStyle1" TargetType="layoutToolkit:Accordion">
|
|
|
6 |
<Setter Property="Foreground" Value="#FF000000"/>
|
|
|
7 |
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
|
8 |
<Setter Property="VerticalAlignment" Value="Top"/>
|
|
|
9 |
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
|
10 |
<Setter Property="VerticalContentAlignment" Value="Top"/>
|
|
|
11 |
<Setter Property="Cursor" Value="Arrow"/>
|
|
|
12 |
<Setter Property="BorderThickness" Value="1"/>
|
|
|
13 |
<Setter Property="Padding" Value="0"/>
|
|
|
14 |
<Setter Property="Margin" Value="0"/>
|
|
|
15 |
<Setter Property="IsTabStop" Value="False"/>
|
|
|
16 |
<Setter Property="TabNavigation" Value="Once"/>
|
|
|
17 |
<Setter Property="ItemsPanel">
|
|
|
18 |
<Setter.Value>
|
|
|
19 |
<ItemsPanelTemplate>
|
|
|
20 |
<StackPanel VerticalAlignment="Top"/>
|
|
|
21 |
</ItemsPanelTemplate>
|
|
|
22 |
</Setter.Value>
|
|
|
23 |
</Setter>
|
|
|
24 |
<Setter Property="Template">
|
|
|
25 |
<Setter.Value>
|
|
|
26 |
<ControlTemplate TargetType="layoutToolkit:Accordion">
|
|
|
27 |
<Grid x:Name="Root">
|
|
|
28 |
<VisualStateManager.VisualStateGroups>
|
|
|
29 |
<VisualStateGroup x:Name="CommonStates">
|
|
|
30 |
<VisualState x:Name="Normal"/>
|
|
|
31 |
<VisualState x:Name="Pressed"/>
|
|
|
32 |
<VisualState x:Name="MouseOver"/>
|
|
|
33 |
<VisualState x:Name="Disabled"/>
|
|
|
34 |
</VisualStateGroup>
|
|
|
35 |
<VisualStateGroup x:Name="FocusStates">
|
|
|
36 |
<VisualState x:Name="Focused"/>
|
|
|
37 |
<VisualState x:Name="Unfocused"/>
|
|
|
38 |
</VisualStateGroup>
|
|
|
39 |
</VisualStateManager.VisualStateGroups>
|
|
|
40 |
<Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
|
|
|
41 |
<ScrollViewer Background="{x:Null}" BorderBrush="Transparent" BorderThickness="0" IsTabStop="False" Padding="0" Margin="0" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled">
|
|
|
42 |
<ItemsPresenter/>
|
|
|
43 |
</ScrollViewer>
|
|
|
44 |
</Border>
|
|
|
45 |
</Grid>
|
|
|
46 |
</ControlTemplate>
|
|
|
47 |
</Setter.Value>
|
|
|
48 |
</Setter>
|
|
|
49 |
<Setter Property="BorderBrush" Value="{x:Null}"/>
|
|
|
50 |
</Style>
|
|
|
51 |
<Style x:Key="AccordionItemStyle1" TargetType="layoutToolkit:AccordionItem">
|
|
|
52 |
<Setter Property="BorderThickness" Value="1"/>
|
|
|
53 |
<Setter Property="BorderBrush" Value="{x:Null}"/>
|
|
|
54 |
<Setter Property="Margin" Value="0"/>
|
|
|
55 |
<Setter Property="Padding" Value="0"/>
|
|
|
56 |
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
|
|
57 |
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
|
|
58 |
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
|
59 |
<Setter Property="VerticalContentAlignment" Value="Top"/>
|
|
|
60 |
<Setter Property="IsTabStop" Value="False"/>
|
|
|
61 |
<Setter Property="Template">
|
|
|
62 |
<Setter.Value>
|
|
|
63 |
<ControlTemplate TargetType="layoutToolkit:AccordionItem">
|
|
|
64 |
<Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="{TemplateBinding Background}">
|
|
|
65 |
<VisualStateManager.VisualStateGroups>
|
|
|
66 |
<VisualStateGroup x:Name="CommonStates">
|
|
|
67 |
<VisualStateGroup.Transitions>
|
|
|
68 |
<VisualTransition GeneratedDuration="0"/>
|
|
|
69 |
</VisualStateGroup.Transitions>
|
|
|
70 |
<VisualState x:Name="Normal"/>
|
|
|
71 |
<VisualState x:Name="Pressed"/>
|
|
|
72 |
<VisualState x:Name="MouseOver"/>
|
|
|
73 |
<VisualState x:Name="Disabled"/>
|
|
|
74 |
</VisualStateGroup>
|
|
|
75 |
<VisualStateGroup x:Name="FocusStates">
|
|
|
76 |
<VisualState x:Name="Focused"/>
|
|
|
77 |
<VisualState x:Name="Unfocused"/>
|
|
|
78 |
</VisualStateGroup>
|
|
|
79 |
<VisualStateGroup x:Name="ExpansionStates">
|
|
|
80 |
<VisualStateGroup.Transitions>
|
|
|
81 |
<VisualTransition GeneratedDuration="0"/>
|
|
|
82 |
</VisualStateGroup.Transitions>
|
|
|
83 |
<VisualState x:Name="Collapsed">
|
|
|
84 |
<Storyboard>
|
|
|
85 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(ExpandableContentControl.Percentage)">
|
|
|
86 |
<SplineDoubleKeyFrame KeySpline="0.2,0,0,1" KeyTime="00:00:00.3" Value="0"/>
|
|
|
87 |
</DoubleAnimationUsingKeyFrames>
|
|
|
88 |
<ObjectAnimationUsingKeyFrames BeginTime="00:00:00.3" Duration="00:00:00" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(UIElement.Visibility)">
|
|
|
89 |
<DiscreteObjectKeyFrame KeyTime="00:00:00">
|
|
|
90 |
<DiscreteObjectKeyFrame.Value>
|
|
|
91 |
<Visibility>Collapsed</Visibility>
|
|
|
92 |
</DiscreteObjectKeyFrame.Value>
|
|
|
93 |
</DiscreteObjectKeyFrame>
|
|
|
94 |
</ObjectAnimationUsingKeyFrames>
|
|
|
95 |
</Storyboard>
|
|
|
96 |
</VisualState>
|
|
|
97 |
<VisualState x:Name="Expanded">
|
|
|
98 |
<Storyboard>
|
|
|
99 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(ExpandableContentControl.Percentage)">
|
|
|
100 |
<SplineDoubleKeyFrame KeySpline="0.2,0,0,1" KeyTime="00:00:00.3" Value="1"/>
|
|
|
101 |
</DoubleAnimationUsingKeyFrames>
|
|
|
102 |
</Storyboard>
|
|
|
103 |
</VisualState>
|
|
|
104 |
</VisualStateGroup>
|
|
|
105 |
<VisualStateGroup x:Name="LockedStates">
|
|
|
106 |
<VisualStateGroup.Transitions>
|
|
|
107 |
<VisualTransition GeneratedDuration="0"/>
|
|
|
108 |
</VisualStateGroup.Transitions>
|
|
|
109 |
<VisualState x:Name="Locked">
|
|
|
110 |
<Storyboard>
|
|
|
111 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="IsEnabled">
|
|
|
112 |
<DiscreteObjectKeyFrame KeyTime="0" Value="False"/>
|
|
|
113 |
</ObjectAnimationUsingKeyFrames>
|
|
|
114 |
</Storyboard>
|
|
|
115 |
</VisualState>
|
|
|
116 |
<VisualState x:Name="Unlocked">
|
|
|
117 |
<Storyboard>
|
|
|
118 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="IsEnabled">
|
|
|
119 |
<DiscreteObjectKeyFrame KeyTime="0" Value="True"/>
|
|
|
120 |
</ObjectAnimationUsingKeyFrames>
|
|
|
121 |
</Storyboard>
|
|
|
122 |
</VisualState>
|
|
|
123 |
</VisualStateGroup>
|
|
|
124 |
<VisualStateGroup x:Name="ExpandDirectionStates">
|
|
|
125 |
<VisualStateGroup.Transitions>
|
|
|
126 |
<VisualTransition GeneratedDuration="0"/>
|
|
|
127 |
</VisualStateGroup.Transitions>
|
|
|
128 |
<VisualState x:Name="ExpandDown">
|
|
|
129 |
<Storyboard>
|
|
|
130 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="rd1" Storyboard.TargetProperty="Height">
|
|
|
131 |
<DiscreteObjectKeyFrame KeyTime="0" Value="*"/>
|
|
|
132 |
</ObjectAnimationUsingKeyFrames>
|
|
|
133 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="cd0" Storyboard.TargetProperty="Width">
|
|
|
134 |
<DiscreteObjectKeyFrame KeyTime="0" Value="*"/>
|
|
|
135 |
</ObjectAnimationUsingKeyFrames>
|
|
|
136 |
</Storyboard>
|
|
|
137 |
</VisualState>
|
|
|
138 |
<VisualState x:Name="ExpandUp">
|
|
|
139 |
<Storyboard>
|
|
|
140 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="(Grid.Row)">
|
|
|
141 |
<DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
|
|
|
142 |
</ObjectAnimationUsingKeyFrames>
|
|
|
143 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(Grid.Row)">
|
|
|
144 |
<DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
|
|
|
145 |
</ObjectAnimationUsingKeyFrames>
|
|
|
146 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="rd0" Storyboard.TargetProperty="Height">
|
|
|
147 |
<DiscreteObjectKeyFrame KeyTime="0" Value="*"/>
|
|
|
148 |
</ObjectAnimationUsingKeyFrames>
|
|
|
149 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="cd0" Storyboard.TargetProperty="Width">
|
|
|
150 |
<DiscreteObjectKeyFrame KeyTime="0" Value="*"/>
|
|
|
151 |
</ObjectAnimationUsingKeyFrames>
|
|
|
152 |
</Storyboard>
|
|
|
153 |
</VisualState>
|
|
|
154 |
<VisualState x:Name="ExpandLeft">
|
|
|
155 |
<Storyboard>
|
|
|
156 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="(Grid.ColumnSpan)">
|
|
|
157 |
<DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
|
|
|
158 |
</ObjectAnimationUsingKeyFrames>
|
|
|
159 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(Grid.ColumnSpan)">
|
|
|
160 |
<DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
|
|
|
161 |
</ObjectAnimationUsingKeyFrames>
|
|
|
162 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="(Grid.RowSpan)">
|
|
|
163 |
<DiscreteObjectKeyFrame KeyTime="0" Value="2"/>
|
|
|
164 |
</ObjectAnimationUsingKeyFrames>
|
|
|
165 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(Grid.RowSpan)">
|
|
|
166 |
<DiscreteObjectKeyFrame KeyTime="0" Value="2"/>
|
|
|
167 |
</ObjectAnimationUsingKeyFrames>
|
|
|
168 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="(Grid.Column)">
|
|
|
169 |
<DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
|
|
|
170 |
</ObjectAnimationUsingKeyFrames>
|
|
|
171 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(Grid.Row)">
|
|
|
172 |
<DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
|
|
|
173 |
</ObjectAnimationUsingKeyFrames>
|
|
|
174 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="rd0" Storyboard.TargetProperty="Height">
|
|
|
175 |
<DiscreteObjectKeyFrame KeyTime="0" Value="*"/>
|
|
|
176 |
</ObjectAnimationUsingKeyFrames>
|
|
|
177 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="cd0" Storyboard.TargetProperty="Width">
|
|
|
178 |
<DiscreteObjectKeyFrame KeyTime="0" Value="*"/>
|
|
|
179 |
</ObjectAnimationUsingKeyFrames>
|
|
|
180 |
</Storyboard>
|
|
|
181 |
</VisualState>
|
|
|
182 |
<VisualState x:Name="ExpandRight">
|
|
|
183 |
<Storyboard>
|
|
|
184 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="(Grid.ColumnSpan)">
|
|
|
185 |
<DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
|
|
|
186 |
</ObjectAnimationUsingKeyFrames>
|
|
|
187 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(Grid.ColumnSpan)">
|
|
|
188 |
<DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
|
|
|
189 |
</ObjectAnimationUsingKeyFrames>
|
|
|
190 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpanderButton" Storyboard.TargetProperty="(Grid.RowSpan)">
|
|
|
191 |
<DiscreteObjectKeyFrame KeyTime="0" Value="2"/>
|
|
|
192 |
</ObjectAnimationUsingKeyFrames>
|
|
|
193 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(Grid.RowSpan)">
|
|
|
194 |
<DiscreteObjectKeyFrame KeyTime="0" Value="2"/>
|
|
|
195 |
</ObjectAnimationUsingKeyFrames>
|
|
|
196 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(Grid.Row)">
|
|
|
197 |
<DiscreteObjectKeyFrame KeyTime="0" Value="0"/>
|
|
|
198 |
</ObjectAnimationUsingKeyFrames>
|
|
|
199 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(Grid.Column)">
|
|
|
200 |
<DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
|
|
|
201 |
</ObjectAnimationUsingKeyFrames>
|
|
|
202 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="rd0" Storyboard.TargetProperty="Height">
|
|
|
203 |
<DiscreteObjectKeyFrame KeyTime="0" Value="*"/>
|
|
|
204 |
</ObjectAnimationUsingKeyFrames>
|
|
|
205 |
<ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="cd1" Storyboard.TargetProperty="Width">
|
|
|
206 |
<DiscreteObjectKeyFrame KeyTime="0" Value="*"/>
|
|
|
207 |
</ObjectAnimationUsingKeyFrames>
|
|
|
208 |
</Storyboard>
|
|
|
209 |
</VisualState>
|
|
|
210 |
</VisualStateGroup>
|
|
|
211 |
</VisualStateManager.VisualStateGroups>
|
|
|
212 |
<Border x:Name="Background" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1,1,1,1" Padding="{TemplateBinding Padding}">
|
|
|
213 |
<Grid>
|
|
|
214 |
<Grid.RowDefinitions>
|
|
|
215 |
<RowDefinition x:Name="rd0" Height="Auto"/>
|
|
|
216 |
<RowDefinition x:Name="rd1" Height="Auto"/>
|
|
|
217 |
</Grid.RowDefinitions>
|
|
|
218 |
<Grid.ColumnDefinitions>
|
|
|
219 |
<ColumnDefinition x:Name="cd0" Width="Auto"/>
|
|
|
220 |
<ColumnDefinition x:Name="cd1" Width="Auto"/>
|
|
|
221 |
</Grid.ColumnDefinitions>
|
|
|
222 |
<layoutPrimitivesToolkit:AccordionButton x:Name="ExpanderButton" Background="{TemplateBinding Background}" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontStretch="{TemplateBinding FontStretch}" FontStyle="{TemplateBinding FontStyle}" FontWeight="{TemplateBinding FontWeight}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="True" Padding="0,0,0,0" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" Margin="0,0,0,0" Style="{TemplateBinding AccordionButtonStyle}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" Grid.Row="0" IsChecked="{TemplateBinding IsSelected}"/>
|
|
|
223 |
<layoutPrimitivesToolkit:ExpandableContentControl x:Name="ExpandSite" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontStretch="{TemplateBinding FontStretch}" FontStyle="{TemplateBinding FontStyle}" FontWeight="{TemplateBinding FontWeight}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="False" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" Margin="0,0,0,0" Style="{TemplateBinding ExpandableContentControlStyle}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" Grid.Row="1" Percentage="0" RevealMode="{TemplateBinding ExpandDirection}"/>
|
|
|
224 |
</Grid>
|
|
|
225 |
</Border>
|
|
|
226 |
</Grid>
|
|
|
227 |
</ControlTemplate>
|
|
|
228 |
</Setter.Value>
|
|
|
229 |
</Setter>
|
|
|
230 |
<Setter Property="Background" Value="{x:Null}"/>
|
|
|
231 |
</Style>-->
|
|
|
232 |
</ResourceDictionary> |