Advertisement
Pekempy

Untitled

Nov 1st, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.29 KB | None | 0 0
  1.                         <!--  Genre picker button  -->
  2.                         <Button
  3.                            Grid.Row="3"
  4.                            Grid.Column="2"
  5.                            Margin="0,0,10,0"
  6.                            HorizontalAlignment="Right"
  7.                            VerticalAlignment="Bottom"
  8.                            Command="{x:Static materialDesign:DialogHost.OpenDialogCommand}"
  9.                            IsDefault="False"
  10.                            Style="{DynamicResource MaterialDesignToolButton}"
  11.                            ToolTip="Pick the genre(s)">
  12.                             <materialDesign:PackIcon
  13.                                Width="20"
  14.                                Height="20"
  15.                                VerticalAlignment="Center"
  16.                                Kind="DotsHorizontal" />
  17.                             <Button.CommandParameter>
  18.  
  19.                                 <Grid
  20.                                    Width="270"
  21.                                    Height="330">
  22.                                     <Grid.RowDefinitions>
  23.                                         <RowDefinition />
  24.                                     </Grid.RowDefinitions>
  25.                                     <Grid.ColumnDefinitions>
  26.                                         <ColumnDefinition Width="3*" />
  27.                                         <ColumnDefinition Width="3*" />
  28.                                         <ColumnDefinition Width="3*" />
  29.                                     </Grid.ColumnDefinitions>                                    
  30.                                     <Button Click="CheckGenreBoxes"
  31.                                        Grid.Row="0"
  32.                                        Grid.ColumnSpan="3"
  33.                                        Margin="10,10,0,0"
  34.                                        HorizontalAlignment="Left"
  35.                                        VerticalAlignment="Top"
  36.                                            Style="{DynamicResource MaterialDesignFlatAccentButton}">
  37.                                         <materialDesign:PackIcon Kind="Refresh" />
  38.                                     </Button>
  39.                                     <TextBlock
  40.                                        Grid.Row="0"
  41.                                        Grid.ColumnSpan="3"
  42.                                        Margin="10,10,0,0"
  43.                                        HorizontalAlignment="Center"
  44.                                        VerticalAlignment="Top"
  45.                                        FontSize="20"
  46.                                        Text="Pick your genre(s)" />
  47.                                     <ScrollViewer VerticalScrollBarVisibility="auto"
  48.                                                  Margin="0 40 0 30"
  49.                                                  Grid.ColumnSpan="3">
  50.                                         <ItemsControl x:Name="GenreAGList"
  51.                                                      ItemsSource="{Binding Source={StaticResource GenreListCVS}}">
  52.                                             <ItemsControl.ItemsPanel>
  53.                                                 <ItemsPanelTemplate>
  54.                                                     <WrapPanel />
  55.                                                 </ItemsPanelTemplate>
  56.                                             </ItemsControl.ItemsPanel>
  57.                                             <ItemsControl.ItemTemplate>
  58.                                                 <DataTemplate>
  59.                                                     <StackPanel Orientation="Horizontal"
  60.                                                                VerticalAlignment="Center">
  61.                                                         <CheckBox x:Name="genreCheckBox"
  62.                                                                  IsChecked="{Binding Checked, Mode=TwoWay}"
  63.                                                                  Margin="10 0 10 0"
  64.                                                                  Height="25"
  65.                                                                  Width="100"
  66.                                                                  Content="{Binding Name}" />
  67.                                                     </StackPanel>
  68.                                                 </DataTemplate>
  69.                                             </ItemsControl.ItemTemplate>
  70.                                         </ItemsControl>
  71.                                     </ScrollViewer>
  72.                                     <!--  CANCEL or ACCEPT buttons  -->
  73.                                     <Button
  74.                                        Grid.Row="50"
  75.                                        Grid.Column="0"
  76.                                        Width="140"
  77.                                        Margin="10 10 0 5"
  78.                                        HorizontalAlignment="Center"
  79.                                        VerticalAlignment="Bottom"
  80.                                        Click="ClearGenreSelection_OnClick"
  81.                                        Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
  82.                                        Content="CANCEL"
  83.                                        IsDefault="False"
  84.                                        Style="{DynamicResource MaterialDesignFlatButton}" />
  85.                                     <Button
  86.                                        Grid.Row="50"
  87.                                        Grid.Column="2"
  88.                                        Width="140"
  89.                                        Margin="0 10 10 5"
  90.                                        HorizontalAlignment="Center"
  91.                                        VerticalAlignment="Bottom"
  92.                                        Click="EditGenre_OnClick"
  93.                                        Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
  94.                                        Content="UPDATE"
  95.                                        IsDefault="True"
  96.                                        Style="{DynamicResource MaterialDesignFlatButton}" />
  97.                                 </Grid>
  98.                             </Button.CommandParameter>
  99.                         </Button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement