Create a User LOGIN using WPF

Pardhu2020
Posted by in WPF category on for Beginner level | Points: 250 | Views : 17807 red flag
Rating: 5 out of 5  
 1 vote(s)

In this article, we will discuss how to create a user LOGIN oval shape using WPF

Introduction

Hi friends today we will discuss  how to create a user LOGIN oval shape using WPF

  1. Once open the Visual Studio click on File Click on the Project

  1. As you are seeing there are many application from them Select WPF application
  2. At name rename it as per your requirement
  1. Right click on the project and click on add from there click on window for adding a new window to the project
  2. Rename the window as per your requirement

  1. Drag two text box from tools.
  2. Drag a two label and arrange it as showed in the above prnt screen.
  3. Drag and drop a submit button and change the value into Submit.
  4. Now it’s the time to achieve the Ellipse shape and it should ne transparency.
    From the below code we can achieve that.
<Window x:Class="StoryBoardApp1.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="LoginWindow" Height="363.534" Width="591.353"
        WindowStyle="None" AllowsTransparency="True"
        Background="Transparent"
        DragOver="Window_DragOver">
    <Grid DragOver="Grid_DragOver">
        <Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="334" Stroke="Black" VerticalAlignment="Top" Width="583"/>
        <TextBox HorizontalAlignment="Left" Height="33" Margin="306,107,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="150"/>
        <TextBox HorizontalAlignment="Left" Height="29" Margin="306,160,0,0" TextWrapping="Wrap" Text="TextBox" VerticalAlignment="Top" Width="150"/>
        <Label Content="User Name:" HorizontalAlignment="Left" Margin="226,114,0,0" VerticalAlignment="Top" Width="92"/>
        <Label Content="Password:" HorizontalAlignment="Left" Margin="228,163,0,0" VerticalAlignment="Top" Width="92"/>
        <Button Content="Submit" HorizontalAlignment="Left" Margin="252,231,0,0" VerticalAlignment="Top" Width="114" Height="34"/>

    </Grid>
</Window>

OutPut:



Conclusion


In this article we have seen how to create a user LOGIN oval shape using WPF

Page copy protected against web site content infringement by Copyscape

About the Author

Pardhu2020
Full Name: Pardha Saradhi
Member Level:
Member Status: Member
Member Since: 3/19/2013 2:21:22 PM
Country: India

http://www.dotnetfunda.com

Login to vote for this post.

Comments or Responses

Login to post response

Comment using Facebook(Author doesn't get notification)