-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
18 lines (18 loc) · 977 Bytes
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<Window x:Class="WpfHostingSkeleton.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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfHostingSkeleton"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance local:DesignMainWindowViewModel, IsDesignTimeCreatable=true}"
Title="MainWindow" Height="450" Width="800" IsEnabled="{Binding Path=IsNotBusy}">
<Grid>
<StackPanel Orientation="Vertical">
<TextBlock x:Name="Text"/>
<TextBlock Text="{Binding Path=Data}"/>
<Button Click="OnClick" HorizontalAlignment="Left">Click me!</Button>
<Button Click="DoSomethingAsync" HorizontalAlignment="Left">Click me also!</Button>
</StackPanel>
</Grid>
</Window>