|
124 | 124 | </ObjectAnimationUsingKeyFrames>
|
125 | 125 | <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PART_Content"
|
126 | 126 | To="1" Duration="0:0:0.3"/>
|
127 |
| - <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer" |
| 127 | + <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ContentPanel" |
128 | 128 | To="1" Duration="0:0:0.3"/>
|
129 | 129 | </Storyboard>
|
130 | 130 | </VisualTransition>
|
|
138 | 138 | </ObjectAnimationUsingKeyFrames>
|
139 | 139 | <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PART_Content"
|
140 | 140 | To="0" Duration="0:0:0.3"/>
|
141 |
| - <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer" |
| 141 | + <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ContentPanel" |
142 | 142 | To="0" Duration="0:0:0.3"/>
|
143 | 143 | </Storyboard>
|
144 | 144 | </VisualTransition>
|
145 | 145 | </VisualStateGroup.Transitions>
|
146 | 146 | <VisualState x:Name="Expanded">
|
147 | 147 | <Storyboard>
|
148 | 148 | <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PART_Content" To="1" Duration="0"/>
|
149 |
| - <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer" To="1" Duration="0"/> |
| 149 | + <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ContentPanel" To="1" Duration="0"/> |
150 | 150 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_Content" Storyboard.TargetProperty="Visibility">
|
151 | 151 | <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}" />
|
152 | 152 | </ObjectAnimationUsingKeyFrames>
|
|
155 | 155 | <VisualState x:Name="Collapsed">
|
156 | 156 | <Storyboard>
|
157 | 157 | <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PART_Content" To="0" Duration="0"/>
|
158 |
| - <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer" To="0" Duration="0"/> |
| 158 | + <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ContentPanel" To="0" Duration="0"/> |
159 | 159 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_Content" Storyboard.TargetProperty="Visibility">
|
160 | 160 | <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}" />
|
161 | 161 | </ObjectAnimationUsingKeyFrames>
|
|
184 | 184 | </Grid>
|
185 | 185 | </Border>
|
186 | 186 | <Border Grid.Row="1">
|
187 |
| - <ScrollViewer x:Name="ItemsScrollViewer" |
188 |
| - VerticalScrollBarVisibility="Hidden"> |
189 |
| - <ScrollViewer.Tag> |
| 187 | + <StackPanel x:Name="ContentPanel"> |
| 188 | + <StackPanel.Tag> |
190 | 189 | <system:Double>0.0</system:Double>
|
191 |
| - </ScrollViewer.Tag> |
192 |
| - <ScrollViewer.Height> |
| 190 | + </StackPanel.Tag> |
| 191 | + <StackPanel.Height> |
193 | 192 | <MultiBinding Converter="{StaticResource MathMlpMultipleConverter}">
|
194 | 193 | <Binding ElementName="PART_Content" Path="ActualHeight"/>
|
195 | 194 | <Binding RelativeSource="{RelativeSource Self}" Path="Tag"/>
|
196 | 195 | </MultiBinding>
|
197 |
| - </ScrollViewer.Height> |
| 196 | + </StackPanel.Height> |
198 | 197 | <ContentPresenter Name="PART_Content" />
|
199 |
| - </ScrollViewer> |
| 198 | + </StackPanel> |
200 | 199 | </Border>
|
201 | 200 | </Grid>
|
202 | 201 | </ControlTemplate>
|
|
0 commit comments