Saturday, February 14, 2015

How to create a new project with LinsUIWPF Suite

Download   Demonstration  Question?   Contact Us


1.     Launch Visual Studio.
2.     File->New->Project….
1)      Select “WPF Application” as template
2)      Enter “MyDemo” as both project name and solution name.
3)      Click “OK” button.  
3.     Project -> Add Reference….
1)      Select “Browse” tab.
2)      Browse to the folder where LinsUIWPF Suite is located,
3)      Choose the folder corresponding to your development environment.
4)      Select all the assemblies under the folder. Click “OK” button. 
4.     Open Window1.xaml. Change the following code,
<Window x:Class="MyDemo.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
       
</Grid>
</Window>
to as follows,
<src:LinsMDIWindow x:Class="MyDemo.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:src="clr-namespace:LinsUIWPF;assembly=LinsUIWPF"
Title=" Window1" Height="300" Width="300">
<Grid>
       
</Grid>
</src:LinsMDIWindow>
5.     Open Window1.xaml.cs.
Add the following line,
using LinsUIWPF;
and change the following code,
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
}
to as follows,
public partial class Window1 : LinsMDIWindow
{
public Window1()
{
InitializeComponent();
}
}
6.     Now you are ready to run the demo.



References:
LinsMDIWindow,                                                         

No comments:

Post a Comment