DialogBox.xaml (2995B)
1 <UserControl 2 x:Class="File360.DialogBox" 3 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 4 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 5 xmlns:local="using:File360" 6 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 7 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 8 mc:Ignorable="d" 9 RequestedTheme="Dark" FontFamily="Assets/Font/iconfont.ttf#iconfont"> 10 11 <Grid x:Name="AlphaGrid"> 12 <Grid.Background> 13 <SolidColorBrush Color="{ThemeResource ContentDialogDimmingColor}"/> 14 </Grid.Background> 15 <StackPanel x:Name="LayoutRoot" 16 MinHeight="100" 17 MaxHeight="200" 18 MinWidth="300" 19 MaxWidth="450" 20 Background="{StaticResource PhoneChromeBrush}" 21 HorizontalAlignment="Center" 22 VerticalAlignment="Center"> 23 <Grid> 24 <Grid.RowDefinitions> 25 <RowDefinition Height="2*"/> 26 <RowDefinition Height="50*"/> 27 <RowDefinition Height="2*"/> 28 </Grid.RowDefinitions> 29 <Grid.ColumnDefinitions> 30 <ColumnDefinition Width="2*"/> 31 <ColumnDefinition Width="50*"/> 32 <ColumnDefinition Width="2*"/> 33 </Grid.ColumnDefinitions> 34 <StackPanel Grid.Row="1" Grid.Column="1" Margin="10,0"> 35 <TextBlock x:Name="heading" Foreground="{StaticResource PhoneForegroundBrush}" Text="ARE YOU SURE?" FontFamily="Segoe UI" FontSize="20" FontWeight="Bold" HorizontalAlignment="Left"/> 36 <Rectangle MinHeight="10"/> 37 <TextBlock x:Name="dialogDetails" Grid.Row="1" TextWrapping="Wrap" Text="Random Text and Messages Detailed about this operation comes here." FontFamily="Segoe WP Light" TextAlignment="Center" FontSize="20"/> 38 <Rectangle MinHeight="15"/> 39 </StackPanel> 40 </Grid> 41 <Grid> 42 <Grid.ColumnDefinitions> 43 <ColumnDefinition Width="4*"/> 44 <ColumnDefinition Width="10*"/> 45 </Grid.ColumnDefinitions> 46 <Button MinWidth="0" x:Name="leftButton" Style="{StaticResource DialogBoxButton}" Content="x" FontFamily="Assets/Font/iconfont.ttf#iconfont" Margin="0" VerticalAlignment="Stretch" BorderBrush="{x:Null}" Background="{ThemeResource PhoneBackgroundBrush}" Click="leftButton_Click" HorizontalAlignment="Stretch"/> 47 <Button x:Name="rightButton" Grid.Column="1" Background="{StaticResource PhoneAccentBrush}" BorderBrush="{x:Null}" HorizontalAlignment="Stretch" Style="{StaticResource DialogBoxButton}" Content="K" FontFamily="Assets/Font/iconfont.ttf#iconfont" Click="rightButton_Click" Foreground="White"/> 48 </Grid> 49 </StackPanel> 50 </Grid> 51 </UserControl>