blob: 1e0a3a5824ee4fbed36b6a00d0fba3115042c3ab (
plain)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
<Window x:Class="Tango.FSE.UI.Storage.ExplorerControlDialog"
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:material="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:WindowsAPICodePackPresentation="clr-namespace:Microsoft.WindowsAPICodePack.Controls.WindowsPresentationFoundation;assembly=Microsoft.WindowsAPICodePack.Shell"
xmlns:WindowsAPICodePackShell="clr-namespace:Microsoft.WindowsAPICodePack.Shell;assembly=Microsoft.WindowsAPICodePack.Shell"
xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
xmlns:local="clr-namespace:Tango.FSE.Storage.UI"
mc:Ignorable="d"
Title="Select Files And Folder" Height="530" Width="943" DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}" Background="White" Foreground="Black">
<Window.Resources>
<Style TargetType="Button" x:Key="FlatButton">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"></Setter>
<Setter Property="BorderBrush" Value="Gainsboro"></Setter>
<Setter Property="VerticalAlignment" Value="Center"></Setter>
<Setter Property="Foreground" Value="Gray"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#E5F3FF"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Foreground" Value="Gainsboro"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="Button" x:Key="FlatButtonIcon">
<Setter Property="Background" Value="White"></Setter>
<Setter Property="Padding" Value="4"></Setter>
<Setter Property="VerticalAlignment" Value="Center"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}">
<Border.Style>
<Style TargetType="Border">
<Setter Property="TextElement.Foreground" Value="Gray"></Setter>
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="TextElement.Foreground" Value="Gainsboro"/>
</Trigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=TemplatedParent},Path=IsMouseOver}" Value="True">
<Setter Property="TextElement.Foreground" Value="DodgerBlue"></Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
<ContentPresenter/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<DockPanel>
<Grid DockPanel.Dock="Top" Height="40">
<DockPanel Margin="10 0 0 0">
<Button Style="{StaticResource FlatButtonIcon}" Width="24" Height="24" x:Name="btnBack" Click="BtnBack_Click">
<material:PackIcon Kind="ArrowLeft" Width="Auto" Height="Auto" Foreground="{Binding Path=(TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}" />
</Button>
<Button Style="{StaticResource FlatButtonIcon}" Margin="10 0 0 0" Width="24" Height="24" x:Name="btnForward" Click="BtnForward_Click">
<material:PackIcon Kind="ArrowRight" Width="Auto" Height="Auto" Foreground="{Binding Path=(TextElement.Foreground), RelativeSource={RelativeSource AncestorType=ContentPresenter}}" />
</Button>
<material:PackIcon Margin="10 0 0 0" VerticalAlignment="Center" Foreground="Gainsboro" Kind="ChevronDown" Width="16" Height="16" />
<Button Style="{StaticResource FlatButton}" Margin="10 0 0 0" Width="24" Height="24" Padding="2" x:Name="btnUp" Click="BtnUp_Click">
<material:PackIcon Kind="ArrowUp" Width="Auto" Height="Auto" />
</Button>
<Grid>
<DockPanel Margin="10 0 10 0">
<Button Style="{StaticResource FlatButton}" DockPanel.Dock="Right" Width="24" Height="20" BorderThickness="0 1 1 1" x:Name="btnRefresh">
<material:PackIcon Kind="Refresh" Width="Auto" Height="Auto" />
</Button>
<Grid>
<TextBox Style="{x:Null}" VerticalAlignment="Center" GotKeyboardFocus="TxtLocation_GotKeyboardFocus" LostKeyboardFocus="TxtLocation_LostKeyboardFocus" x:Name="txtLocation" Background="White" BorderBrush="Gainsboro" VerticalContentAlignment="Center" Padding="2 0 0 0" Height="20"></TextBox>
<ItemsControl x:Name="listHistory" HorizontalAlignment="Left" ItemsSource="{Binding ShellHistory}" Background="White" Height="18" Margin="5 0 0 0">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Margin="5 0 0 0" IsItemsHost="True" Orientation="Horizontal"></StackPanel>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<material:PackIcon Foreground="Gray" VerticalAlignment="Center" Width="13" Height="13" Kind="ChevronRight" />
<Button Click="OnHistoryItemClicked" Padding="5 0" Style="{StaticResource FlatButton}">
<TextBlock Foreground="Black" Text="{Binding}"></TextBlock>
</Button>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
</DockPanel>
</Grid>
</DockPanel>
</Grid>
<Grid DockPanel.Dock="Bottom" Height="70" Background="#F5F6F7">
<DockPanel>
<Button Style="{x:Null}" BorderBrush="#A8A8A8" Margin="0 0 20 0" DockPanel.Dock="Right" VerticalAlignment="Center" Padding="40 5" x:Name="btnCancel" Click="BtnCancel_Click" Foreground="Black">Cancel</Button>
<Button Style="{x:Null}" Margin="0 0 10 0" IsDefault="True" BorderThickness="2" BorderBrush="#1EB7FF" DockPanel.Dock="Right" VerticalAlignment="Center" Padding="40 5" Foreground="Black" x:Name="btnSelect" Click="BtnSelect_Click">Select</Button>
<Grid>
</Grid>
</DockPanel>
</Grid>
<Grid>
<!--<WindowsAPICodePackPresentation:ExplorerBrowser x:Name="explorerBrowser"
Margin="-5"
BorderThickness="0"
AutoArrange="False"
CheckSelect="False"
ExtendedTiles="False"
FullRowSelect="False"
HideFileNames="False"
NoBrowserViewState="False"
NoColumnHeader="False"
NoHeaderInAllViews="False"
NoIcons="False"
NoSubfolders="False"
SingleClickActivate="False"
SingleSelection="False"
AlwaysNavigate="False"
NavigateOnce="False"
ViewMode="Auto"
CommandsPane="Show"
CommandsOrganizePane="Show"
CommandsViewPane="Show"
DetailsPane="Hide"
NavigationPane="Show"
PreviewPane="Hide"
AdvancedQueryPane="Show"
QueryPane="Show"/>-->
<WindowsFormsHost>
<WindowsFormsHost.Child>
<local:ExplorerControlForms x:Name="explorer">
</local:ExplorerControlForms>
</WindowsFormsHost.Child>
</WindowsFormsHost>
</Grid>
</DockPanel>
</Grid>
</Window>
|