8,737
社区成员
发帖
与我相关
我的任务
分享
<Page.Resources>
<Storyboard x:Name="graphAnimation">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="scrollViewerGraph">
<SplineDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="scrollViewerGraph">
<SplineDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="scrollViewerDatasource">
<DiscreteObjectKeyFrame KeyTime="0:0:0.4">
<DiscreteObjectKeyFrame.Value>
<Visibility>Visible</Visibility>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</Page.Resources>
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Application2"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:Common="using:Application2.Common"
x:Class="Application2.BlankPage"
mc:Ignorable="d" RenderTransformOrigin="0.501999974250793,0.501999974250793">
<Page.Resources>
<Storyboard x:Name="graphAnimation">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="scrollViewerGraph">
<SplineDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="scrollViewerGraph">
<SplineDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="scrollViewerDatasource">
<DiscreteObjectKeyFrame KeyTime="0:0:0.4">
<DiscreteObjectKeyFrame.Value>
<Visibility>Visible</Visibility>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Name="graphDisplayAni">
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="scrollViewerGraph">
<DiscreteObjectKeyFrame KeyTime="0:0:0.4">
<DiscreteObjectKeyFrame.Value>
<Visibility>Visible</Visibility>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</Page.Resources>
<Grid>
<StackPanel HorizontalAlignment="Left" Height="53.5" VerticalAlignment="Top" Width="1366" Orientation="Horizontal" Background="#FF08127E">
<Button Content="Graph" Height="54" VerticalAlignment="Top" Width="171">
<Button.Triggers>
<EventTrigger RoutedEvent="Button.Click">
<EventTrigger.Actions>
<BeginStoryboard Storyboard="{StaticResource graphDisplayAni}" />
</EventTrigger.Actions>
</EventTrigger>
</Button.Triggers>
</Button>
<Button Content="Datasource" Height="54" VerticalAlignment="Top" Width="180">
<Button.Triggers>
<EventTrigger RoutedEvent="Button.Click">
<EventTrigger.Actions>
<BeginStoryboard Storyboard="{StaticResource graphAnimation}" />
</EventTrigger.Actions>
</EventTrigger>
</Button.Triggers>
</Button>
</StackPanel>
<ScrollViewer x:Name="scrollViewerGraph" HorizontalScrollBarVisibility="Auto" HorizontalAlignment="Left" Height="340" VerticalAlignment="Top" Margin="0,59,0,0" Background="{x:Null}" Visibility="Collapsed">
<StackPanel x:Name="stackPanel" HorizontalAlignment="Left" Orientation="Horizontal">
<Image Height="340" Width="340" Source="/Images/images (1).jpg"/>
<Image Height="340" Width="340" Source="/Images/images (2).jpg"/>
<Image Height="340" Width="340" Source="/Images/images (3).jpg"/>
<Image Height="340" Width="340" Source="/Images/images (4).jpg"/>
<Image Height="340" Width="340" Source="/Images/images (5).jpg"/>
<Image Height="340" Width="340" Source="/Images/images (6).jpg"/>
<Image Height="340" Width="340" Source="/Images/images (7).jpg"/>
<Image Height="340" Width="340" Source="/Images/images (8).jpg"/>
<Image Height="340" Width="340" Source="/Images/images.jpg"/>
</StackPanel>
</ScrollViewer>
<ScrollViewer x:Name="scrollViewerDatasource" HorizontalScrollBarVisibility="Auto" Visibility="Collapsed" HorizontalAlignment="Left" Height="340" VerticalAlignment="Top" Margin="0,59,0,0" Background="{x:Null}">
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
<Image Height="340" Width="340" Source="/Images/dimages (1).jpg"/>
<Image Height="340" Width="340" Source="/Images/dimages (2).jpg"/>
<Image Height="340" Width="340" Source="/Images/dimages (3).jpg"/>
<Image Height="340" Width="340" Source="/Images/dimages (4).jpg"/>
<Image Height="340" Width="340" Source="/Images/dimages (5).jpg"/>
<Image Height="340" Width="340" Source="/Images/dimages (6).jpg"/>
<Image Height="340" Width="340" Source="/Images/dimages (7).jpg"/>
<Image Height="340" Width="340" Source="/Images/dimages (8).jpg"/>
<Image Height="340" Width="340" Source="/Images/dimages.jpg"/>
</StackPanel>
</ScrollViewer>
</Grid>
</Page>