Articles → LIGHT SWITCH 2011 → Programmer Created Detail Screen Vs Lightswitch Generated Detail Screen In Lightswitch 2011
Programmer Created Detail Screen Vs Lightswitch Generated Detail Screen In Lightswitch 2011
Software Requirement
- Visual studio 2010 is installed on your machine.
- Visual Studio 2010 service pack 1 is installed on your machine.
- Microsoft Visual Studio Light switch 2011 is installed on your machine.
Prerequisite Knowledge
- How to add tables in lightswitch application?
- What are the different types of screens in lightswitch?
- How to add screens in lightswitch application?
- What is screen’s saved event and when it gets called?
Steps For Execution
- Creation of new project.
- Creation of new table.
- Creation of new screens.
- Call both types of screens one by one in screen’s saved event.
Click to Enlarge
Click to Enlarge
- Create new screen
- Details screen
Click to Enlarge
Click to Enlarge
partial void CreateNewCity_Saved() {
// Write your code here.
this.Close(false);
Application.Current.ShowDefaultScreen(this.CityProperty);
}
Click to Enlarge
partial void CreateNewCity_Saved() {
// Write your code here.
this.Close(false);
Application.Current.ShowCityDetail(this.CityProperty.Id);
}
Click to Enlarge