- <Window x:Class="LoginForm.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:LoginForm"
- mc:Ignorable="d"
- WindowStyle="None"
- AllowsTransparency="True"
- WindowStartupLocation="CenterScreen"
- x:Name="AppWindow"
- MinWidth="{Binding WindowMinWidth}"
- MinHeight="{Binding WindowMinHeight}"
- Title="LoginForm" Height="600" Width="900">
- <Window.Resources>
- <Style TargetType="{x:Type local:MainWindow}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Window}">
- <Border Padding="{Binding OuterMarginSizeThickness, FallbackValue=8}">
- <Grid>
- <Border x:Name="Container"
- Background="{StaticResource Background2Brush}"
- CornerRadius="{Binding WindowCornerRadius, FallbackValue=8}" />
- <Border CornerRadius="{Binding WindowCornerRadius, FallbackValue=8}"
- Background="{Binding Background1Brush, FallbackValue=White}">
- <Border.Effect>
- <DropShadowEffect ShadowDepth="0" Opacity="0.2" />
- </Border.Effect>
- </Border>
- <Grid>
- <Grid.OpacityMask>
- <VisualBrush Visual="{Binding ElementName=Container}" />
- </Grid.OpacityMask>
- <Grid.RowDefinitions>
- <RowDefinition Height="{Binding TitleHeightGridLength, FallbackValue=40}" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid Grid.Column="0" Panel.ZIndex="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <Viewbox Grid.Column="0" Grid.ColumnSpan="3" Margin="5">
- <!-- Title -->
- <StackPanel>
- <TextBlock FontFamily="Modern No. 20" FontSize="5" FontWeight="Bold">
- <Run Text="Welcome" Foreground="{StaticResource Background2Brush}"></Run>
- </TextBlock>
- </StackPanel>
- </Viewbox>
- <!-- Button Window -->
- <StackPanel Grid.Column="2" Orientation="Horizontal">
- <Button Command="{Binding MinimizeCommand}" Style="{StaticResource WindowControlButton}" Content=" - " FontSize="28"/>
- <Button Command="{Binding MaximizeCommand}" Style="{StaticResource WindowControlButton}" Content=" |_| "/>
- <Button Command="{Binding CloseCommand}" Style="{StaticResource WindowCloseButton}" Content=" X "/>
- </StackPanel>
- </Grid>
- <Border Grid.Row="1" Padding="{Binding InnerContentPadding}">
- <ContentPresenter Content="{TemplateBinding Content}" />
- </Border>
- </Grid>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
- <WindowChrome.WindowChrome>
- <WindowChrome
- ResizeBorderThickness="{Binding ResizeBorderThickness}"
- CaptionHeight="{Binding TitleHeight}"
- CornerRadius="0"
- GlassFrameThickness="0"
- />
- </WindowChrome.WindowChrome>
- <!-- Sign Up Part -->
- <Grid Background="#FF9DCCCF">
- <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
- <StackPanel
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- TextBlock.TextAlignment="Center"
- Height="360"
- Width="800">
- <Border
- CornerRadius="8"
- Padding="15 5 15 15"
- Width="330"
- Height="260"
- Background="{StaticResource Background1Brush}">
- <StackPanel>
- <TextBlock Text="Sign Up"
- FontSize="33"
- Foreground="{StaticResource ForegroundMainBrush}"
- Margin="0 0 0 20"
- FontFamily="Gadugi"
- />
- <TextBox Tag="Email" Margin="5 14 5 0" Height="41" FontSize="22" Background="#FFECF7F9"/>
- <TextBox Tag="Password" Margin="5 0 5 0" Height="41" FontSize="22" Background="#FFECF7F9"/>
- <Button Content="Next =>" HorizontalAlignment="Center" FontSize="26" FontFamily="Gadugi" Height="41" Width="190" />
- </StackPanel>
- </Border>
- <Button Style="{StaticResource TextButton}" Content="I already have an account" HorizontalAlignment="Center" />
- </StackPanel>
- </ScrollViewer>
- </Grid>
- </Window>