-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExerciseWindow.xaml
36 lines (34 loc) · 1.67 KB
/
ExerciseWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Window x:Class="TodoList.ExerciseWindow"
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:TodoList"
xmlns:ViewModel="clr-namespace:TodoList.ViewModels"
mc:Ignorable="d"
Title="ExerciseWindow" Height="500" Width="300">
<Window.DataContext>
<ViewModel:ExerciseVM></ViewModel:ExerciseVM>
</Window.DataContext>
<Grid>
<StackPanel>
<Button Command="{Binding CloseWindow, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Left" Background="White" BorderBrush="White">
<Image Height="25" Width="100" Source="/../Images/back.png"></Image>
</Button>
<StackPanel>
<TextBox Margin="10" BorderBrush="White" Background="White"
Text="{Binding Header, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
TextWrapping="Wrap" HorizontalAlignment="Center" FontSize="24"></TextBox>
<RichTextBox BorderBrush="White" Background="White"
Margin="7, 15, 7, 7" FontSize="16">
<FlowDocument>
<Paragraph>
<Run Text="{Binding MainText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></Run>
</Paragraph>
</FlowDocument>
</RichTextBox>
</StackPanel>
</StackPanel>
</Grid>
</Window>