root / trunk / Pithos.OFM / FileManagerView.xaml @ 71374945
History | View | Annotate | Download (7.8 kB)
1 |
<r:RibbonWindow x:Class="Pithos.OFM.FileManagerView" |
---|---|
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:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary" |
7 |
xmlns:local="clr-namespace:Pithos.OFM" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" |
8 |
xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro" |
9 |
mc:Ignorable="d" |
10 |
WindowStartupLocation="CenterScreen" |
11 |
d:DesignHeight="600" d:DesignWidth="800" |
12 |
Height="600" Width="800" > |
13 |
<r:RibbonWindow.Resources> |
14 |
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/> |
15 |
<BitmapImage x:Key="Icon_Folder" UriSource="pack://application:,,,/Images/Icons/Folder.ico" /> |
16 |
|
17 |
|
18 |
</r:RibbonWindow.Resources> |
19 |
<Grid> |
20 |
<Grid.RowDefinitions> |
21 |
<RowDefinition Height="Auto"/> |
22 |
<RowDefinition Height="*"/> |
23 |
<RowDefinition Height="Auto"/> |
24 |
</Grid.RowDefinitions> |
25 |
<Grid.ColumnDefinitions> |
26 |
<ColumnDefinition Width="*"></ColumnDefinition> |
27 |
<ColumnDefinition Width="Auto"></ColumnDefinition> |
28 |
<ColumnDefinition Width="*"></ColumnDefinition> |
29 |
</Grid.ColumnDefinitions> |
30 |
<r:Ribbon Grid.Row="0" Grid.ColumnSpan="3" x:Name="ribbon" Title="{Binding Title}" > |
31 |
<r:Ribbon.ApplicationMenu> |
32 |
<r:RibbonApplicationMenu Label="File" > |
33 |
<r:RibbonApplicationMenuItem Header="Preferences"></r:RibbonApplicationMenuItem> |
34 |
<r:RibbonApplicationMenuItem Header="Close" Command="Close"></r:RibbonApplicationMenuItem> |
35 |
<r:RibbonApplicationMenuItem Header="Accounts" ItemsSource="{Binding Accounts}" DisplayMemberPath="AccountName"></r:RibbonApplicationMenuItem> |
36 |
|
37 |
</r:RibbonApplicationMenu> |
38 |
</r:Ribbon.ApplicationMenu> |
39 |
<r:Ribbon.QuickAccessToolBar > |
40 |
<r:RibbonQuickAccessToolBar > |
41 |
|
42 |
</r:RibbonQuickAccessToolBar> |
43 |
</r:Ribbon.QuickAccessToolBar> |
44 |
<r:RibbonTab Header="Home"> |
45 |
<r:RibbonGroup Header="Clipboard"> |
46 |
<r:RibbonButton Label="Copy" x:Name="Copy" LargeImageSource="Images/Icons/Clipboard Copy.ico" SmallImageSource="Images/Icons/Clipboard Copy.ico" Command="Copy"/> |
47 |
<r:RibbonButton Label="Paste" x:Name="Paste" LargeImageSource="Images/Icons/Clipboard Paste.ico" SmallImageSource="Images/Icons/Clipboard Paste.ico" Command="Paste"/> |
48 |
<r:RibbonButton Label="Cut" x:Name="Cut" SmallImageSource="Images/Icons/Clipboard Cut.ico" Command="Cut"/> |
49 |
<r:RibbonButton Label="Copy Path" x:Name="CopyPath" SmallImageSource="Images/Icons/Upload.ico" Command=""/> |
50 |
</r:RibbonGroup> |
51 |
<r:RibbonGroup Header="Organise"> |
52 |
<r:RibbonButton Label="Move to" x:Name="MoveTo" LargeImageSource="Images/Icons/Upload.ico" SmallImageSource="Images/Icons/Upload.ico" /> |
53 |
<r:RibbonButton Label="Copy to" x:Name="CopyTo" LargeImageSource="Images/Icons/Upload.ico" /> |
54 |
<r:RibbonSeparator/> |
55 |
<r:RibbonButton Label="Delete" x:Name="Delete" LargeImageSource="Images/Icons/Upload.ico" /> |
56 |
<r:RibbonButton Label="Rename" x:Name="Rename" LargeImageSource="Images/Icons/Upload.ico" /> |
57 |
</r:RibbonGroup> |
58 |
<r:RibbonGroup Header="New"> |
59 |
<r:RibbonButton Label="New folder" x:Name="NewFolder" LargeImageSource="Images/Icons/Upload.ico" /> |
60 |
<r:RibbonSplitButton Label="New item" x:Name="NewItem" SmallImageSource="Images/Icons/Upload.ico" /> |
61 |
<r:RibbonSplitButton Label="Easy access" x:Name="EasyAccess" SmallImageSource="Images/Icons/Upload.ico" /> |
62 |
</r:RibbonGroup> |
63 |
<r:RibbonGroup Header="Open"> |
64 |
<r:RibbonButton Label="Properties" x:Name="Properties" LargeImageSource="Images/Icons/Upload.ico" /> |
65 |
<r:RibbonSplitButton Label="Open" x:Name="OpenFile" SmallImageSource="Images/Icons/Upload.ico" /> |
66 |
<r:RibbonSplitButton Label="Edit" x:Name="EditFile" SmallImageSource="Images/Icons/Upload.ico" /> |
67 |
<r:RibbonSplitButton Label="History" x:Name="History" SmallImageSource="Images/Icons/Upload.ico" /> |
68 |
</r:RibbonGroup> |
69 |
<r:RibbonGroup Header="Select"> |
70 |
<r:RibbonButton Label="Select all" x:Name="SelectAll" SmallImageSource="Images/Icons/Upload.ico" Command="SelectAll"/> |
71 |
<r:RibbonButton Label="Select none" x:Name="SelectNone" SmallImageSource="Images/Icons/Upload.ico" /> |
72 |
<r:RibbonButton Label="Invert selection" x:Name="InvertSelection" SmallImageSource="Images/Icons/Upload.ico" /> |
73 |
</r:RibbonGroup> |
74 |
<r:RibbonGroup Header="Accounts"> |
75 |
<r:RibbonComboBox IsEditable="True" Text="{Binding CurrentAccount.AccountName}" > |
76 |
<r:RibbonGallery SelectedItem="{Binding CurrentAccount}" DisplayMemberPath="AccountName"> |
77 |
<r:RibbonGalleryCategory ItemsSource="{Binding Accounts}" DisplayMemberPath="DisplayName" ></r:RibbonGalleryCategory> |
78 |
</r:RibbonGallery> |
79 |
</r:RibbonComboBox> |
80 |
</r:RibbonGroup> |
81 |
</r:RibbonTab> |
82 |
<r:RibbonTab Header="Local Files" ContextualTabGroupHeader="Local Files" IsSelected="{Binding IsLocalSelected,Mode=OneWay}"> |
83 |
<r:RibbonGroup Header="Operations"> |
84 |
<r:RibbonButton Label="Upload" x:Name="Upload" LargeImageSource="Images/Icons/Upload.ico" VerticalAlignment="Top"/> |
85 |
</r:RibbonGroup> |
86 |
</r:RibbonTab> |
87 |
<r:RibbonTab Header="Cloud Files" ContextualTabGroupHeader="Cloud Files" IsSelected="{Binding IsCloudSelected,Mode=OneWay}"> |
88 |
<r:RibbonGroup Header="Operations"> |
89 |
<r:RibbonButton Label="Download" x:Name="Download" LargeImageSource="Images/Icons/Download.ico" VerticalAlignment="Top"/> |
90 |
</r:RibbonGroup> |
91 |
</r:RibbonTab> |
92 |
<r:RibbonTab Header="Sync"/> |
93 |
<r:RibbonTab Header="Accounts"/> |
94 |
<r:Ribbon.ContextualTabGroups> |
95 |
<r:RibbonContextualTabGroup Header="Local Files" Visibility="{Binding IsLocalSelected, Converter={StaticResource BooleanToVisibilityConverter}}"></r:RibbonContextualTabGroup> |
96 |
<r:RibbonContextualTabGroup Header="Cloud Files" Visibility="{Binding IsCloudSelected, Converter={StaticResource BooleanToVisibilityConverter}}"></r:RibbonContextualTabGroup> |
97 |
</r:Ribbon.ContextualTabGroups> |
98 |
</r:Ribbon> |
99 |
<ContentControl x:Name="LocalFiles" Grid.Row="1" Grid.Column="0" ></ContentControl> |
100 |
<GridSplitter VerticalAlignment="Stretch" Grid.Column="1" Grid.Row="1" Width="5" |
101 |
ResizeDirection="Columns" ResizeBehavior="PreviousAndNext" |
102 |
></GridSplitter> |
103 |
<ContentControl x:Name="CloudFiles" Grid.Row="1" Grid.Column="2" ></ContentControl> |
104 |
<StackPanel Orientation="Horizontal" Grid.Row="2" Grid.ColumnSpan="3" Margin="5"> |
105 |
<TextBlock >Operation Progress ...</TextBlock><ProgressBar Margin =" 5,0" Value="20" HorizontalAlignment="Left" Width="150"></ProgressBar> |
106 |
</StackPanel> |
107 |
</Grid> |
108 |
|
109 |
</r:RibbonWindow> |