Created
August 13, 2020 23:46
-
-
Save patmanv/5882145d86537060865c217b49183880 to your computer and use it in GitHub Desktop.
WPF Boilerplate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Window x:Class="WPFDemo.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:WPFDemo" | |
| mc:Ignorable="d" | |
| Title="WPF Demo" Height="450" Width="500" | |
| FontSize="18" FontFamily="Segoe UI"> | |
| <Grid> | |
| <Grid.ColumnDefinitions> | |
| <ColumnDefinition Width="20" /> | |
| <ColumnDefinition Width="auto" /> | |
| <ColumnDefinition Width="auto" /> | |
| <ColumnDefinition Width="auto" /> | |
| <ColumnDefinition Width="*" /> | |
| <ColumnDefinition Width="20" /> | |
| </Grid.ColumnDefinitions> | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="20"/> | |
| <RowDefinition Height="auto"/> | |
| <RowDefinition Height="auto"/> | |
| <RowDefinition Height="auto"/> | |
| <RowDefinition Height="auto"/> | |
| <RowDefinition Height="auto"/> | |
| <RowDefinition Height="*"/> | |
| <RowDefinition Height="20"/> | |
| </Grid.RowDefinitions> | |
| <!--Row 1--> | |
| <TextBlock Grid.Column="1" Grid.Row="1" FontSize="36" | |
| Text="Bahamba" Grid.ColumnSpan="3" Margin="0,0,0,20"/> | |
| <!--Row 2--> | |
| <TextBlock Grid.Column="1" Grid.Row="2" FontWeight="SemiBold" Text="First Name "/> | |
| <TextBox x:Name="firstNameText" Grid.Column="2" Grid.Row="2" Width="150"/> | |
| <!--Row 3--> | |
| <Button x:Name="submitButton" Content="Run Me" Grid.Column="1" Grid.Row="3" | |
| Margin="10" Grid.ColumnSpan="2" Click="submitButton_Click"/> | |
| </Grid> | |
| </Window> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment