|
214 | 214 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsHost" Storyboard.TargetProperty="Visibility">
|
215 | 215 | <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}" />
|
216 | 216 | </ObjectAnimationUsingKeyFrames>
|
217 |
| - <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ItemsHost"> |
218 |
| - <EasingDoubleKeyFrame KeyTime="0" Value="0"/> |
219 |
| - <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/> |
220 |
| - </DoubleAnimationUsingKeyFrames> |
221 |
| - <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer"> |
222 |
| - <EasingDoubleKeyFrame KeyTime="0" Value="0"/> |
223 |
| - <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/> |
224 |
| - </DoubleAnimationUsingKeyFrames> |
| 217 | + <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ItemsHost" |
| 218 | + To="1" Duration="0:0:0.3"/> |
| 219 | + <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer" |
| 220 | + To="1" Duration="0:0:0.3"/> |
225 | 221 | </Storyboard>
|
226 | 222 | </VisualTransition>
|
227 | 223 | <VisualTransition GeneratedDuration="0" To="Collapsed">
|
228 | 224 | <Storyboard>
|
229 | 225 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsHost" Storyboard.TargetProperty="Visibility">
|
230 | 226 | <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Collapsed}" />
|
231 | 227 | </ObjectAnimationUsingKeyFrames>
|
232 |
| - <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ItemsHost"> |
233 |
| - <EasingDoubleKeyFrame KeyTime="0" Value="1"/> |
234 |
| - <EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0"/> |
235 |
| - </DoubleAnimationUsingKeyFrames> |
236 |
| - <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer"> |
237 |
| - <EasingDoubleKeyFrame KeyTime="0" Value="1"/> |
238 |
| - <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/> |
239 |
| - </DoubleAnimationUsingKeyFrames> |
| 228 | + <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ItemsHost" |
| 229 | + To="0" Duration="0:0:0.3"/> |
| 230 | + <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer" |
| 231 | + To="0" Duration="0:0:0.5"/> |
240 | 232 | </Storyboard>
|
241 | 233 | </VisualTransition>
|
242 | 234 | </VisualStateGroup.Transitions>
|
243 | 235 | <VisualState x:Name="Expanded">
|
244 | 236 | <Storyboard>
|
245 |
| - <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ItemsHost"> |
246 |
| - <EasingDoubleKeyFrame KeyTime="0" Value="1"/> |
247 |
| - </DoubleAnimationUsingKeyFrames> |
248 |
| - <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer"> |
249 |
| - <EasingDoubleKeyFrame KeyTime="0:0:0" Value="1"/> |
250 |
| - </DoubleAnimationUsingKeyFrames> |
| 237 | + <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ItemsHost" |
| 238 | + To="1" Duration="0"/> |
| 239 | + <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer" |
| 240 | + To="1" Duration="0"/> |
251 | 241 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsHost" Storyboard.TargetProperty="Visibility">
|
252 | 242 | <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}" />
|
253 | 243 | </ObjectAnimationUsingKeyFrames>
|
254 | 244 | </Storyboard>
|
255 | 245 | </VisualState>
|
256 | 246 | <VisualState x:Name="Collapsed">
|
257 | 247 | <Storyboard>
|
258 |
| - <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ItemsHost"> |
259 |
| - <EasingDoubleKeyFrame KeyTime="0" Value="0"/> |
260 |
| - </DoubleAnimationUsingKeyFrames> |
261 |
| - <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer"> |
262 |
| - <EasingDoubleKeyFrame KeyTime="0:0:0" Value="0"/> |
263 |
| - </DoubleAnimationUsingKeyFrames> |
| 248 | + <DoubleAnimation Storyboard.TargetProperty="Opacity" Storyboard.TargetName="ItemsHost" |
| 249 | + To="0" Duration="0"/> |
| 250 | + <DoubleAnimation Storyboard.TargetProperty="Tag" Storyboard.TargetName="ItemsScrollViewer" |
| 251 | + To="0" Duration="0"/> |
264 | 252 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsHost" Storyboard.TargetProperty="Visibility">
|
265 | 253 | <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}" />
|
266 | 254 | </ObjectAnimationUsingKeyFrames>
|
|
314 | 302 | </MultiBinding>
|
315 | 303 | </ScrollViewer.Height>
|
316 | 304 | <ItemsPresenter x:Name="ItemsHost"
|
| 305 | + VerticalAlignment="Top" |
317 | 306 | Opacity="0"
|
318 | 307 | Visibility="Collapsed"/>
|
319 | 308 | </ScrollViewer>
|
|
0 commit comments