<Window x:Class="Animation.ExpandElement"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ExpandElement" Height="450" Width="500" >
<Window.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard SpeedRatio="1.5">
<DoubleAnimation Storyboard.TargetName="element"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleX"
From="0" To="1" Duration="0:0:2" AccelerationRatio="1"></DoubleAnimation>
<DoubleAnimation Storyboard.TargetName="element"
Storyboard.TargetProperty="RenderTransform.Children[0].ScaleY"
From="0" To="1" Duration="0:0:2" AccelerationRatio="1"></DoubleAnimation>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</Window.Triggers>
<Grid>
<Border Name="element" Margin="3" Background="LightGoldenrodYellow"
BorderBrush="DarkBlue" BorderThickness="2" CornerRadius="5" >
<Border.RenderTransform>
<TransformGroup>
<ScaleTransform></ScaleTransform>
<RotateTransform></RotateTransform>
</TransformGroup>
</Border.RenderTransform>
<FlowDocumentScrollViewer IsToolBarVisible="True">
<FlowDocument>
<Paragraph xml:space="preserve">The <Italic>italic</Italic>.</Paragraph>
<BlockUIContainer>
<Button HorizontalAlignment="Left" Padding="5">button</Button>
</BlockUIContainer>
<Table>
<Table.Columns>
<TableColumn Width="*"></TableColumn>
<TableColumn Width="3*"></TableColumn>
<TableColumn Width="*"></TableColumn>
</Table.Columns>
<TableRowGroup >
<TableRow FontWeight="Bold" >
<TableCell >
<Paragraph>Title 1</Paragraph>
</TableCell>
<TableCell>
<Paragraph>Title 2</Paragraph>
</TableCell>
<TableCell>
<Paragraph>Title 3</Paragraph>
</TableCell>
</TableRow>
<TableRow>
<TableCell>
<Paragraph>1</Paragraph>
</TableCell>
<TableCell>
<Paragraph>2</Paragraph>
</TableCell>
<TableCell>
<Paragraph>3</Paragraph>
</TableCell>
</TableRow>
</TableRowGroup>
</Table>
</FlowDocument>
</FlowDocumentScrollViewer>
</Border>
</Grid>
</Window>
|