|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | + |
1 | 3 | <UserControl |
2 | 4 | x:Class="Coder.Desktop.App.Controls.ExpandContent" |
3 | 5 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | 6 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | | - xmlns:toolkit="using:CommunityToolkit.WinUI"> |
| 7 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 8 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 9 | + xmlns:toolkit="using:CommunityToolkit.WinUI" |
| 10 | + mc:Ignorable="d"> |
6 | 11 |
|
7 | | - <Grid> |
8 | | - <Grid x:Name="CollapsiblePanel" |
9 | | - Visibility="Collapsed" |
10 | | - Opacity="0" |
11 | | - MaxHeight="0" |
12 | | - toolkit:UIElementExtensions.ClipToBounds="True"> |
| 12 | + <Grid> |
| 13 | + <Grid x:Name="CollapsiblePanel" Opacity="0" Visibility="Collapsed" MaxHeight="0" toolkit:UIElementExtensions.ClipToBounds="True"> |
13 | 14 |
|
14 | 15 | <Grid.RenderTransform> |
15 | | - <TranslateTransform x:Name="Slide" Y="-16"/> |
| 16 | + <TranslateTransform x:Name="SlideTransform" Y="-16"/> |
16 | 17 | </Grid.RenderTransform> |
17 | 18 | </Grid> |
18 | 19 |
|
|
27 | 28 | <DoubleAnimation Storyboard.TargetName="CollapsiblePanel" |
28 | 29 | Storyboard.TargetProperty="Opacity" BeginTime="0:0:0.16" |
29 | 30 | To="1" Duration="0:0:0.16"/> |
30 | | - <DoubleAnimation Storyboard.TargetName="Slide" |
| 31 | + <DoubleAnimation Storyboard.TargetName="SlideTransform" |
31 | 32 | Storyboard.TargetProperty="Y" BeginTime="0:0:0.16" |
32 | 33 | To="0" Duration="0:0:0.16"/> |
33 | 34 | </Storyboard> |
|
42 | 43 | <DoubleAnimation Storyboard.TargetName="CollapsiblePanel" |
43 | 44 | Storyboard.TargetProperty="Opacity" |
44 | 45 | To="0" Duration="0:0:0.16"/> |
45 | | - <DoubleAnimation Storyboard.TargetName="Slide" |
| 46 | + <DoubleAnimation Storyboard.TargetName="SlideTransform" |
46 | 47 | Storyboard.TargetProperty="Y" |
47 | 48 | To="-16" Duration="0:0:0.16"/> |
48 | 49 | </Storyboard> |
|
0 commit comments