blob: ad503c7de890d1b51c499ec43563b96bfc82a03f (
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
|
<UserControl x:Class="Tango.FSE.PPCConsole.Views.FileSystemView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:global="clr-namespace:Tango.FSE.PPCConsole"
xmlns:vm="clr-namespace:Tango.FSE.PPCConsole.ViewModels"
xmlns:controls="clr-namespace:Tango.FSE.Common.Controls;assembly=Tango.FSE.Common"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Tango.FSE.PPCConsole.Views"
xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:FileSystemViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.FileSystemViewVM}">
<Grid>
<Grid Margin="0 20 0 0">
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<DockPanel>
<ListBox x:Name="listView" SelectedIndex="1" Background="{StaticResource FSE_PrimaryBackgroundLightBrush}" SelectionChanged="ListView_SelectionChanged" Style="{StaticResource MaterialDesignToolToggleListBox}" Margin="50 0 0 0" DockPanel.Dock="Right">
<ListBox.Resources>
<SolidColorBrush x:Key="MaterialDesignDivider" Color="{StaticResource FSE_PrimaryBackgroundDarkColor}"/>
</ListBox.Resources>
<ListBoxItem Width="60" HorizontalContentAlignment="Center" Tag="Large">
<material:PackIcon Kind="ViewList" Width="Auto" Height="20" />
</ListBoxItem>
<ListBoxItem Width="60" HorizontalContentAlignment="Center" Tag="Details">
<material:PackIcon Kind="FormatListBulleted" Width="Auto" Height="20" />
</ListBoxItem>
</ListBox>
<DockPanel>
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal">
<Button Command="{Binding NavigateCommand}" material:ButtonAssist.CornerRadius="0 3 3 0" Style="{StaticResource FSE_RaisedButton_Dark_Hover}" Padding="0" Width="60" Height="Auto">
<material:PackIcon Kind="Refresh" Width="Auto" Height="20" />
</Button>
</StackPanel>
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal">
<Button material:ButtonAssist.CornerRadius="3 0 0 3" Style="{StaticResource FSE_RaisedButton_Dark_Hover}" Padding="0" Width="60" Height="Auto">
<material:PackIcon Kind="ChevronLeft" Width="Auto" Height="20" />
</Button>
</StackPanel>
<Border>
<Border BorderThickness="3" BorderBrush="{StaticResource FSE_PrimaryBackgroundLightBrush}" Background="{StaticResource FSE_PrimaryBackgroundDarkBrush}">
<Border.Effect>
<DropShadowEffect BlurRadius="2" ShadowDepth="2" Opacity="0.3" Direction="270" />
</Border.Effect>
<TextBox Padding="5 0 0 0" Text="{Binding CurrentPath,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}" CaretBrush="{StaticResource FSE_PrimaryForegroundBrush}" Background="Transparent" BorderThickness="0" VerticalContentAlignment="Center" Style="{x:Null}">
<TextBox.InputBindings>
<KeyBinding Key="Return" Command="{Binding NavigateCommand}" />
</TextBox.InputBindings>
</TextBox>
</Border>
</Border>
</DockPanel>
</DockPanel>
<controls:FileSystemControl Margin="0 10 0 0" CurrentItem="{Binding CurrentItem}" Grid.Row="1" Mode="{Binding ElementName=listView,Path=SelectedItem.Tag}" />
</Grid>
</Grid>
</UserControl>
|