Skip to content

Commit a2f2076

Browse files
committed
Added Popupbox into Buttons.xaml
- because they were accidentally ommitted when injecting the XamlDisplayerPanel
1 parent bf41092 commit a2f2076

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

MainDemo.Wpf/Buttons.xaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,62 @@
4545
ToolTip="Resource name: MaterialDesignRaisedAccentButton">
4646
ACCENT
4747
</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+
48104
<materialDesign:PopupBox
49105
Style="{StaticResource MaterialDesignMultiFloatingActionPopupBox}"
50106
PlacementMode="BottomAndAlignCentres"
@@ -330,3 +386,4 @@
330386
<TextBlock Width="100" Height="30" Text="{Binding ElementName=CustomRatingBar, Path=Value, StringFormat=Rating: {0}}" VerticalAlignment="Top" />
331387
</codeDisplayer:XamlDisplayerPanel>
332388
</UserControl>
389+

0 commit comments

Comments
 (0)