1 <UserControl x:Class="WEBSWAPP.Silverlight.Samples.ChatAdmin.Page"

    2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    4   >

    5     <Canvas x:Name="LayoutRoot" Background="White">

    6         <Grid Width="950" Height="300" VerticalAlignment="top" HorizontalAlignment="Left" >

    7             <Grid.RowDefinitions>

    8                 <RowDefinition Height="20"/>

    9                 <RowDefinition Height="30"/>

   10                 <RowDefinition MaxHeight="20"/>

   11                 <RowDefinition Height="*"/>

   12             </Grid.RowDefinitions>

   13             <Grid.ColumnDefinitions>

   14                 <ColumnDefinition Width="470"/>

   15                 <ColumnDefinition Width="*"/>

   16             </Grid.ColumnDefinitions>

   17             <StackPanel Orientation="Vertical" Grid.Row="0" Grid.ColumnSpan="2" Background="#7298b4"  >

   18                 <TextBlock Text="Customer Support - Admin Interface" FontWeight="Bold" Foreground="White" TextAlignment="Center" FontSize="14" ></TextBlock>

   19             </StackPanel>

   20             <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2" Background="#7298b4"  >

   21 

   22                 <TextBlock Text="Response to selected item" VerticalAlignment="Bottom"  Padding="3" Foreground="White" />

   23                 <TextBox Name="tbMessage" MaxLength="300" Width="720"></TextBox>

   24                 <Button Name="btnSend" Content="Send" Width="70" Click="Button_Click"></Button>

   25             </StackPanel>

   26             <StackPanel Grid.Row="2" Grid.ColumnSpan="2">

   27                 <TextBlock Name="tbStatus" Width="1000" Height="20" Visibility="Collapsed" ></TextBlock>

   28             </StackPanel>

   29             <StackPanel Orientation="Horizontal" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" >

   30                 <StackPanel Orientation="Vertical" Width="200" Height="200">

   31                     <TextBlock Text="List of Users" Height="20" TextAlignment="Center" Width="200"></TextBlock>

   32                     <ListBox Name="lbUserNames" Width="200" Height="150" SelectionChanged="ListBox_SelectionChanged">

   33                         <ListBox.ItemTemplate >

   34                             <DataTemplate>

   35                                 <StackPanel Orientation="Horizontal" >

   36                                     <TextBlock Text="{Binding UserName}" Height="20" Width="50" />

   37                                     <TextBlock Text="{Binding TimeOfStartingSession}" Height="20" Width="150"/>

   38                                 </StackPanel>

   39                             </DataTemplate>

   40                         </ListBox.ItemTemplate>

   41                     </ListBox>

   42                 </StackPanel>

   43                 <StackPanel Orientation="Vertical" Height="200" Width="800"  >

   44                     <StackPanel Orientation="Horizontal" Background="Honeydew" >

   45                         <TextBlock Text="Entry Time" TextWrapping="Wrap" TextAlignment="Center"  Width="150"></TextBlock>

   46                         <TextBlock Text="User Question" TextWrapping="Wrap" TextAlignment="Center"   Width="220"></TextBlock>

   47                         <TextBlock Text="Response Time" TextWrapping="Wrap" TextAlignment="Center"  Width="150"></TextBlock>

   48                         <TextBlock Text="Response" TextWrapping="Wrap" TextAlignment="Center" Width="220"></TextBlock>

   49                     </StackPanel>

   50                     <ListBox Name="lbConversation" Height="150" Width="750"    

   51                 HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="0" >

   52                         <ListBox.ItemTemplate >

   53                             <DataTemplate>

   54 

   55                                 <StackPanel Orientation="Horizontal" >

   56                                     <TextBlock Text="{Binding EntryDate}" TextWrapping="Wrap" Width="150" />

   57                                     <TextBlock Text="{Binding Message}" TextWrapping="Wrap" Width="220" />

   58                                     <TextBlock Text="{Binding ResponseDate}" TextWrapping="Wrap" Width="150" Foreground="Maroon" />

   59                                     <TextBlock Text="{Binding Response}" TextWrapping="Wrap" Width="220" Foreground="Maroon" />

   60                                 </StackPanel>

   61                             </DataTemplate>

   62                         </ListBox.ItemTemplate>

   63                     </ListBox>

   64 

   65 

   66                 </StackPanel>

   67 

   68             </StackPanel>

   69 

   70         </Grid>

   71     </Canvas >

   72 </UserControl>

   73