forked from taooceros/Flow.Plugin.VSCodeWorkspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SettingsView.xaml
66 lines (66 loc) · 2.58 KB
/
SettingsView.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
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
65
66
<UserControl
x:Class="Flow.Plugin.VSCodeWorkspaces.SettingsView"
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:resx="clr-namespace:Flow.Plugin.VSCodeWorkspaces.Properties"
Height="350"
mc:Ignorable="d">
<Grid Margin="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel
Grid.Row="0"
Width="Auto"
Orientation="Horizontal">
<CheckBox
Width="220"
Margin="70,8,10,8"
Checked="Save"
Content="{x:Static resx:Resources.DiscoverWorkspaces}"
IsChecked="{Binding DiscoverWorkspaces}"
ToolTip="{x:Static resx:Resources.DiscoverWorkspacesTooltip}"
Unchecked="Save" />
<CheckBox
Margin="70,8,10,8"
Checked="Save"
Content="{x:Static resx:Resources.DiscoverMachines}"
IsChecked="{Binding DiscoverMachines}"
ToolTip="{x:Static resx:Resources.DiscoverMachinesTooltip}"
Unchecked="Save" />
</StackPanel>
<ListView
x:Name="listView"
Grid.Row="1"
Margin="14,0,14,0"
BorderBrush="DarkGray"
BorderThickness="1"
ItemsSource="{Binding CustomWorkspaces}"
SelectionMode="Extended">
<ListView.View>
<GridView>
<GridViewColumn Width="Auto" Header="{x:Static resx:Resources.ExtraFolderUri}" />
</GridView>
</ListView.View>
</ListView>
<DockPanel Grid.Row="2" Margin="14,0,14,10">
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal">
<Button
MinWidth="100"
Margin="10"
Click="ButtonAdd_Click"
Content="{x:Static resx:Resources.Add}" />
<Button
MinWidth="100"
Margin="10,10,0,10"
Click="ButtonDelete_Click"
Content="{x:Static resx:Resources.Delete}" />
</StackPanel>
<TextBox x:Name="addUri" Margin="0,10,10,10" />
</DockPanel>
</Grid>
</UserControl>