Sample Code

Windows Driver Samples/ Printer Extension Sample/ C#/ ExtensionSample/ ValidationModalDialog.xaml/

<UserControl x:Class="Microsoft.Samples.Printing.PrinterExtension.ValidationModalDialog"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
    <Grid DataContext="{Binding ElementName=root}">
        <Border Background="#60000000">
            <Border BorderBrush="Black" BorderThickness="1" Background="AliceBlue" 
                CornerRadius="10,0,10,0" VerticalAlignment="Center" HorizontalAlignment="Center">
                <Border.BitmapEffect>
                    <DropShadowBitmapEffect Color="Black" Opacity="0.5" Direction="90" ShadowDepth="0.7" />
                </Border.BitmapEffect>
                <UniformGrid Grid.Row="1" Margin="10" Rows="2" Columns="1" HorizontalAlignment="Center" VerticalAlignment="Bottom">
                    <TextBlock>Validating.. please wait</TextBlock>
                    <Button x:Name="CancelValidationButton" Content="Cancel" Click="CancelValidationButton_Click"/>
                </UniformGrid>
            </Border>
        </Border>
    </Grid>
</UserControl>

Our Services

  • What our customers say about us?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS