<DockPanel>
<StackPanel DockPanel.Dock="Bottom" VerticalAlignment="Bottom" ClipToBounds="True">
<DockPanel Name="content1">
<DockPanel.RenderTransform>
<TranslateTransform Y="0" />
</DockPanel.RenderTransform>
<TextBlock Margin="-600,0,0,0" HorizontalAlignment="Right" FontSize="40" Foreground="Green" Text="其他患者请耐心等候" />
</DockPanel>
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation From="0" To="-1250" Duration="0:0:9"
RepeatBehavior="Forever"
Storyboard.TargetName="content1"
Storyboard.TargetProperty="RenderTransform.X" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</StackPanel.Triggers>
</StackPanel>
<StackPanel DockPanel.Dock="Top">
<TextBlock Text="123" Foreground="Black" FontSize="49" Name="PatientNameTb"></TextBlock>
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Loaded">
<BeginStoryboard>
<Storyboard ><!--可以试颜色变化,也可以是透明度变化-->
<!--<ColorAnimation BeginTime="00:00:00"
From="#3F5376" To="#FEE5D1"
Duration="00:00:01"
AutoReverse="True"
RepeatBehavior="Forever"
Storyboard.TargetName="PatientNameTb"
Storyboard.TargetProperty="Foreground.Color" />-->
<DoubleAnimation BeginTime="00:00:00"
From="0" To="1"
Duration="00:00:01"
AutoReverse="True"
RepeatBehavior="Forever"
Storyboard.TargetName="PatientNameTb"
Storyboard.TargetProperty="Opacity" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</StackPanel.Triggers>
</StackPanel>
</DockPanel>