Revision 311d1cde trunk/Pithos.Client.WPF/Shell/ShellView.xaml
b/trunk/Pithos.Client.WPF/Shell/ShellView.xaml | ||
---|---|---|
41 | 41 |
<MenuItem Header="{Binding OpenFolderCaption}" IsEnabled="{Binding HasAccounts}" x:Name="OpenPithosFolder" ItemsSource="{Binding Accounts}" > |
42 | 42 |
<MenuItem.ItemTemplate> |
43 | 43 |
<DataTemplate> |
44 |
<StackPanel> |
|
44 | 45 |
<TextBlock x:Name="AccountLink" Text="{Binding Path=UserName}" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action OpenPithosFolder($dataContext)]" |
45 | 46 |
cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" /> |
47 |
<TextBlock Text="{Binding Path=StorageUri}" FontStyle="Italic" FontSize="10" /> |
|
48 |
</StackPanel> |
|
46 | 49 |
</DataTemplate> |
47 | 50 |
</MenuItem.ItemTemplate> |
48 | 51 |
<MenuItem.Icon> |
... | ... | |
52 | 55 |
<MenuItem Header="Go to Account Site" x:Name="GoToSiteMenu" ItemsSource="{Binding Accounts}" Visibility="{Binding Path=HasAccounts, Converter={StaticResource BooleanToVisible}}" > |
53 | 56 |
<MenuItem.ItemTemplate> |
54 | 57 |
<DataTemplate> |
55 |
<TextBlock x:Name="AccountLink" Text="{Binding Path=UserName}" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action GoToSite($dataContext)]" |
|
56 |
cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" /> |
|
58 |
<StackPanel> |
|
59 |
<TextBlock x:Name="AccountLink" Text="{Binding Path=UserName}" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action GoToSite($dataContext)]" |
|
60 |
cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" /> |
|
61 |
<TextBlock Text="{Binding Path=StorageUri}" FontStyle="Italic" FontSize="10" /> |
|
62 |
</StackPanel> |
|
57 | 63 |
</DataTemplate> |
58 | 64 |
</MenuItem.ItemTemplate> |
59 | 65 |
<MenuItem.Icon> |
Also available in: Unified diff