■ PopupBox 엘리먼트를 사용하는 방법을 보여준다.
▶ 예제 코드 (XAML)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Card.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> ... <materialDesign:PopupBox Style="{StaticResource MaterialDesignToolPopupBox}" HorizontalAlignment="Center" VerticalAlignment="Center"> <StackPanel> <Button Content="More" /> <Button Content="Options" /> </StackPanel> </materialDesign:PopupBox> |
※ xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"