Statistics
| Branch: | Revision:

root / trunk / Pithos.Client.WPF / MessageView.xaml @ ff26eb71

History | View | Annotate | Download (1.5 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="300">
5
    <Grid x:Name="LayoutRoot" Margin="2">
6
        <Grid.RowDefinitions>
7
            <RowDefinition Height="Auto"/>
8
            <RowDefinition />
9
            <RowDefinition Height="Auto" />
10
        </Grid.RowDefinitions>
11
        <TextBlock Text="{Binding Message}" Grid.Row="0" TextWrapping="WrapWithOverflow" Margin="0,5,0,10"/>
12
        <ListBox  ItemsSource="{Binding Path=UserMessages}" Grid.Row="1">
13
            <ListBox.ItemTemplate>
14
                <DataTemplate>
15
                    <Expander Header="{Binding Message}" FontWeight="Bold">
16
                        <TextBlock Text="{Binding Details}" FontWeight="Normal" />
17
                    </Expander>
18
                </DataTemplate>
19
            </ListBox.ItemTemplate>
20
        </ListBox>
21
        <Button x:Name="Copy" Content="Copy" Width="39" Height="35" HorizontalAlignment="Left" Grid.Row="2" Click="OnCopy">
22
            <ContentControl.ContentTemplate>
23
                <DataTemplate>
24
                    <Image  Source="/Pithos.Client.WPF;component/Images/copy.png"   />
25
                </DataTemplate>
26
            </ContentControl.ContentTemplate>
27
        </Button>
28
        <Button x:Name="OKButton" Content="Close"  Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="2" IsDefault="True" Command="ApplicationCommands.Close" />
29
    </Grid>
30
</Window>