root / trunk / Pithos.Client.WPF / Shell / MessageView.xaml @ 4f6d51d4
History | View | Annotate | Download (2.3 kB)
1 |
<Window x:Class="Pithos.Client.WPF.MessageView" |
---|---|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 |
Title="MessageView" Height="300" Width="500" Background="{StaticResource {x:Static SystemColors.ControlBrushKey}}" WindowStartupLocation="CenterScreen"> |
5 |
<Window.CommandBindings> |
6 |
<CommandBinding Command="ApplicationCommands.Close" |
7 |
Executed="OnClose"/> |
8 |
<CommandBinding Command="ApplicationCommands.Copy" |
9 |
Executed="OnCopy"/> |
10 |
</Window.CommandBindings> |
11 |
<Window.Resources> |
12 |
<ResourceDictionary> |
13 |
<ResourceDictionary.MergedDictionaries> |
14 |
<ResourceDictionary Source="../PithosStyles.xaml" /> |
15 |
</ResourceDictionary.MergedDictionaries> |
16 |
</ResourceDictionary> |
17 |
</Window.Resources> |
18 |
|
19 |
<Grid x:Name="LayoutRoot" Margin="5"> |
20 |
<Grid.RowDefinitions> |
21 |
<RowDefinition Height="Auto"/> |
22 |
<RowDefinition Height="*"/> |
23 |
<RowDefinition Height="Auto" /> |
24 |
</Grid.RowDefinitions> |
25 |
<TextBlock Text="{Binding Message,FallbackValue='Error Message'}" Grid.Row="0" TextWrapping="WrapWithOverflow" Margin="0,5,0,10"/> |
26 |
<ListBox ItemsSource="{Binding Path=UserMessages}" Grid.Row="1"> |
27 |
<ListBox.ItemTemplate> |
28 |
<DataTemplate> |
29 |
<Expander Header="{Binding Message,FallbackValue='Seems we have a problem'}" FontWeight="Bold"> |
30 |
<TextBlock Text="{Binding Details,FallbackValue='This is a message'}" FontWeight="Normal" TextWrapping="Wrap" /> |
31 |
</Expander> |
32 |
</DataTemplate> |
33 |
</ListBox.ItemTemplate> |
34 |
</ListBox> |
35 |
<Grid Grid.Row="2" Margin="5,10"> |
36 |
<Button x:Name="Copy" Content="Copy" ToolTip="Copy to Clipboard" HorizontalAlignment="Left" Style="{StaticResource MediumButton}" Command="Copy"/> |
37 |
<Button x:Name="SendFeedback" Content="Send" HorizontalAlignment="Center" Grid.Row="2" Style="{StaticResource MediumButton}" Click="OnSend" /> |
38 |
<Button x:Name="OKButton" Content="Close" HorizontalAlignment="Right" Grid.Row="2" IsDefault="True" Style="{StaticResource MediumButton}" Command="Close" /> |
39 |
</Grid> |
40 |
</Grid> |
41 |
</Window> |