Welcome to the FoxLearn
Today we will learn how to design login form using metro framework
First, You need to install the package MetroFramework
The Metro Modern UI or MetroFramework brings Windows 8 UI to .NET Windows Forms applications
We will create a new tab, then add a reference to the metro framework library
You need to add a MetroPanel to Form 1
We will use the MetroPanel to contain the UserControls
You need to add a TableLayout control to the login user control
The TableLayoutPanel control arranges its contents in a grid
Because the layout is performed both at design time and run time, it can change dynamically as the application environment changes
This gives the controls in the panel the ability to proportionally resize
so they can respond to changes such as the parent control resizing or text length changing due to localization
Any Windows Forms control can be a child of the TableLayoutPanel control, including other instances of TableLayoutPanel
This allows you to construct sophisticated layouts that adapt to changes at run time
The TableLayoutPanel control can expand to accommodate new controls when they are added, depending on the value of the RowCount
ColumnCount, and GrowStyle properties
Setting either the RowCount or ColumnCount property to a value of 0 specifies that the TableLayoutPanel will be unbound in the corresponding direction
You can also control the direction of expansion after the TableLayoutPanel control is full of child controls
By default, the TableLayoutPanel control expands downward by adding rows
If you want rows and columns that behave differently from the default behavior
you can control the properties of rows and columns by using the RowStyles and ColumnStyles properties
You can set the properties of rows or columns individually
We will use singleton pattern to create a new instance of the MainForm
The singleton pattern is a design pattern that restricts the instantiation of a class to one object
This is useful when exactly one object is needed to coordinate actions across the system
Thank you for watching this video