Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Genre picker button -->
- <Button
- Grid.Row="3"
- Grid.Column="2"
- Margin="0,0,10,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Command="{x:Static materialDesign:DialogHost.OpenDialogCommand}"
- IsDefault="False"
- Style="{DynamicResource MaterialDesignToolButton}"
- ToolTip="Pick the genre(s)">
- <materialDesign:PackIcon
- Width="20"
- Height="20"
- VerticalAlignment="Center"
- Kind="DotsHorizontal" />
- <Button.CommandParameter>
- <Grid
- Width="270"
- Height="330">
- <Grid.RowDefinitions>
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="3*" />
- <ColumnDefinition Width="3*" />
- <ColumnDefinition Width="3*" />
- </Grid.ColumnDefinitions>
- <Button Click="CheckGenreBoxes"
- Grid.Row="0"
- Grid.ColumnSpan="3"
- Margin="10,10,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Style="{DynamicResource MaterialDesignFlatAccentButton}">
- <materialDesign:PackIcon Kind="Refresh" />
- </Button>
- <TextBlock
- Grid.Row="0"
- Grid.ColumnSpan="3"
- Margin="10,10,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="20"
- Text="Pick your genre(s)" />
- <ScrollViewer VerticalScrollBarVisibility="auto"
- Margin="0 40 0 30"
- Grid.ColumnSpan="3">
- <ItemsControl x:Name="GenreAGList"
- ItemsSource="{Binding Source={StaticResource GenreListCVS}}">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal"
- VerticalAlignment="Center">
- <CheckBox x:Name="genreCheckBox"
- IsChecked="{Binding Checked, Mode=TwoWay}"
- Margin="10 0 10 0"
- Height="25"
- Width="100"
- Content="{Binding Name}" />
- </StackPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- <!-- CANCEL or ACCEPT buttons -->
- <Button
- Grid.Row="50"
- Grid.Column="0"
- Width="140"
- Margin="10 10 0 5"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- Click="ClearGenreSelection_OnClick"
- Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
- Content="CANCEL"
- IsDefault="False"
- Style="{DynamicResource MaterialDesignFlatButton}" />
- <Button
- Grid.Row="50"
- Grid.Column="2"
- Width="140"
- Margin="0 10 10 5"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- Click="EditGenre_OnClick"
- Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}"
- Content="UPDATE"
- IsDefault="True"
- Style="{DynamicResource MaterialDesignFlatButton}" />
- </Grid>
- </Button.CommandParameter>
- </Button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement