-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
64 lines (59 loc) · 3.23 KB
/
MainWindow.xaml
File metadata and controls
64 lines (59 loc) · 3.23 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
57
58
59
60
61
62
63
64
<Window x:Class="SymLinker.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:SymLinker"
mc:Ignorable="d" ResizeMode="CanResizeWithGrip"
WindowStartupLocation="CenterScreen" Loaded="Window_Loaded"
Title="SymLinker" Height="450" Width="800" Icon="/symlinker.ico">
<Window.CommandBindings>
<CommandBinding Command="local:Commands.MenuAddFileLink" CanExecute="CanExecuteAlways" Executed="FileMenu_CommandExecuted" />
<CommandBinding Command="local:Commands.MenuAddDirectoryLink" CanExecute="CanExecuteAlways" Executed="FileMenu_CommandExecuted" />
<CommandBinding Command="local:Commands.MenuImportLinks" CanExecute="CanExecuteAlways" Executed="FileMenu_CommandExecuted" />
<CommandBinding Command="local:Commands.MenuRemoveSelected" CanExecute="CanExecuteOnSelection" Executed="FileMenu_CommandExecuted" />
<CommandBinding Command="local:Commands.MenuExit" CanExecute="CanExecuteAlways" Executed="FileMenu_CommandExecuted" />
<CommandBinding Command="local:Commands.MenuAbout" CanExecute="CanExecuteAlways" Executed="FileMenu_CommandExecuted" />
</Window.CommandBindings>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Menu Padding="3" Background="#eee">
<MenuItem Header="_File" Padding="9,2">
<MenuItem Command="local:Commands.MenuAddDirectoryLink" />
<MenuItem Command="local:Commands.MenuAddFileLink" />
<Separator />
<MenuItem Command="local:Commands.MenuImportLinks" />
<MenuItem Command="local:Commands.MenuRemoveSelected" />
<Separator />
<MenuItem Command="local:Commands.MenuExit" />
</MenuItem>
<MenuItem Header="Help" Padding="9,2">
<MenuItem Command="local:Commands.MenuAbout" />
</MenuItem>
</Menu>
<Border Grid.Row="1" Background="#eee" Visibility="Collapsed">
<StackPanel Orientation="Horizontal" Margin="3,3,3,5">
<Button Content="Add" />
</StackPanel>
</Border>
<ListView Grid.Row="2" BorderThickness="0,1" BorderBrush="LightGray" Name="ListLinks">
<ListView.View>
<GridView>
<GridViewColumn Header="Type" Width="120" DisplayMemberBinding="{Binding Type}" />
<GridViewColumn Header="Link" Width="250" DisplayMemberBinding="{Binding Source}" />
<GridViewColumn Header="Points To" Width="250" DisplayMemberBinding="{Binding Target}" />
</GridView>
</ListView.View>
</ListView>
<StatusBar Grid.Row="3">
<StatusBarItem>
<TextBlock Text="Idle." />
</StatusBarItem>
</StatusBar>
</Grid>
</Window>