-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
47 lines (41 loc) · 1.65 KB
/
MainWindow.xaml
File metadata and controls
47 lines (41 loc) · 1.65 KB
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
37
38
39
40
41
42
43
44
45
46
47
<Window x:Class="CSV_ObjectCrafter.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:CSV_ObjectCrafter"
xmlns:vm="clr-namespace:CSV_ObjectCrafter.ViewModels"
xmlns:views="clr-namespace:CSV_ObjectCrafter.Views"
mc:Ignorable="d"
Title="MainWindow"
Height="auto"
Width="auto"
MinHeight="500"
MinWidth="200"
ResizeMode="CanResize"
x:Name="myWindow">
<Window.DataContext>
<vm:MainViewModel/>
</Window.DataContext>
<Grid>
<Grid.RowDefinitions >
<RowDefinition Height="auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<views:CommandButtons x:Name="myCommandButtons"
Grid.Row="0"
DataContext="{Binding commandButtonsVM}"
Height="50"/>
<DataGrid x:Name="myDataGrid"
Grid.Row="1"
SelectionChanged="myDataGrid_SelectionChanged"
Height="auto"
Width="auto"
MinRowHeight="10"
MinColumnWidth="10"
AutoGenerateColumns="True"
AutoGeneratingColumn="myDataGrid_AutoGeneratingColumn"
CellEditEnding="myDataGrid_CellEditEnding"
CanUserAddRows="False"/>
</Grid>
</Window>