-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
56 lines (55 loc) · 3.31 KB
/
MainWindow.xaml
File metadata and controls
56 lines (55 loc) · 3.31 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
48
49
50
51
52
53
54
55
56
<Window x:Class="VSSolutionCatalog.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Visual Studio Solutions" Height="650" Width="975">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="AUTO" />
<RowDefinition Height="*" />
<RowDefinition Height="AUTO" />
<RowDefinition Height="AUTO" MinHeight="100" />
<RowDefinition Height="AUTO" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*" MinWidth="180"></ColumnDefinition>
<ColumnDefinition Width="5*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<ToolBar Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
<TextBlock Text="Search:" FontSize="10" />
<TextBox Margin="5,0,0,0" Width="120" FontSize="10" BorderBrush="SteelBlue" ></TextBox>
<Button Margin="15,0,0,0" FontSize="10" Content="Scan..." BorderBrush="SteelBlue" />
<Button Margin="10,0,0,0" FontSize="10" Content="Clear" BorderBrush="SteelBlue" />
<TextBlock Margin="50,0,0,0" Text="DB Test:" FontSize="10" />
<Button Margin="15,0,0,0" FontSize="10" Content="Load" BorderBrush="SteelBlue" Command="{Binding TestDataLoadCommand}" />
<Button Margin="15,0,0,0" FontSize="10" Content="Add" BorderBrush="SteelBlue" Command="{Binding TestDataAddCommand}" />
<Button Margin="15,0,0,0" FontSize="10" Content="Delete" BorderBrush="SteelBlue" Command="{Binding TestDataDeleteCommand}" />
<Button Margin="15,0,0,0" FontSize="10" Content="Save" BorderBrush="SteelBlue" Command="{Binding TestDataSaveCommand}" />
</ToolBar>
<ListBox x:Name="LVSolutions" Grid.Row="1" Grid.Column="0" ItemsSource="{Binding Path=SolutionsList}">
<!--<ListBoxItem>Apple</ListBoxItem>
<ListBoxItem>Orange</ListBoxItem>
<ListBoxItem>Watermelon</ListBoxItem>-->
</ListBox>
<ToolBar Grid.Row="2" Grid.Column="0">
<Button Margin="0,0,0,0" BorderBrush="SteelBlue" Content="Filter..." FontSize="10" />
<Button Margin="10,0,0,0" BorderBrush="SteelBlue" Content="Refresh" FontSize="10" />
<Button Margin="15,0,0,0" BorderBrush="SteelBlue" Content="Reset" FontSize="10" />
</ToolBar>
<Button Grid.Row="1" Grid.Column="1"
Width="80" Height="40"
Margin="10,10,0,0" BorderBrush="SteelBlue"
Content="test" FontSize="10"
Click="btnTest_Clicked"
/>
<ToolBar Grid.Row="2" Grid.Column="1">
<Button Margin="0,0,0,0" BorderBrush="SteelBlue" Content="Save" FontSize="10" />
<Button Margin="10,0,0,0" BorderBrush="SteelBlue" Content="Undo All" FontSize="10" />
</ToolBar>
<TextBox Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" IsEnabled="False" TextWrapping="Wrap"
AcceptsReturn="True" Text="Status...\n...\n..."></TextBox>
<ToolBar Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2">
<Button Margin="0,0,0,0" BorderBrush="SteelBlue" Content="test" FontSize="10" />
<TextBlock Text="{Binding Path=StatusText}" />
</ToolBar>
</Grid>
</Window>