This paste brought to you by Pastebin. View Raw

  1. <Window x:Class="LoginForm.MainWindow"
  2.         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5.         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6.         xmlns:local="clr-namespace:LoginForm"
  7.         mc:Ignorable="d"
  8.         WindowStyle="None"
  9.         AllowsTransparency="True"
  10.         WindowStartupLocation="CenterScreen"
  11.         x:Name="AppWindow"
  12.         MinWidth="{Binding WindowMinWidth}"
  13.         MinHeight="{Binding WindowMinHeight}"
  14.         Title="LoginForm" Height="600" Width="900">
  15.  
  16.     <Window.Resources>
  17.         <Style TargetType="{x:Type local:MainWindow}">
  18.             <Setter Property="Template">
  19.                 <Setter.Value>
  20.                     <ControlTemplate TargetType="{x:Type Window}">
  21.                         <Border Padding="{Binding OuterMarginSizeThickness, FallbackValue=8}">
  22.                             <Grid>
  23.                                 <Border x:Name="Container"
  24.                                         Background="{StaticResource Background2Brush}"
  25.                                         CornerRadius="{Binding WindowCornerRadius, FallbackValue=8}" />
  26.  
  27.                                 <Border CornerRadius="{Binding WindowCornerRadius, FallbackValue=8}"
  28.                                         Background="{Binding Background1Brush, FallbackValue=White}">
  29.                                     <Border.Effect>
  30.                                         <DropShadowEffect ShadowDepth="0" Opacity="0.2" />
  31.                                     </Border.Effect>
  32.                                 </Border>
  33.  
  34.                                 <Grid>
  35.                                     <Grid.OpacityMask>
  36.                                         <VisualBrush Visual="{Binding ElementName=Container}" />
  37.                                     </Grid.OpacityMask>
  38.  
  39.                                     <Grid.RowDefinitions>
  40.  
  41.                                         <RowDefinition Height="{Binding TitleHeightGridLength, FallbackValue=40}" />
  42.  
  43.                                         <RowDefinition Height="*" />
  44.  
  45.                                     </Grid.RowDefinitions>
  46.  
  47.                                     <Grid Grid.Column="0" Panel.ZIndex="1">
  48.                                         <Grid.ColumnDefinitions>
  49.  
  50.                                             <ColumnDefinition Width="Auto" />
  51.  
  52.                                             <ColumnDefinition Width="*" />
  53.  
  54.                                             <ColumnDefinition Width="Auto" />
  55.  
  56.                                         </Grid.ColumnDefinitions>
  57.  
  58.                                         <Viewbox Grid.Column="0" Grid.ColumnSpan="3" Margin="5">
  59.                                             <!-- Title -->
  60.                                             <StackPanel>
  61.                                                 <TextBlock FontFamily="Modern No. 20" FontSize="5" FontWeight="Bold">
  62.                                                     <Run Text="Welcome" Foreground="{StaticResource Background2Brush}"></Run>
  63.                                                 </TextBlock>
  64.                                             </StackPanel>
  65.                                         </Viewbox>
  66.  
  67.                                         <!-- Button Window -->
  68.                                         <StackPanel Grid.Column="2" Orientation="Horizontal">
  69.                                             <Button Command="{Binding MinimizeCommand}" Style="{StaticResource WindowControlButton}" Content=" - " FontSize="28"/>
  70.                                             <Button Command="{Binding MaximizeCommand}" Style="{StaticResource WindowControlButton}" Content=" |_| "/>
  71.                                             <Button Command="{Binding CloseCommand}" Style="{StaticResource WindowCloseButton}" Content=" X "/>
  72.                                         </StackPanel>
  73.                                     </Grid>
  74.  
  75.                                     <Border Grid.Row="1" Padding="{Binding InnerContentPadding}">
  76.                                         <ContentPresenter Content="{TemplateBinding Content}" />
  77.                                     </Border>
  78.  
  79.                                 </Grid>
  80.                             </Grid>
  81.                         </Border>
  82.                     </ControlTemplate>
  83.                 </Setter.Value>
  84.             </Setter>
  85.         </Style>
  86.     </Window.Resources>
  87.  
  88.     <WindowChrome.WindowChrome>
  89.         <WindowChrome
  90.             ResizeBorderThickness="{Binding ResizeBorderThickness}"
  91.             CaptionHeight="{Binding TitleHeight}"
  92.             CornerRadius="0"
  93.             GlassFrameThickness="0"
  94.             />
  95.     </WindowChrome.WindowChrome>
  96.  
  97.     <!-- Sign Up Part -->
  98.     <Grid Background="#FF9DCCCF">
  99.         <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
  100.             <StackPanel
  101.                 VerticalAlignment="Center"
  102.                 HorizontalAlignment="Center"
  103.                 TextBlock.TextAlignment="Center"
  104.                 Height="360"
  105.                 Width="800">
  106.  
  107.                 <Border
  108.                         CornerRadius="8"
  109.                         Padding="15 5 15 15"
  110.                         Width="330"
  111.                         Height="260"
  112.                         Background="{StaticResource Background1Brush}">
  113.  
  114.                     <StackPanel>
  115.                         <TextBlock Text="Sign Up"
  116.                                    FontSize="33"
  117.                                    Foreground="{StaticResource ForegroundMainBrush}"
  118.                                    Margin="0 0 0 20"
  119.                                    FontFamily="Gadugi"
  120.                                    />
  121.  
  122.                         <TextBox Tag="Email" Margin="5 14 5 0" Height="41" FontSize="22" Background="#FFECF7F9"/>
  123.  
  124.                         <TextBox Tag="Password" Margin="5 0 5 0" Height="41" FontSize="22" Background="#FFECF7F9"/>
  125.  
  126.                         <Button Content="Next =>"  HorizontalAlignment="Center" FontSize="26" FontFamily="Gadugi" Height="41" Width="190" />
  127.  
  128.                     </StackPanel>
  129.                 </Border>
  130.  
  131.                 <Button Style="{StaticResource TextButton}" Content="I already have an account" HorizontalAlignment="Center" />
  132.  
  133.             </StackPanel>
  134.         </ScrollViewer>
  135.     </Grid>
  136. </Window>