Source

main / Source / Excel / Excel.AddIn / Excel.AddIn / View / AlertMessage.xaml

Naethra D ba1cb57 










































<Window x:Class="DataUp.Excel.Addin.AlertMessage"
             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" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Width="400" FontFamily="Segoe UI" WindowStyle="None" WindowStartupLocation="CenterOwner" VerticalAlignment="Center" d:DesignHeight="300" d:DesignWidth="300" AllowsTransparency="true" Background="{x:Null}">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <BooleanToVisibilityConverter x:Key="VisibilityConverter"></BooleanToVisibilityConverter>

        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <GroupBox MouseLeftButtonDown="OnMouseLeftButtonDown" Tag="GenericSmall" VerticalAlignment="Center" HorizontalAlignment="Stretch" Header="ALERT" Style="{DynamicResource PopupContainerStyle}">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid Margin="5,5,10,5">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="40"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>

                    <TextBlock Grid.Column="1" Style="{DynamicResource WrappedLabelStyle}" Text="{Binding AlertMessage}"/>
                </Grid>

                <StackPanel Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="10" Orientation="Horizontal">
                    <Button Content="{Binding GenerateButtonName}" Style="{DynamicResource GreenButton}"
                            Command="{Binding GenerateCommand}"/>
                    <Button Content="{Binding IgnoreButtonName}" Width="75" Style="{DynamicResource GreenButton}"  Margin="10,0,0,0"
                            Command="{Binding IgnoreCommand}" Visibility="{Binding ShowIgnoreButton, Converter={StaticResource VisibilityConverter}}"/>
                    <Button Content="Cancel" Command="{Binding CancelCommand}" IsCancel="true" Style="{DynamicResource GrayButton}"  Margin="10,0,0,0"  />
                </StackPanel>
            </Grid>
        </GroupBox>

    </Grid>
</Window>