tugas 4 


1. buka visual studio lalu pilih create project with WPF C#

2. 

  1. <Window x:Class="halamanlogin.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:halamanlogin"
  7.         xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
  8.         mc:Ignorable="d"
  9.         Title="MainWindow" Height="450" Width="380"
  10.         AllowsTransparency="True" Background="Transparent"
  11.         WindowStyle="None" ResizeMode="NoResize">
  12.     <Grid>
  13.         <Grid>
  14.             <Grid.RowDefinitions>
  15.                 <RowDefinition/>
  16.                 <RowDefinition/>
  17.             </Grid.RowDefinitions>
  18.  
  19.  
  20.             <Border CornerRadius="10" Grid.RowSpan="2">
  21.                 <Border.Background>
  22.                     <LinearGradientBrush>
  23.                         <GradientStop Color="#FF21CEE2" Offset="0.0"/>
  24.                         <GradientStop Color="#FF7A00BF" Offset="1"/>
  25.                     </LinearGradientBrush>
  26.                 </Border.Background>
  27.             </Border>
  28.  
  29.  
  30.             <StackPanel VerticalAlignment="Center">
  31.                 <TextBlock Text="Login"
  32.                            FontWeight="Light"
  33.                            FontFamily="helvetica"
  34.                            FontSize="22"
  35.                            Foreground="White"
  36.                            HorizontalAlignment="Center"/>
  37.             </StackPanel>
  38.  
  39.  
  40.  
  41.             <StackPanel Grid.Row="1" >
  42.                 <StackPanel Orientation="Horizontal">
  43.                     <TextBox FontFamily="Helvetica"
  44.                              FontWeight="Light"
  45.                              Text="Username"
  46.                              FontSize="20"
  47.                              HorizontalAlignment="Center"
  48.                              Foreground="White"
  49.                              Background="Transparent"
  50.                              BorderThickness="0"
  51.                              Width="235"
  52.                              HorizontalContentAlignment="Left"
  53.                              Opacity="0.5"
  54.                              Height="25"
  55.                              Margin="63,0,0,0"/>
  56.                     <iconPacks:PackIconMaterial Kind="Account"
  57.                                                 VerticalAlignment="Center"
  58.                                                 HorizontalAlignment="Center"
  59.                                                 Foreground="White"/>
  60.                 </StackPanel>
  61.                 <Border Width="250"
  62.                         Height="2"
  63.                         Background="White"
  64.                         Opacity="0.5"/>
  65.  
  66.  
  67.  
  68.                 <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
  69.                     <PasswordBox FontFamily="Helvetica"
  70.                              FontWeight="Light"
  71.                              Password="Password"
  72.                              FontSize="20"
  73.                              HorizontalAlignment="Center"
  74.                              Foreground="White"
  75.                              Background="Transparent"
  76.                              BorderThickness="0"
  77.                              Width="235"
  78.                              HorizontalContentAlignment="Left"
  79.                              Opacity="0.5"
  80.                              Height="25"
  81.                              Margin="63,0,0,0"/>
  82.                     <iconPacks:PackIconMaterial Kind="FormTextboxPassword"
  83.                                                 VerticalAlignment="Center"
  84.                                                 HorizontalAlignment="Center"
  85.                                                 Foreground="White"/>
  86.                 </StackPanel>
  87.                 <Border Width="250"
  88.                         Height="2"
  89.                         Background="White"
  90.                         Opacity="0.5"/>
  91.  
  92.  
  93.                 <StackPanel Orientation="Horizontal" Margin="0,50,0,0">
  94.                     <Button Width="100" Height="40" Content="LOGIN" Margin="60,0,60,0"/>
  95.                     <Button Width="100" Height="40" Content="REGISTER"/>
  96.                 </StackPanel>
  97.  
  98.             </StackPanel>
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.         </Grid>
  106.     </Grid>
  107. </Window>


3.


4.


Comments

Popular posts from this blog

Buffon Itu Masih Ada

Neymar’s Father Rubbishes Report of Barca-Santos Agreement