dialogue xaml code: <pre><materialDesign:DialogHost BorderBrush="{DynamicResource MaterialDesignDivider}"> <materialDesign:DialogHost.DialogContent> <Grid Width="300" Height="150" HorizontalAlignment="Center"> <StackPanel Orientation="Horizontal" Margin="15"> <materialDesign:PackIcon Kind="Folder" Foreground="{StaticResource PrimaryHueMidBrush}" Width="50" Height="50" /> <TextBlock Foreground="Gray" Width="200" Margin="15, 5" TextWrapping="Wrap"> Allow application to access data? </TextBlock> </StackPanel> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="15"> <Button Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" Style="{DynamicResource MaterialDesignFloatingActionButton}" Margin="4" VerticalAlignment="Center"> Deny </Button> <Button Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" Style="{DynamicResource MaterialDesignFloatingActionButton}" Margin="4" VerticalAlignment="Center"> Allow </Button> </StackPanel> </Grid> </materialDesign:DialogHost.DialogContent> </materialDesign:DialogHost>
<Button VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="5" Background="#800080" Foreground="AliceBlue" BorderBrush="#800080" Style="{StaticResource MaterialDesignFloatingActionLightButton}" Command="{x:Static materialDesign:DialogHost.OpenDialogCommand}"> <materialDesign:PackIcon Kind="Pencil" Height="{StaticResource IconSize}" Width="{StaticResource IconSize}" /> </Button>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)