|
189 | 189 | <CubicEase EasingMode="EaseInOut"/>
|
190 | 190 | </DoubleAnimation.EasingFunction>
|
191 | 191 | </DoubleAnimation>
|
| 192 | + <ObjectAnimationUsingKeyFrames Duration="0:0:0" |
| 193 | + Storyboard.TargetName="PART_Content" |
| 194 | + Storyboard.TargetProperty="Visibility"> |
| 195 | + <DiscreteObjectKeyFrame KeyTime="0%" Value="{x:Static Visibility.Visible}"/> |
| 196 | + </ObjectAnimationUsingKeyFrames> |
192 | 197 | </Storyboard>
|
193 | 198 | </VisualTransition>
|
194 | 199 |
|
|
206 | 211 | <CubicEase EasingMode="EaseInOut"/>
|
207 | 212 | </DoubleAnimation.EasingFunction>
|
208 | 213 | </DoubleAnimation>
|
| 214 | + <ObjectAnimationUsingKeyFrames Duration="{DynamicResource CollapseDuration}" |
| 215 | + Storyboard.TargetName="PART_Content" |
| 216 | + Storyboard.TargetProperty="Visibility"> |
| 217 | + <DiscreteObjectKeyFrame KeyTime="100%" Value="{x:Static Visibility.Collapsed}"/> |
| 218 | + </ObjectAnimationUsingKeyFrames> |
209 | 219 | </Storyboard>
|
210 | 220 | </VisualTransition>
|
211 | 221 | </VisualStateGroup.Transitions>
|
|
220 | 230 | Storyboard.TargetProperty="(ScaleTransform.ScaleY)"
|
221 | 231 | To="1"
|
222 | 232 | Duration="0" />
|
| 233 | + <ObjectAnimationUsingKeyFrames Duration="0" |
| 234 | + Storyboard.TargetName="PART_Content" |
| 235 | + Storyboard.TargetProperty="Visibility"> |
| 236 | + <DiscreteObjectKeyFrame KeyTime="0%" Value="{x:Static Visibility.Visible}"/> |
| 237 | + </ObjectAnimationUsingKeyFrames> |
223 | 238 | </Storyboard>
|
224 | 239 | </VisualState>
|
225 | 240 |
|
|
233 | 248 | Storyboard.TargetProperty="(ScaleTransform.ScaleY)"
|
234 | 249 | To="0"
|
235 | 250 | Duration="0" />
|
| 251 | + <ObjectAnimationUsingKeyFrames Duration="0" |
| 252 | + Storyboard.TargetName="PART_Content" |
| 253 | + Storyboard.TargetProperty="Visibility"> |
| 254 | + <DiscreteObjectKeyFrame KeyTime="100%" Value="{x:Static Visibility.Collapsed}"/> |
| 255 | + </ObjectAnimationUsingKeyFrames> |
236 | 256 | </Storyboard>
|
237 | 257 | </VisualState>
|
238 | 258 |
|
|
271 | 291 | <Grid.LayoutTransform>
|
272 | 292 | <RotateTransform Angle="{Binding Path=ExpandDirection, RelativeSource={RelativeSource AncestorType=Expander}, Converter={StaticResource ExpanderRotateAngleConverter}, ConverterParameter=-1}"/>
|
273 | 293 | </Grid.LayoutTransform>
|
274 |
| - |
| 294 | + |
275 | 295 | <ContentPresenter Name="PART_Content" Focusable="False"
|
| 296 | + Visibility="Collapsed" |
276 | 297 | ContentTemplate="{TemplateBinding ContentTemplate}"
|
277 | 298 | ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
278 | 299 | ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
|
279 | 300 |
|
280 | 301 | </Grid>
|
281 | 302 | </Border>
|
282 |
| - |
283 | 303 | </DockPanel>
|
284 | 304 | </Border>
|
285 | 305 | <ControlTemplate.Triggers>
|
| 306 | + |
286 | 307 | <Trigger Property="ExpandDirection" Value="Right">
|
287 | 308 | <Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Left"/>
|
288 | 309 | <Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource MaterialDesignVerticalHeaderStyle}"/>
|
|
0 commit comments