|
7 | 7 | xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
8 | 8 | xmlns:wpfExample="clr-namespace:MaterialDesignColors.WpfExample"
|
9 | 9 | mc:Ignorable="d"
|
10 |
| - d:DesignHeight="300" d:DesignWidth="300"> |
| 10 | + d:DesignHeight="400" d:DesignWidth="800"> |
11 | 11 | <UserControl.Resources>
|
12 | 12 | <ResourceDictionary>
|
13 | 13 | <ResourceDictionary.MergedDictionaries>
|
|
88 | 88 | </StackPanel>
|
89 | 89 | </materialDesign:PopupBox>
|
90 | 90 | </StackPanel>
|
91 |
| - <materialDesign:PopupBox Style="{StaticResource MaterialDesignMultiFloatingActionAccentPopupBox}" |
92 |
| - PlacementMode="BottomAndAlignCentres" |
93 |
| - HorizontalAlignment="Right" |
| 91 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom"> |
| 92 | + <materialDesign:PopupBox Margin="16,0,16,0" StaysOpen="True"> |
| 93 | + <Grid Width="300" Margin="8,8,8,8"> |
| 94 | + <Grid.Resources> |
| 95 | + <Style TargetType="CheckBox" BasedOn="{StaticResource MaterialDesignCheckBox}"> |
| 96 | + <Setter Property="Margin" Value="8,8,8,8"/> |
| 97 | + </Style> |
| 98 | + <Style TargetType="TextBox" BasedOn="{StaticResource MaterialDesignTextBox}"> |
| 99 | + <Setter Property="materialDesign:HintAssist.IsFloating" Value="True"/> |
| 100 | + <Setter Property="Margin" Value="8,16,8,8"/> |
| 101 | + </Style> |
| 102 | + </Grid.Resources> |
| 103 | + <Grid.ColumnDefinitions> |
| 104 | + <ColumnDefinition Width="*"/> |
| 105 | + <ColumnDefinition Width="Auto"/> |
| 106 | + </Grid.ColumnDefinitions> |
| 107 | + <Grid.RowDefinitions> |
| 108 | + <RowDefinition Height="*"/> |
| 109 | + <RowDefinition Height="*"/> |
| 110 | + <RowDefinition Height="*"/> |
| 111 | + <RowDefinition Height="*"/> |
| 112 | + </Grid.RowDefinitions> |
| 113 | + <TextBlock Grid.Column="0" Grid.Row="0" Style="{StaticResource MaterialDesignTitleTextBlock}" Margin="8,8,8,16">OPTIONS</TextBlock> |
| 114 | + <TextBox Grid.Column="0" Grid.Row="1" materialDesign:HintAssist.Hint="Setting 1" Text="200"/> |
| 115 | + <TextBox Grid.Column="0" Grid.Row="2" materialDesign:HintAssist.Hint="Setting 2" Text="400"/> |
| 116 | + <TextBox Grid.Column="0" Grid.Row="3" materialDesign:HintAssist.Hint="Setting 3" Text="600"/> |
| 117 | + <CheckBox Grid.Column="1" Grid.Row="1"/> |
| 118 | + <CheckBox Grid.Column="1" Grid.Row="2" IsChecked="True"/> |
| 119 | + <CheckBox Grid.Column="1" Grid.Row="3"/> |
| 120 | + </Grid> |
| 121 | + |
| 122 | + </materialDesign:PopupBox> |
| 123 | + |
| 124 | + <materialDesign:PopupBox Style="{StaticResource MaterialDesignMultiFloatingActionAccentPopupBox}" |
| 125 | + PlacementMode="BottomAndAlignCentres" |
94 | 126 | ToggleCheckedContentCommand="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=wpfExample:Buttons}, Path=FloatingActionDemoCommand}"
|
95 | 127 | ToggleCheckedContentCommandParameter="wowsers"
|
96 | 128 | Margin="0 0 48 0"
|
97 | 129 | ToolTip="PopupBox, Style MaterialDesignMultiFloatingActionAccentPopupBox">
|
98 |
| - <materialDesign:PopupBox.ToggleCheckedContent> |
99 |
| - <materialDesign:PackIcon Kind="Pencil" Width="24" Height="24" /> |
100 |
| - </materialDesign:PopupBox.ToggleCheckedContent> |
101 |
| - <StackPanel> |
102 |
| - <Button ToolTip="One">1</Button> |
103 |
| - <Button ToolTip="Two">2</Button> |
104 |
| - <Button ToolTip="Three">3</Button> |
105 |
| - </StackPanel> |
106 |
| - </materialDesign:PopupBox> |
| 130 | + <materialDesign:PopupBox.ToggleCheckedContent> |
| 131 | + <materialDesign:PackIcon Kind="Pencil" Width="24" Height="24" /> |
| 132 | + </materialDesign:PopupBox.ToggleCheckedContent> |
| 133 | + <StackPanel> |
| 134 | + <Button ToolTip="One">1</Button> |
| 135 | + <Button ToolTip="Two">2</Button> |
| 136 | + <Button ToolTip="Three">3</Button> |
| 137 | + </StackPanel> |
| 138 | + </materialDesign:PopupBox> |
| 139 | + </StackPanel> |
107 | 140 | </Grid>
|
108 | 141 | <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0 16 0 0">
|
109 | 142 | <Button Style="{StaticResource MaterialDesignRaisedLightButton}" Margin="0 0 8 0" Width="100"
|
|
122 | 155 | ToolTip="Resource name: MaterialDesignRaisedAccentButton">
|
123 | 156 | ACCENT
|
124 | 157 | </Button>
|
125 |
| - |
| 158 | + |
126 | 159 | </StackPanel>
|
127 | 160 | <StackPanel Grid.Row="3" Margin="0 16 0 0" Orientation="Horizontal">
|
128 | 161 | <Button Style="{StaticResource MaterialDesignRaisedAccentButton}"
|
|
216 | 249 | <TextBlock Margin="0 24 0 0" Grid.Row="9">Rating bar</TextBlock>
|
217 | 250 | <StackPanel Grid.Row="10" Margin="0 16 0 0" Orientation="Horizontal">
|
218 | 251 | <materialDesign:RatingBar Value="3" x:Name="BasicRatingBar" />
|
219 |
| - <TextBlock Text="{Binding ElementName=BasicRatingBar, Path=Value, StringFormat=Rating: {0}}" VerticalAlignment="Top" Margin="10,2,0,0" /> |
| 252 | + <TextBlock Text="{Binding ElementName=BasicRatingBar, Path=Value, StringFormat=Rating: {0}}" VerticalAlignment="Top" Margin="10,2,0,0" /> |
220 | 253 | <materialDesign:RatingBar x:Name="CustomRatingBar" Max="3" Value="2" Margin="24 0 0 0" Orientation="Vertical">
|
221 | 254 | <materialDesign:RatingBar.ValueItemTemplate>
|
222 | 255 | <DataTemplate DataType="system:Int32">
|
|
0 commit comments