|
45 | 45 | ToolTip="Resource name: MaterialDesignRaisedAccentButton">
|
46 | 46 | ACCENT
|
47 | 47 | </Button>
|
| 48 | + |
| 49 | + <materialDesign:PopupBox PlacementMode="BottomAndAlignRightEdges" StaysOpen="False"> |
| 50 | + <StackPanel> |
| 51 | + <Button Content="Hello World"/> |
| 52 | + <Button Content="Nice Popup"/> |
| 53 | + <Button Content="Can't Touch This" IsEnabled="False" /> |
| 54 | + <Separator/> |
| 55 | + <Button Content="Goodbye"/> |
| 56 | + </StackPanel> |
| 57 | + </materialDesign:PopupBox> |
| 58 | + |
| 59 | + <materialDesign:PopupBox StaysOpen="True"> |
| 60 | + <Grid Width="300" Margin="8,8,8,8"> |
| 61 | + <Grid.Resources> |
| 62 | + <Style TargetType="CheckBox" BasedOn="{StaticResource MaterialDesignCheckBox}"> |
| 63 | + <Setter Property="Margin" Value="8,8,10,8"/> |
| 64 | + </Style> |
| 65 | + <Style TargetType="TextBox" BasedOn="{StaticResource MaterialDesignTextBox}"> |
| 66 | + <Setter Property="materialDesign:HintAssist.IsFloating" Value="True"/> |
| 67 | + <Setter Property="Margin" Value="8,8,8,8"/> |
| 68 | + </Style> |
| 69 | + </Grid.Resources> |
| 70 | + <Grid.ColumnDefinitions> |
| 71 | + <ColumnDefinition Width="*"/> |
| 72 | + <ColumnDefinition Width="Auto"/> |
| 73 | + </Grid.ColumnDefinitions> |
| 74 | + <Grid.RowDefinitions> |
| 75 | + <RowDefinition Height="*"/> |
| 76 | + <RowDefinition Height="*"/> |
| 77 | + <RowDefinition Height="*"/> |
| 78 | + <RowDefinition Height="*"/> |
| 79 | + <RowDefinition Height="*" /> |
| 80 | + </Grid.RowDefinitions> |
| 81 | + <TextBlock Grid.Column="0" Grid.Row="0" Style="{StaticResource MaterialDesignTitleTextBlock}" Margin="8,8,8,16">OPTIONS</TextBlock> |
| 82 | + <TextBox Grid.Column="0" Grid.Row="1" materialDesign:HintAssist.Hint="Setting 1" Text="200"/> |
| 83 | + <TextBox Grid.Column="0" Grid.Row="2" materialDesign:HintAssist.Hint="Setting 2" Text="400"/> |
| 84 | + <TextBox Grid.Column="0" Grid.Row="3" materialDesign:HintAssist.Hint="Setting 3" Text="600"/> |
| 85 | + <CheckBox Grid.Column="1" Grid.Row="1" VerticalAlignment="Bottom" /> |
| 86 | + <CheckBox Grid.Column="1" Grid.Row="2" IsChecked="True" VerticalAlignment="Bottom" /> |
| 87 | + <CheckBox Grid.Column="1" Grid.Row="3" VerticalAlignment="Bottom" /> |
| 88 | + <ComboBox Grid.Column="0" Grid.Row="4" materialDesign:HintAssist.Hint="Setting 4" materialDesign:HintAssist.IsFloating="True" |
| 89 | + MaxDropDownHeight="200" |
| 90 | + Margin="8 8 8 8"> |
| 91 | + <ComboBoxItem>25%</ComboBoxItem> |
| 92 | + <ComboBoxItem>50%</ComboBoxItem> |
| 93 | + <ComboBoxItem>75%</ComboBoxItem> |
| 94 | + <ComboBoxItem>100%</ComboBoxItem> |
| 95 | + <ComboBoxItem>150%</ComboBoxItem> |
| 96 | + <ComboBoxItem>200%</ComboBoxItem> |
| 97 | + <ComboBoxItem>250%</ComboBoxItem> |
| 98 | + <ComboBoxItem>501%</ComboBoxItem> |
| 99 | + </ComboBox> |
| 100 | + </Grid> |
| 101 | + |
| 102 | + </materialDesign:PopupBox> |
| 103 | + |
48 | 104 | <materialDesign:PopupBox
|
49 | 105 | Style="{StaticResource MaterialDesignMultiFloatingActionPopupBox}"
|
50 | 106 | PlacementMode="BottomAndAlignCentres"
|
|
330 | 386 | <TextBlock Width="100" Height="30" Text="{Binding ElementName=CustomRatingBar, Path=Value, StringFormat=Rating: {0}}" VerticalAlignment="Top" />
|
331 | 387 | </codeDisplayer:XamlDisplayerPanel>
|
332 | 388 | </UserControl>
|
| 389 | + |
0 commit comments