mirror of
https://github.com/jie65535/Helpers.git
synced 2025-06-01 17:29:12 +08:00
31 lines
1.0 KiB
XML
31 lines
1.0 KiB
XML
<Window
|
|
x:Class="MvvmLightDemo.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:local="clr-namespace:MvvmLightDemo"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
Title="MainWindow"
|
|
Width="800"
|
|
Height="450"
|
|
WindowStartupLocation="CenterScreen"
|
|
mc:Ignorable="d">
|
|
<Window.DataContext>
|
|
<Binding Path="Main" Source="{StaticResource Locator}" />
|
|
</Window.DataContext>
|
|
<Grid>
|
|
<TextBlock
|
|
Margin="0,0,0,100"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="{Binding Title}" />
|
|
<Button
|
|
Padding="10"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Command="{Binding ChangeTitleCommand}"
|
|
Content="Click Me!" />
|
|
</Grid>
|
|
</Window>
|