InboxView.xaml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <UserControl x:Class="WindowsPhone.Recipes.Push.Client.Views.InboxView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:tk="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. mc:Ignorable="d"
  8. FontFamily="{StaticResource PhoneFontFamilyNormal}"
  9. FontSize="{StaticResource PhoneFontSizeNormal}"
  10. Foreground="{StaticResource PhoneForegroundBrush}"
  11. d:DesignHeight="480" d:DesignWidth="480">
  12. <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}">
  13. <VisualStateManager.VisualStateGroups>
  14. <VisualStateGroup x:Name="Views">
  15. <VisualState x:Name="NormalView" />
  16. <VisualState x:Name="ScheduleView">
  17. <Storyboard>
  18. <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetName="TileScheduleView" Storyboard.TargetProperty="Visibility">
  19. <DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
  20. </ObjectAnimationUsingKeyFrames>
  21. </Storyboard>
  22. </VisualState>
  23. </VisualStateGroup>
  24. </VisualStateManager.VisualStateGroups>
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="120"/>
  27. <RowDefinition Height="120"/>
  28. <RowDefinition Height="60"/>
  29. <RowDefinition Height="*"/>
  30. </Grid.RowDefinitions>
  31. <StackPanel d:LayoutOverrides="Height">
  32. <TextBlock Margin="12,12,0,0" Text="Active Push Pattern" FontSize="24" />
  33. <ListBox ItemsSource="{Binding PushPatterns}"
  34. IsHitTestVisible="False"
  35. SelectedItem="{Binding PushPattern, Mode=TwoWay}"
  36. ItemsPanel="{StaticResource ItemsPanelTemplate}"
  37. ItemContainerStyle="{StaticResource PatternListBoxItemStyle}"
  38. HorizontalAlignment="Center">
  39. <ListBox.ItemTemplate>
  40. <DataTemplate>
  41. <TextBlock Text="{Binding}"
  42. TextWrapping="Wrap"
  43. VerticalAlignment="Center"
  44. HorizontalAlignment="Center"
  45. TextAlignment="Center" />
  46. </DataTemplate>
  47. </ListBox.ItemTemplate>
  48. </ListBox>
  49. </StackPanel>
  50. <StackPanel Grid.Row="1" d:LayoutOverrides="Height">
  51. <TextBlock Margin="12,12,0,0" Text="Counter (if relevant)" FontSize="24" />
  52. <TextBlock Margin="12,12,0,0" Text="{Binding Counter}" Foreground="LightBlue" />
  53. </StackPanel>
  54. <TextBlock Margin="12,12,0,17" Text="Raw Messages (last on top)" Grid.Row="2" d:LayoutOverrides="Height" FontSize="24" />
  55. <ListBox ItemsSource="{Binding RawMessages}" Grid.Row="4" Margin="12,0,12,80"/>
  56. <Border x:Name="TileScheduleView"
  57. Grid.Row="1" Grid.RowSpan="3"
  58. Visibility="Collapsed"
  59. Background="{StaticResource PhoneChromeBrush}">
  60. <StackPanel>
  61. <TextBlock Margin="12,12,0,17" Text="Tile Image (located on server)" Grid.Row="2" d:LayoutOverrides="Height" FontSize="24" />
  62. <ListBox ItemsSource="{Binding ServerImages}"
  63. SelectedItem="{Binding SelectedServerImage, Mode=TwoWay}"
  64. Margin="12,0,12,0" />
  65. <Grid>
  66. <Grid.ColumnDefinitions>
  67. <ColumnDefinition />
  68. <ColumnDefinition />
  69. </Grid.ColumnDefinitions>
  70. <Button Content="Schedule" Click="ButtonSchedule_Click" />
  71. <Button Content="Test Now" Click="ButtonTestNow_Click" Grid.Column="1" />
  72. </Grid>
  73. </StackPanel>
  74. </Border>
  75. </Grid>
  76. </UserControl>