45 lines
1.6 KiB
XML
45 lines
1.6 KiB
XML
<Window
|
|
x:Class="Example.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
xmlns:local="clr-namespace:Example"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
Title="MainWindow"
|
|
Width="800"
|
|
Height="450"
|
|
d:DataContext="{d:DesignInstance local:MainWindowViewModel}"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
Background="#E20074"
|
|
mc:Ignorable="d">
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="ContentRendered">
|
|
<i:InvokeCommandAction Command="{Binding UpdateCommand}" CommandParameter="True" />
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
<StackPanel>
|
|
<Button
|
|
Margin="10"
|
|
Command="{Binding UpdateCommand}"
|
|
CommandParameter="False"
|
|
Content="Update"
|
|
FontSize="24" />
|
|
<TextBlock
|
|
Margin="20"
|
|
HorizontalAlignment="Center"
|
|
FontSize="60"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Text=":-)">
|
|
<TextBlock.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform />
|
|
<SkewTransform />
|
|
<RotateTransform Angle="90" />
|
|
<TranslateTransform />
|
|
</TransformGroup>
|
|
</TextBlock.RenderTransform>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Window> |