root / trunk / Pithos.OFM / CloudFilesView.xaml @ 71374945
History | View | Annotate | Download (1.8 kB)
1 |
<UserControl x:Class="Pithos.OFM.CloudFilesView" |
---|---|
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" xmlns:local="clr-namespace:Pithos.OFM" |
6 |
xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro" |
7 |
xmlns:xctk="clr-namespace:Xceed.Wpf.Toolkit;assembly=WPFToolkit.Extended" |
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 |
<TextBlock Grid.Row="0" >Pithos</TextBlock> |
17 |
<xctk:BusyIndicator Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsBusy="{Binding IsCloudBusy}" |
18 |
BusyContent="{Binding CloudBusyMessage}" > |
19 |
|
20 |
<TreeView Name="CloudInfos" Grid.Row="1" Grid.Column="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
21 |
cal:Message.Attach="[Event SelectedItemChanged] = [Action SelectCloudFile($eventArgs)]"> |
22 |
<TreeView.ItemTemplate> |
23 |
<HierarchicalDataTemplate DataType="{x:Type local:ObjectRecord}" ItemsSource="{Binding Directories}"> |
24 |
<StackPanel Orientation="Horizontal"> |
25 |
<TextBlock x:Name="Name" Margin="5,0,0,0" Text="{Binding DisplayName}"/> |
26 |
</StackPanel> |
27 |
</HierarchicalDataTemplate> |
28 |
</TreeView.ItemTemplate> |
29 |
</TreeView> |
30 |
</xctk:BusyIndicator> |
31 |
</Grid> |
32 |
</UserControl> |