ScreensaverWindow.xaml
上传用户:liuqi822
上传日期:2022-03-21
资源大小:88k
文件大小:2k
- <Window x:Class="Screensaver1.ScreensaverWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- WindowStartupLocation="Manual"
- WindowState="Maximized"
- WindowStyle="None">
- <Grid>
- <ContentControl
- RenderTransformOrigin="0.5, 0.5"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- FontSize="20"
- Content="{Binding ScreensaverContent}">
- <ContentControl.RenderTransform>
- <ScaleTransform />
- </ContentControl.RenderTransform>
- <ContentControl.Triggers>
- <EventTrigger RoutedEvent="FrameworkElement.Loaded">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
- <SplineDoubleKeyFrame Value="2" KeyTime="00:00:05" />
- <SplineDoubleKeyFrame Value="1" KeyTime="00:00:10" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
- <SplineDoubleKeyFrame Value="2" KeyTime="00:00:05" />
- <SplineDoubleKeyFrame Value="1" KeyTime="00:00:10" />
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </ContentControl.Triggers>
- </ContentControl>
- </Grid>
- </Window>