root / trunk / Pithos.OFM / LocalFilesView.xaml @ 71374945
History | View | Annotate | Download (2.2 kB)
1 |
<UserControl x:Class="Pithos.OFM.LocalFilesView" |
---|---|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 |
xmlns:xctk="clr-namespace:Xceed.Wpf.Toolkit;assembly=WPFToolkit.Extended" |
7 |
xmlns:local="clr-namespace:Pithos.OFM" xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro" |
8 |
mc:Ignorable="d" |
9 |
d:DesignHeight="300" d:DesignWidth="300"> |
10 |
<Grid> |
11 |
<Grid.RowDefinitions> |
12 |
<RowDefinition Height="Auto"/> |
13 |
<RowDefinition/> |
14 |
<RowDefinition Height="Auto"/> |
15 |
</Grid.RowDefinitions> |
16 |
|
17 |
<TextBlock Grid.Row="0">Local</TextBlock> |
18 |
<xctk:BusyIndicator Grid.Row="1" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsBusy="{Binding IsLocalBusy}" |
19 |
BusyContent="{Binding LocalBusyMessage}" > |
20 |
<TreeView Name="LocalFiles" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
21 |
cal:Message.Attach="[Event SelectedItemChanged] = [Action SelectLocalFile($eventArgs)]"> |
22 |
<TreeView.Resources> |
23 |
<HierarchicalDataTemplate DataType="{x:Type local:DirectoryRecord}" ItemsSource="{Binding Infos}"> |
24 |
<StackPanel Orientation="Horizontal"> |
25 |
<Image Source="Images/Icons/Folder.ico" MaxWidth="16" MaxHeight="16" Margin="1" Stretch="Uniform" /> |
26 |
<TextBlock x:Name="Name" Text="{Binding Info.Name}"/> |
27 |
</StackPanel> |
28 |
</HierarchicalDataTemplate> |
29 |
<HierarchicalDataTemplate DataType="{x:Type local:FileRecord}" > |
30 |
<StackPanel Orientation="Horizontal"> |
31 |
<TextBlock x:Name="Name" Margin="16,0,0,0" Text="{Binding Info.Name}"/> |
32 |
</StackPanel> |
33 |
</HierarchicalDataTemplate> |
34 |
</TreeView.Resources> |
35 |
</TreeView> |
36 |
</xctk:BusyIndicator> |
37 |
|
38 |
</Grid> |
39 |
</UserControl> |