<UserControl x:Class="MSI_Extractor.SignInControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"Height="351" Width="300"><StackPanel Height="354" Width="311"><Border x:Name="borderTop" Width="350" Height="64" Background="#FF000000" BorderBrush="#FFFFFFFF" BorderThickness="2,2,2,0" CornerRadius="5,5,0,0"><StackPanel><Label HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center" Width="245" Height="46" Content="Enter Your Details......" FontFamily="Agency FB" FontSize="30" FontWeight="Bold" Foreground="#FFFFFFFF"/><Border x:Name="borderImage" Width="80" Height="80" HorizontalAlignment="Right" Margin="0,-80,-25,0" VerticalAlignment="Top" Background="#FFFFFFFF" CornerRadius="5,5,5,5"><Grid ><TextBlock Margin="5,5,5,5" HorizontalAlignment="Center" VerticalAlignment="Center" Text="Drag a photo here" Width="80" TextAlignment="Center" TextWrapping="WrapWithOverflow" FontFamily="Agency FB" FontSize="15" FontWeight="Normal"/><Image x:Name="photoSrc" Margin="5,5,5,5" Stretch="Fill"/></Grid></Border></StackPanel></Border>
<Border x:Name="borderMiddle" Width="Auto" Height="187" BorderBrush="#FFFFFFFF" BorderThickness="2,0,2,0" CornerRadius="0,0,0,0" VerticalAlignment="Stretch"><Border.Background><LinearGradientBrush EndPoint="0.713,0.698" StartPoint="0.713,-0.139"><GradientStop Color="#FFFFFFFF" Offset="0.933"/><GradientStop Color="#FFFFC934" Offset="0.337"/></LinearGradientBrush></Border.Background><StackPanel Orientation="Vertical"><Label x:Name="lblName" Margin="45,0,0,0" Content="Sql Query To Validate" FontFamily="Agency FB" FontSize="16" FontWeight="Bold" Foreground="#FF000000"/><TextBox x:Name="txtName" HorizontalAlignment="Left" Width="260" Height="27" Text="" VerticalAlignment="Top" Margin="45,0,0,0" FontFamily="Agency FB" FontSize="15" MaxLength="10" MaxLines="1" /><StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="45,0,0,0"><Button x:Name="AddButton" HorizontalAlignment="Left" Margin="0,30,0,0" VerticalAlignment="Center" Width="100" Height="21" Content="Add" Template="{StaticResource SignInButtonTemplate}"/><Button x:Name="CloseButton" HorizontalAlignment="Left" Margin="5,30,0,0" VerticalAlignment="Center" Width="100" Height="21" Content="Close" Template="{StaticResource SignInButtonTemplate}"/></StackPanel></StackPanel></Border>
<Border Width="299" Height="38" Background="BurlyWood" BorderBrush="#FFFFFFFF" BorderThickness="2,0,2,2" CornerRadius="0,0,5,5"><CheckBox Width="100" Height="32"><CheckBox.Template><ControlTemplate
TargetType="{x:Type CheckBox}"><Border BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}"><Grid><!-- ContentPresenter displays content of CheckBox --><ContentPresenter
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Margin="{TemplateBinding Padding}"
HorizontalAlignment="{TemplateBinding
HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding
VerticalContentAlignment}" /><!-- This Border displays a semi-transparent red X --><Border><Border.Background><VisualBrush Opacity="0.5"><VisualBrush.Visual><Path Name="path"
Data="M 0 0 L 10 10 M 10 0 L 0 10"
Stroke="Red"
StrokeStartLineCap="Round"
StrokeEndLineCap="Round"
StrokeLineJoin="Round" /></VisualBrush.Visual></VisualBrush></Border.Background></Border></Grid></Border><ControlTemplate.Triggers><Trigger Property="IsChecked" Value="True"><Setter TargetName="path"
Property="Data"
Value="M 0 5 L 3 10 10 0" /><Setter TargetName="path"
Property="Stroke"
Value="Green" /></Trigger><Trigger Property="IsChecked" Value="{x:Null}"><Setter TargetName="path"
Property="Data"
Value="M 0 2.5 A 5 2.5 0 1 1 5 5 L 5 8 M 5 10 L 5 10" />
<Setter TargetName="path"
Property="Stroke"
Value="Blue" /></Trigger><Trigger Property="IsEnabled" Value="False"><Setter Property="Foreground"
Value="{DynamicResource
{x:Static SystemColors.GrayTextBrushKey}}" /></Trigger></ControlTemplate.Triggers></ControlTemplate></CheckBox.Template></CheckBox>
</
Border>
<Border Width="Auto" Height="43" Background="#FF2E2E2E" BorderBrush="#FFFFFFFF" BorderThickness="2,0,2,2" CornerRadius="0,0,5,5"><Label Width="245" Height="21" Content="WPF/WCF Chat by Sacha Barber" FontFamily="Arial" FontSize="9" FontWeight="Normal" Foreground="#FFFFFFFF" HorizontalAlignment="Left" VerticalAlignment="Bottom" Background="#00FFFFFF"/></Border>
</StackPanel></
UserControl>
Comments
Post a Comment