|
26 | 26 | <materialDesignConverters:BooleanToVisibilityConverter x:Key="InvertedBooleanToVisibilityConverter" TrueValue="Collapsed" FalseValue="Visible" />
|
27 | 27 | </ResourceDictionary>
|
28 | 28 | </UserControl.Resources>
|
29 |
| - <codeDisplayer:XamlDisplayerPanel > |
30 |
| - |
31 |
| - |
| 29 | + <codeDisplayer:XamlDisplayerPanel HorizontalAlignment="Center"> |
| 30 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 31 | + Raised Button |
| 32 | + </TextBlock> |
32 | 33 | <Button Style="{StaticResource MaterialDesignRaisedLightButton}" Width="100"
|
33 | 34 | ToolTip="Resource name: MaterialDesignRaisedLightButton">
|
34 | 35 | _LIGHT
|
|
45 | 46 | ToolTip="Resource name: MaterialDesignRaisedAccentButton">
|
46 | 47 | ACCENT
|
47 | 48 | </Button>
|
| 49 | + |
| 50 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 51 | + Floating Action Button |
| 52 | + </TextBlock> |
| 53 | + <Button Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}" |
| 54 | + ToolTip="MaterialDesignFloatingActionMiniLightButton"> |
| 55 | + <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
| 56 | + </Button> |
| 57 | + <Button Style="{StaticResource MaterialDesignFloatingActionMiniButton}" |
| 58 | + ToolTip="MaterialDesignFloatingActionMiniButton"> |
| 59 | + <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
| 60 | + </Button> |
| 61 | + <Button Style="{StaticResource MaterialDesignFloatingActionMiniDarkButton}" |
| 62 | + ToolTip="MaterialDesignFloatingActionMiniDarkButton"> |
| 63 | + <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
| 64 | + </Button> |
| 65 | + <Button Style="{StaticResource MaterialDesignFloatingActionMiniAccentButton}" |
| 66 | + ToolTip="MaterialDesignFloatingActionMiniAccentButton"> |
| 67 | + <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
| 68 | + </Button> |
| 69 | + <Button Style="{StaticResource MaterialDesignFloatingActionLightButton}" |
| 70 | + ToolTip="MaterialDesignFloatingActionLightButton"> |
| 71 | + <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
| 72 | + </Button> |
| 73 | + <Button Style="{StaticResource MaterialDesignFloatingActionButton}" |
| 74 | + ToolTip="MaterialDesignFloatingActionButton"> |
| 75 | + <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
| 76 | + </Button> |
| 77 | + <Button Style="{StaticResource MaterialDesignFloatingActionDarkButton}" |
| 78 | + ToolTip="MaterialDesignFloatingActionDarkButton"> |
| 79 | + <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
| 80 | + </Button> |
| 81 | + <Button Style="{StaticResource MaterialDesignFloatingActionAccentButton}" |
| 82 | + ToolTip="MaterialDesignFloatingActionAccentButton"> |
| 83 | + <materialDesign:PackIcon Kind="Alarm" Height="24" Width="24" /> |
| 84 | + </Button> |
| 85 | + |
| 86 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 87 | + PopupBox |
| 88 | + </TextBlock> |
| 89 | + <materialDesign:PopupBox PlacementMode="BottomAndAlignRightEdges" StaysOpen="False"> |
| 90 | + <StackPanel> |
| 91 | + <Button Content="Hello World"/> |
| 92 | + <Button Content="Nice Popup"/> |
| 93 | + <Button Content="Can't Touch This" IsEnabled="False" /> |
| 94 | + <Separator/> |
| 95 | + <Button Content="Goodbye"/> |
| 96 | + </StackPanel> |
| 97 | + </materialDesign:PopupBox> |
| 98 | + <materialDesign:PopupBox StaysOpen="True"> |
| 99 | + <Grid Width="300" Margin="8,8,8,8"> |
| 100 | + <Grid.Resources> |
| 101 | + <Style TargetType="CheckBox" BasedOn="{StaticResource MaterialDesignCheckBox}"> |
| 102 | + <Setter Property="Margin" Value="8,8,10,8"/> |
| 103 | + </Style> |
| 104 | + <Style TargetType="TextBox" BasedOn="{StaticResource MaterialDesignTextBox}"> |
| 105 | + <Setter Property="materialDesign:HintAssist.IsFloating" Value="True"/> |
| 106 | + <Setter Property="Margin" Value="8,8,8,8"/> |
| 107 | + </Style> |
| 108 | + </Grid.Resources> |
| 109 | + <Grid.ColumnDefinitions> |
| 110 | + <ColumnDefinition Width="*"/> |
| 111 | + <ColumnDefinition Width="Auto"/> |
| 112 | + </Grid.ColumnDefinitions> |
| 113 | + <Grid.RowDefinitions> |
| 114 | + <RowDefinition Height="*"/> |
| 115 | + <RowDefinition Height="*"/> |
| 116 | + <RowDefinition Height="*"/> |
| 117 | + <RowDefinition Height="*"/> |
| 118 | + <RowDefinition Height="*" /> |
| 119 | + </Grid.RowDefinitions> |
| 120 | + <TextBlock Grid.Column="0" Grid.Row="0" Style="{StaticResource MaterialDesignTitleTextBlock}" Margin="8,8,8,16">OPTIONS</TextBlock> |
| 121 | + <TextBox Grid.Column="0" Grid.Row="1" materialDesign:HintAssist.Hint="Setting 1" Text="200"/> |
| 122 | + <TextBox Grid.Column="0" Grid.Row="2" materialDesign:HintAssist.Hint="Setting 2" Text="400"/> |
| 123 | + <TextBox Grid.Column="0" Grid.Row="3" materialDesign:HintAssist.Hint="Setting 3" Text="600"/> |
| 124 | + <CheckBox Grid.Column="1" Grid.Row="1" VerticalAlignment="Bottom" /> |
| 125 | + <CheckBox Grid.Column="1" Grid.Row="2" IsChecked="True" VerticalAlignment="Bottom" /> |
| 126 | + <CheckBox Grid.Column="1" Grid.Row="3" VerticalAlignment="Bottom" /> |
| 127 | + <ComboBox Grid.Column="0" Grid.Row="4" materialDesign:HintAssist.Hint="Setting 4" materialDesign:HintAssist.IsFloating="True" |
| 128 | + MaxDropDownHeight="200" |
| 129 | + Margin="8 8 8 8"> |
| 130 | + <ComboBoxItem>25%</ComboBoxItem> |
| 131 | + <ComboBoxItem>50%</ComboBoxItem> |
| 132 | + <ComboBoxItem>75%</ComboBoxItem> |
| 133 | + <ComboBoxItem>100%</ComboBoxItem> |
| 134 | + <ComboBoxItem>150%</ComboBoxItem> |
| 135 | + <ComboBoxItem>200%</ComboBoxItem> |
| 136 | + <ComboBoxItem>250%</ComboBoxItem> |
| 137 | + <ComboBoxItem>501%</ComboBoxItem> |
| 138 | + </ComboBox> |
| 139 | + </Grid> |
| 140 | + |
| 141 | + </materialDesign:PopupBox> |
48 | 142 | <materialDesign:PopupBox
|
49 | 143 | Style="{StaticResource MaterialDesignMultiFloatingActionPopupBox}"
|
50 | 144 | PlacementMode="BottomAndAlignCentres"
|
|
73 | 167 | <Button ToolTip="Three">3</Button>
|
74 | 168 | </StackPanel>
|
75 | 169 | </materialDesign:PopupBox>
|
| 170 | + |
| 171 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 172 | + Badge |
| 173 | + </TextBlock> |
76 | 174 | <materialDesign:Badged Badge="3">
|
77 | 175 | <Button>MAIL</Button>
|
78 | 176 | </materialDesign:Badged>
|
79 |
| - |
80 | 177 | <materialDesign:Badged Badge="{materialDesign:PackIcon Heart}"
|
81 | 178 | BadgeColorZoneMode="Accent">
|
82 | 179 | <Button>LOVE</Button>
|
83 | 180 | </materialDesign:Badged>
|
84 |
| - |
85 | 181 | <materialDesign:Badged Badge="DANGER"
|
86 | 182 | BadgeColorZoneMode="Dark">
|
87 | 183 | <Button>STATUS</Button>
|
88 | 184 | </materialDesign:Badged>
|
89 |
| - <materialDesign:Badged |
90 |
| - x:Name="CountingBadge" |
91 |
| - BadgeColorZoneMode="PrimaryDark"> |
| 185 | + <materialDesign:Badged x:Name="CountingBadge" BadgeColorZoneMode="PrimaryDark"> |
92 | 186 | <Button Style="{StaticResource MaterialDesignRaisedLightButton}"
|
93 | 187 | Click="CountingButton_OnClick">CLICK ME!</Button>
|
94 | 188 | </materialDesign:Badged>
|
95 |
| - <Button Content="{materialDesign:PackIcon AirplaneTakeoff}" |
96 |
| - |
97 |
| - ToolTip="Icon"> |
98 |
| - </Button> |
99 | 189 |
|
| 190 | + |
| 191 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 192 | + Button with icon |
| 193 | + </TextBlock> |
| 194 | + <Button Content="{materialDesign:PackIcon AirplaneTakeoff}" ToolTip="Icon" /> |
| 195 | + |
| 196 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 197 | + Custom ripples |
| 198 | + </TextBlock> |
100 | 199 | <Button Style="{StaticResource MaterialDesignRaisedAccentButton}"
|
101 |
| - |
102 | 200 | Width="150"
|
103 | 201 | ToolTip="Resource name: MaterialDesignRaisedAccentButton"
|
104 | 202 | materialDesign:RippleAssist.Feedback="#DD000000">CUSTOM RIPPLE</Button>
|
|
107 | 205 | Width="150"
|
108 | 206 | ToolTip="Resource name: MaterialDesignRaisedAccentButton"
|
109 | 207 | materialDesign:RippleAssist.IsDisabled="True">NO RIPPLE</Button>
|
| 208 | + |
| 209 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 210 | + Repeat button |
| 211 | + </TextBlock> |
110 | 212 | <RepeatButton Width="100"
|
111 | 213 | ToolTip="Resource name: MaterialDesignRaisedButton">
|
112 | 214 | REPEAT
|
113 | 215 | </RepeatButton>
|
| 216 | + |
| 217 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 218 | + Flat button |
| 219 | + </TextBlock> |
114 | 220 | <Button Style="{StaticResource MaterialDesignFlatButton}" Click="ButtonBase_OnClick" ToolTip="MaterialDesignFlatButton">ACCEPT</Button>
|
115 | 221 | <Button Style="{StaticResource MaterialDesignFlatButton}" ToolTip="MaterialDesignFlatButton">CANCEL</Button>
|
| 222 | + |
| 223 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 224 | + Button with progress |
| 225 | + </TextBlock> |
116 | 226 | <Grid Width="124">
|
117 | 227 | <Button Command="{Binding DismissComand}"
|
118 | 228 | Style="{StaticResource MaterialDesignRaisedButton}"
|
|
178 | 288 | materialDesign:ButtonProgressAssist.IsIndicatorVisible="True"
|
179 | 289 | materialDesign:ButtonProgressAssist.Value="75"
|
180 | 290 | Content="{materialDesign:PackIcon DotsHorizontal}" />
|
| 291 | + |
| 292 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 293 | + Action toggle button |
| 294 | + </TextBlock> |
181 | 295 | <ToggleButton Content="C" Style="{StaticResource MaterialDesignActionLightToggleButton}" IsChecked="True"
|
182 | 296 | ToolTip="MaterialDesignActionLightToggleButton"/>
|
183 | 297 | <ToggleButton Content="H" Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
202 | 316 | <materialDesign:PackIcon Kind="EmoticonHappy" />
|
203 | 317 | </materialDesign:ToggleButtonAssist.OnContent>
|
204 | 318 | </ToggleButton>
|
| 319 | + |
| 320 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 321 | + Radio button |
| 322 | + </TextBlock> |
205 | 323 | <RadioButton Style="{StaticResource MaterialDesignRadioButton}" VerticalAlignment="Center" Tag="True">
|
206 | 324 | <RadioButton.IsChecked>
|
207 | 325 | <Binding Path="Tag" RelativeSource="{RelativeSource Self}">
|
|
219 | 337 | IsEnabled="False">
|
220 | 338 | Disabled
|
221 | 339 | </RadioButton>
|
| 340 | + |
| 341 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 342 | + Checkbox |
| 343 | + </TextBlock> |
222 | 344 | <CheckBox Style="{StaticResource MaterialDesignCheckBox}" VerticalAlignment="Center">
|
223 | 345 | Check
|
224 | 346 | </CheckBox>
|
|
236 | 358 | IsEnabled="False" IsChecked="True">
|
237 | 359 | Disabled
|
238 | 360 | </CheckBox>
|
| 361 | + |
| 362 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 363 | + Switch Toggle |
| 364 | + </TextBlock> |
239 | 365 | <ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}" VerticalAlignment="Center"
|
240 | 366 | ToolTip="Default ToggleButton Style"/>
|
241 | 367 | <ToggleButton Style="{StaticResource MaterialDesignSwitchToggleButton}" VerticalAlignment="Center" IsEnabled="False" />
|
|
259 | 385 | </materialDesign:ToggleButtonAssist.OnContent>
|
260 | 386 | </ToggleButton>
|
261 | 387 |
|
262 |
| - |
| 388 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 389 | + Flat toggle |
| 390 | + </TextBlock> |
263 | 391 | <ToggleButton Style="{StaticResource MaterialDesignFlatToggleButton}" ToolTip="MaterialDesignFlatToggleButton">
|
264 | 392 | <materialDesign:PackIcon Kind="Paperclip" Height="21" Width="21" />
|
265 | 393 | </ToggleButton>
|
|
274 | 402 | IsEnabled="False">
|
275 | 403 | <materialDesign:PackIcon Kind="Heart" Height="21" Width="21" />
|
276 | 404 | </ToggleButton>
|
| 405 | + |
| 406 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 407 | + Tool toggles |
| 408 | + </TextBlock> |
277 | 409 | <ListBox Grid.Column="1" Grid.Row="0" Style="{StaticResource MaterialDesignToolToggleListBox}" SelectedIndex="0">
|
278 | 410 | <ListBox.ToolTip>
|
279 | 411 | <StackPanel>
|
|
313 | 445 | <materialDesign:PackIcon Kind="FormatUnderline"/>
|
314 | 446 | </ListBoxItem>
|
315 | 447 | </ListBox>
|
| 448 | + |
| 449 | + <TextBlock Style="{StaticResource MaterialDesignHeadlineTextBlock}" codeDisplayer:XamlDisplayer.DisplayCode="False"> |
| 450 | + Rating bar |
| 451 | + </TextBlock> |
316 | 452 | <materialDesign:RatingBar Value="3" x:Name="BasicRatingBar" />
|
317 | 453 | <TextBlock Width="100" Text="{Binding ElementName=BasicRatingBar, Path=Value, StringFormat=Rating: {0}}" VerticalAlignment="Top" />
|
318 | 454 | <materialDesign:RatingBar x:Name="CustomRatingBar" Max="3" Value="2" Orientation="Vertical">
|
|
330 | 466 | <TextBlock Width="100" Height="30" Text="{Binding ElementName=CustomRatingBar, Path=Value, StringFormat=Rating: {0}}" VerticalAlignment="Top" />
|
331 | 467 | </codeDisplayer:XamlDisplayerPanel>
|
332 | 468 | </UserControl>
|
| 469 | + |
| 470 | + |
| 471 | + |
0 commit comments