Source

main-vinayFork / Source / Excel / Excel.AddIn / Excel.AddIn / View / UserCredentials.xaml

Full commit
<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="DataUp.Excel.Addin.UserCredentials"
    x:Name="Window"
    Title="UserCredentials"
    Width="400" Height="230" Background="{x:Null}" AllowsTransparency="True" WindowStyle="None">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <Style x:Key="MetroButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource DefaultButtonStyle}">
                <Setter Property="MinWidth" Value="75"/>
                <Setter Property="Height" Value="22"/>
                <Setter Property="FontSize" Value="13"/>
            </Style>
        </ResourceDictionary>
    </Window.Resources>

    <Grid x:Name="LayoutRoot">
        <HeaderedContentControl Tag="Please enter your credentials" Header="CREDENTIALS" Style="{DynamicResource HeaderedWindowStyle}">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="40"/>
                </Grid.RowDefinitions>
                <StackPanel>
                    <DockPanel LastChildFill="True" Margin="0,10,0,0" VerticalAlignment="Top" Grid.Row="1" >
                        <TextBlock Text="User Name" Style="{DynamicResource LabelStyle}" />
                        <TextBox  Margin="0,0,15,0"  BorderBrush="#FF7E7E7E" BorderThickness="1" Style="{DynamicResource InputTextboxStyle}"/>
                    </DockPanel>
                    <DockPanel LastChildFill="True" Margin="0,10,0,0" VerticalAlignment="Top" Grid.Row="1" >
                        <TextBlock Text="Password" Style="{DynamicResource LabelStyle}" />
                        <PasswordBox  Margin="0,0,15,0"  BorderBrush="#FF7E7E7E" BorderThickness="1" Style="{DynamicResource PasswordBoxStyle}" />
                    </DockPanel>
                </StackPanel>
                <Border Background="White" Grid.Row="1">
                    <StackPanel HorizontalAlignment="Right" VerticalAlignment="Center"  Margin="0,0,15,0" Orientation="Horizontal">
                        <Button Content="OK" Width="75" Style="{DynamicResource MetroButtonStyle}" Command="{Binding UserCredentialCommand}" CommandParameter="{Binding}" />
                        <Button Content="Cancel" Width="75" Style="{DynamicResource MetroButtonStyle}" Margin="10,0,0,0"/>
                    </StackPanel>
                </Border>
            </Grid>
        </HeaderedContentControl>
    </Grid>
</Window>