|
48 | 48 | <TextBlock Margin="2,1">Cancel search</TextBlock> |
49 | 49 | </Button> |
50 | 50 | </Grid> |
51 | | - <StackPanel> |
52 | | - <StackPanel x:Name="NoNewGamesFound" |
53 | | - Visibility="Visible" |
54 | | - Background="LightCoral" |
55 | | - VerticalAlignment="Center" |
56 | | - Margin="0, 7"> |
57 | | - <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
58 | | - <TextBlock FontWeight="Bold" |
59 | | - Padding="0, 7, 7, 7" |
60 | | - FontSize="20" |
61 | | - Foreground="Red" |
62 | | - > |
63 | | - <TextBlock.Text> |
64 | | - ⮾ |
65 | | - </TextBlock.Text> |
66 | | - </TextBlock> |
67 | | - <TextBlock TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" |
68 | | - > |
69 | | - <TextBlock.Text> |
70 | | - No new games found (︶︹︺) |
71 | | - </TextBlock.Text> |
72 | | - </TextBlock> |
73 | | - </StackPanel> |
74 | | - <ProgressBar |
75 | | - x:Name="NoNewGamesAutoHideProgress" |
76 | | - Value="0" |
77 | | - Foreground="#FFB00606" |
78 | | - /> |
79 | | - </StackPanel> |
80 | | - <ScrollViewer x:Name="GamesScroll"> |
81 | | - <ItemsControl x:Name="GamesControl" Margin="0,0,10,1"> |
82 | | - <ItemsControl.ItemTemplate> |
83 | | - <DataTemplate> |
84 | | - <Border BorderThickness="0.5" Background="#FFF" BorderBrush="#000" Margin="0,7,0,0"> |
85 | | - <DockPanel> |
86 | | - <Button DockPanel.Dock="Right" Width="20" Margin="7"> |
87 | | - <behaviors:Interaction.Behaviors> |
88 | | - <local:Page4DropDownButtonBehavior /> |
89 | | - </behaviors:Interaction.Behaviors> |
90 | | - <Button.Content> |
91 | | - ... |
92 | | - </Button.Content> |
93 | | - <Button.ContextMenu> |
94 | | - <ContextMenu ItemsSource="{Binding ContextMenu}" /> |
95 | | - </Button.ContextMenu> |
96 | | - </Button> |
97 | | - <CheckBox VerticalContentAlignment="Center" Margin="9,2,2,2" IsChecked="{Binding IsSelected}" Checked="GameSelectionChanged" Unchecked="GameSelectionChanged" > |
98 | | - <StackPanel Orientation="Horizontal"> |
99 | | - <Image Margin="5,0,0,0" Source="{Binding GameIcon}" VerticalAlignment="Center" Height="20" /> |
100 | | - <StackPanel Margin="7,0,0,0"> |
101 | | - <StackPanel Orientation="Horizontal"> |
102 | | - <TextBlock FontSize="14" FontWeight="Bold" Text="{Binding Name}" /> |
103 | | - <TextBlock Margin="7,0,0,0" FontSize="9" Foreground="Blue" Visibility="{Binding NewVisibility}">New!</TextBlock> |
104 | | - </StackPanel> |
105 | | - </StackPanel> |
106 | | - </StackPanel> |
107 | | - </CheckBox> |
108 | | - </DockPanel> |
109 | | - </Border> |
110 | | - </DataTemplate> |
111 | | - </ItemsControl.ItemTemplate> |
112 | | - </ItemsControl> |
113 | | - </ScrollViewer> |
114 | | - </StackPanel> |
| 51 | + <ScrollViewer x:Name="GamesScroll"> |
| 52 | + <StackPanel> |
| 53 | + <StackPanel x:Name="NoNewGamesFound" |
| 54 | + Visibility="Visible" |
| 55 | + Background="LightCoral" |
| 56 | + VerticalAlignment="Center" |
| 57 | + Margin="0, 7"> |
| 58 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
| 59 | + <TextBlock FontWeight="Bold" |
| 60 | + Padding="0, 7, 7, 7" |
| 61 | + FontSize="20" |
| 62 | + Foreground="Red" |
| 63 | + > |
| 64 | + <TextBlock.Text> |
| 65 | + ⮾ |
| 66 | + </TextBlock.Text> |
| 67 | + </TextBlock> |
| 68 | + <TextBlock TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" |
| 69 | + > |
| 70 | + <TextBlock.Text> |
| 71 | + No new games found (︶︹︺) |
| 72 | + </TextBlock.Text> |
| 73 | + </TextBlock> |
| 74 | + </StackPanel> |
| 75 | + <ProgressBar |
| 76 | + x:Name="NoNewGamesAutoHideProgress" |
| 77 | + Value="0" |
| 78 | + Foreground="#FFB00606" |
| 79 | + /> |
| 80 | + </StackPanel> |
| 81 | + <ItemsControl x:Name="GamesControl" Margin="0,0,10,1"> |
| 82 | + <ItemsControl.ItemTemplate> |
| 83 | + <DataTemplate> |
| 84 | + <Border BorderThickness="0.5" Background="#FFF" BorderBrush="#000" Margin="0,7,0,0"> |
| 85 | + <DockPanel> |
| 86 | + <Button DockPanel.Dock="Right" Width="20" Margin="7"> |
| 87 | + <behaviors:Interaction.Behaviors> |
| 88 | + <local:Page4DropDownButtonBehavior /> |
| 89 | + </behaviors:Interaction.Behaviors> |
| 90 | + <Button.Content> |
| 91 | + ... |
| 92 | + </Button.Content> |
| 93 | + <Button.ContextMenu> |
| 94 | + <ContextMenu ItemsSource="{Binding ContextMenu}" /> |
| 95 | + </Button.ContextMenu> |
| 96 | + </Button> |
| 97 | + <CheckBox VerticalContentAlignment="Center" Margin="9,2,2,2" IsChecked="{Binding IsSelected}" Checked="GameSelectionChanged" Unchecked="GameSelectionChanged" > |
| 98 | + <StackPanel Orientation="Horizontal"> |
| 99 | + <Image Margin="5,0,0,0" Source="{Binding GameIcon}" VerticalAlignment="Center" Height="20" /> |
| 100 | + <StackPanel Margin="7,0,0,0"> |
| 101 | + <StackPanel Orientation="Horizontal"> |
| 102 | + <TextBlock FontSize="14" FontWeight="Bold" Text="{Binding Name}" /> |
| 103 | + <TextBlock Margin="7,0,0,0" FontSize="9" Foreground="Blue" Visibility="{Binding NewVisibility}">New!</TextBlock> |
| 104 | + </StackPanel> |
| 105 | + </StackPanel> |
| 106 | + </StackPanel> |
| 107 | + </CheckBox> |
| 108 | + </DockPanel> |
| 109 | + </Border> |
| 110 | + </DataTemplate> |
| 111 | + </ItemsControl.ItemTemplate> |
| 112 | + </ItemsControl> |
| 113 | + </StackPanel> |
| 114 | + </ScrollViewer> |
115 | 115 | </DockPanel> |
116 | 116 | </UserControl> |
0 commit comments