|
36 | 36 | <ResourceDictionary.MergedDictionaries>
|
37 | 37 | <ResourceDictionary Source="Windows8Styles.xaml" />
|
38 | 38 | </ResourceDictionary.MergedDictionaries>
|
39 |
| - |
| 39 | + |
40 | 40 | <my:ScreenConverter x:Key="ScreenConverter1" />
|
41 | 41 | <my:CollectionsConverter x:Key="CollectionsConverter" />
|
42 | 42 | <my:PlacementConverter x:Key="PlacementConverter" />
|
|
51 | 51 | <my:LanguageConverter x:Key="LanguageConverter" />
|
52 | 52 |
|
53 | 53 | <my:PlayersConverter x:Key="PlayersConverter" />
|
54 |
| - |
| 54 | + |
55 | 55 | <my:EqualityConverter x:Key="Equality" />
|
56 | 56 |
|
57 | 57 | <my:KeyConverter x:Key="KeyConverter" />
|
|
156 | 156 | <Setter Property="Padding" Value="0" />
|
157 | 157 | <Setter Property="FontSize" Value="20" />
|
158 | 158 | <Setter Property="Foreground" Value="#FF2B2B2B"/>
|
159 |
| - |
| 159 | + |
160 | 160 | <Setter Property="ContentTemplate">
|
161 | 161 | <Setter.Value>
|
162 | 162 | <DataTemplate>
|
163 | 163 | <TextBlock Name="tb" Text="?" Foreground="#FF404040" LineStackingStrategy="BlockLineHeight" LineHeight="21" />
|
164 |
| - |
| 164 | + |
165 | 165 | <DataTemplate.Triggers>
|
166 | 166 | <Trigger Property="IsEnabled" Value="False">
|
167 | 167 | <Setter TargetName="tb" Property="Foreground" Value="Gray" />
|
|
171 | 171 | </Setter.Value>
|
172 | 172 | </Setter>
|
173 | 173 | </Style>
|
174 |
| - |
| 174 | + |
175 | 175 | <Style x:Key="TimeButton" TargetType="Button" BasedOn="{StaticResource ToolButton}">
|
176 | 176 | <Setter Property="Command" Value="{Binding}" />
|
177 | 177 | <Setter Property="ToolTip" Value="{Binding Name}" />
|
178 |
| - |
| 178 | + |
179 | 179 | <Setter Property="ContentTemplate">
|
180 | 180 | <Setter.Value>
|
181 | 181 | <DataTemplate>
|
|
186 | 186 | </DataTemplate>
|
187 | 187 | </Setter.Value>
|
188 | 188 | </Setter>
|
189 |
| - |
| 189 | + |
190 | 190 | <Setter Property="Width" Value="35" />
|
191 | 191 | <Setter Property="Padding" Value="3,5" />
|
192 |
| - |
| 192 | + |
193 | 193 | <Style.Triggers>
|
194 | 194 | <Trigger Property="Command" Value="{x:Null}">
|
195 | 195 | <Setter Property="IsEnabled" Value="False" />
|
|
208 | 208 | <GeometryDrawing
|
209 | 209 | Geometry="M0,0L1,0L1,4L0,4z"
|
210 | 210 | Brush="{Binding RelativeSource={RelativeSource AncestorType=Button},Path=Foreground}" />
|
211 |
| - |
| 211 | + |
212 | 212 | <GeometryDrawing
|
213 | 213 | Geometry="M2,0L3,0L3,4L2,4z"
|
214 | 214 | Brush="{Binding RelativeSource={RelativeSource AncestorType=Button},Path=Foreground}" />
|
|
338 | 338 | <WrapPanel />
|
339 | 339 | </ItemsPanelTemplate>
|
340 | 340 | </ItemsControl.ItemsPanel>
|
341 |
| - |
| 341 | + |
342 | 342 | <ItemsControl.ItemTemplate>
|
343 | 343 | <DataTemplate DataType="uim:ItemViewModel">
|
344 | 344 | <Button
|
|
387 | 387 | </DataTrigger>
|
388 | 388 | </ControlTemplate.Triggers>
|
389 | 389 | </ControlTemplate>
|
390 |
| - |
| 390 | + |
391 | 391 | <uic:TemplateConverter x:Key="Selector">
|
392 | 392 | <uic:TemplateConverter.DefaultTemplate>
|
393 | 393 | <DataTemplate>
|
|
399 | 399 | Margin="30" />
|
400 | 400 | </DataTemplate>
|
401 | 401 | </uic:TemplateConverter.DefaultTemplate>
|
402 |
| - |
| 402 | + |
403 | 403 | <uic:TemplateConverter.Templates>
|
404 | 404 | <DataTemplate x:Key="{x:Static uim:TableStage.Sign}">
|
405 | 405 | <TextBlock Text="{x:Static lp:Resources.HintIntro}" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
406 | 406 | </DataTemplate>
|
407 |
| - |
| 407 | + |
408 | 408 | <DataTemplate x:Key="{x:Static uim:TableStage.GameThemes}">
|
409 | 409 | <TextBlock Text="{x:Static lp:Resources.HintGameThemes}" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
410 | 410 | </DataTemplate>
|
411 |
| - |
| 411 | + |
412 | 412 | <DataTemplate x:Key="{x:Static uim:TableStage.Round}">
|
413 | 413 | <TextBlock
|
414 | 414 | Text="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=local:CommandWindow, AncestorLevel=1}, Path=DataContext.Game.ActiveRound.Name}"
|
415 | 415 | HorizontalAlignment="Center"
|
416 | 416 | VerticalAlignment="Center" />
|
417 | 417 | </DataTemplate>
|
418 |
| - |
| 418 | + |
419 | 419 | <DataTemplate x:Key="{x:Static uim:TableStage.RoundThemes}">
|
420 | 420 | <TextBlock Text="(Темы раунда)" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
421 | 421 | </DataTemplate>
|
422 |
| - |
| 422 | + |
423 | 423 | <DataTemplate x:Key="{x:Static uim:TableStage.RoundTable}">
|
424 | 424 | <Grid>
|
425 | 425 | <ItemsControl ItemsSource="{Binding RoundInfo}">
|
|
428 | 428 | <UniformGrid Columns="1" />
|
429 | 429 | </ItemsPanelTemplate>
|
430 | 430 | </ItemsControl.ItemsPanel>
|
431 |
| - |
| 431 | + |
432 | 432 | <ItemsControl.ItemTemplate>
|
433 | 433 | <DataTemplate>
|
434 | 434 | <Grid>
|
435 | 435 | <Grid.ColumnDefinitions>
|
436 | 436 | <ColumnDefinition Width="2*" />
|
437 | 437 | <ColumnDefinition Width="5*" />
|
438 | 438 | </Grid.ColumnDefinitions>
|
439 |
| - |
| 439 | + |
440 | 440 | <Border>
|
441 | 441 | <TextBlock
|
442 | 442 | Text="{Binding Name}"
|
|
446 | 446 | TextWrapping="Wrap"
|
447 | 447 | Margin="2" />
|
448 | 448 | </Border>
|
449 |
| - |
| 449 | + |
450 | 450 | <ItemsControl ItemsSource="{Binding Questions}" Grid.Column="1" BorderBrush="Gray">
|
451 | 451 | <ItemsControl.ItemsPanel>
|
452 | 452 | <ItemsPanelTemplate>
|
453 | 453 | <UniformGrid Rows="1" />
|
454 | 454 | </ItemsPanelTemplate>
|
455 | 455 | </ItemsControl.ItemsPanel>
|
456 |
| - |
| 456 | + |
457 | 457 | <ItemsControl.ItemTemplate>
|
458 | 458 | <DataTemplate>
|
459 | 459 | <Button
|
|
463 | 463 | CommandParameter="{Binding}"
|
464 | 464 | Content="{Binding Price}"
|
465 | 465 | Margin="-1,-1,0,0" />
|
466 |
| - |
| 466 | + |
467 | 467 | <DataTemplate.Triggers>
|
468 | 468 | <DataTrigger Binding="{Binding Price}" Value="-1">
|
469 | 469 | <Setter TargetName="but" Property="Content" Value="" />
|
|
526 | 526 | <StackPanel.Resources>
|
527 | 527 | <CollectionViewSource x:Key="Parameters" Source="{Binding Parameters}" Filter="Parameters_Filter" />
|
528 | 528 | </StackPanel.Resources>
|
529 |
| - |
| 529 | + |
530 | 530 | <TextBlock
|
531 | 531 | Text="{Binding TypeName, Converter={StaticResource QuestionTypeConverter}}"
|
532 | 532 | TextWrapping="Wrap"
|
|
549 | 549 | </ItemsControl>
|
550 | 550 | </StackPanel>
|
551 | 551 | </DataTemplate>
|
552 |
| - |
| 552 | + |
553 | 553 | <DataTemplate x:Key="{x:Static uim:TableStage.Question}">
|
554 | 554 | <ContentControl
|
555 | 555 | Template="{StaticResource QuestGrid}"
|
556 | 556 | DataContext="{Binding
|
557 | 557 | RelativeSource={RelativeSource FindAncestor, AncestorType=local:CommandWindow, AncestorLevel=1},
|
558 | 558 | Path=DataContext.Game}" />
|
559 | 559 | </DataTemplate>
|
560 |
| - |
| 560 | + |
561 | 561 | <DataTemplate x:Key="{x:Static uim:TableStage.QuestionPrice}">
|
562 | 562 | <TextBlock Text="{Binding Text}" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
563 | 563 | </DataTemplate>
|
564 |
| - |
| 564 | + |
565 | 565 | <DataTemplate x:Key="{x:Static uim:TableStage.Theme}">
|
566 | 566 | <TextBlock Text="{Binding Text}" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
567 | 567 | </DataTemplate>
|
|
871 | 871 | </DataTrigger>
|
872 | 872 | </DataTemplate.Triggers>
|
873 | 873 | </DataTemplate>
|
874 |
| - </ResourceDictionary> |
| 874 | + </ResourceDictionary> |
875 | 875 | </Window.Resources>
|
876 | 876 |
|
877 |
| - <Window.TaskbarItemInfo> |
878 |
| - <TaskbarItemInfo Description="SImulator"> |
879 |
| - <TaskbarItemInfo.ThumbButtonInfos> |
880 |
| - <ThumbButtonInfo Description="{x:Static lp:Resources.Back}" Command="{Binding Game.Back}"> |
881 |
| - <ThumbButtonInfo.ImageSource> |
882 |
| - <DrawingImage> |
883 |
| - <DrawingImage.Drawing> |
884 |
| - <GeometryDrawing |
885 |
| - Geometry="M0,0L-17.3,10L0,20z" |
886 |
| - Pen="{StaticResource TaskbarPen}" |
887 |
| - Brush="{StaticResource TaskbarBrush}" /> |
888 |
| - </DrawingImage.Drawing> |
889 |
| - </DrawingImage> |
890 |
| - </ThumbButtonInfo.ImageSource> |
891 |
| - </ThumbButtonInfo> |
892 |
| - |
893 |
| - <ThumbButtonInfo Description="{x:Static lp:Resources.Next}" Command="{Binding Game.Next}"> |
894 |
| - <ThumbButtonInfo.ImageSource> |
895 |
| - <DrawingImage> |
896 |
| - <DrawingImage.Drawing> |
897 |
| - <GeometryDrawing |
898 |
| - Geometry="M0,0L17.3,10L0,20z" |
899 |
| - Pen="{StaticResource TaskbarPen}" |
900 |
| - Brush="{StaticResource TaskbarBrush}" /> |
901 |
| - </DrawingImage.Drawing> |
902 |
| - </DrawingImage> |
903 |
| - </ThumbButtonInfo.ImageSource> |
904 |
| - </ThumbButtonInfo> |
905 |
| - |
906 |
| - <ThumbButtonInfo Description="{x:Static lp:Resources.Stop}" Command="{Binding Game.Stop}"> |
907 |
| - <ThumbButtonInfo.ImageSource> |
908 |
| - <DrawingImage> |
909 |
| - <DrawingImage.Drawing> |
910 |
| - <GeometryDrawing |
911 |
| - Geometry="M0,0L20,0L20,20L0,20z" |
912 |
| - Pen="{StaticResource TaskbarPen}" |
913 |
| - Brush="{StaticResource TaskbarBrush}" /> |
914 |
| - </DrawingImage.Drawing> |
915 |
| - </DrawingImage> |
916 |
| - </ThumbButtonInfo.ImageSource> |
917 |
| - </ThumbButtonInfo> |
918 |
| - </TaskbarItemInfo.ThumbButtonInfos> |
919 |
| - </TaskbarItemInfo> |
920 |
| - </Window.TaskbarItemInfo> |
921 |
| - |
922 | 877 | <TabControl TabStripPlacement="Left" Background="White" BorderThickness="1,0,0,0" Padding="6,4,4,4" Margin="-2,0,0,0">
|
923 | 878 | <TabItem
|
924 | 879 | Header="{x:Static lp:Resources.Start}"
|
|
0 commit comments