Here we will see how to add a custom control to a LightSwitch Application (Visual C#) in Visual Studio 2012.
The following is the procedure for adding a Custom Control in LightSwitch.
Step 1Open the Solution Explorer.Step 2In the Solution Explorer, right-click on the Server and choose "Add Table".Step 3The table appears.Step 4In the Solution Explorer, right-click on the Screens and choose "Add Screen".Step 5The Add New Screen dialog box appears. Select the "New Data Screen" from the Screen Template, under screen information, choose "Employees" under screen data and provide a name to the Screen and click the "OK" button.Step 6In the Screen Designer, click the "Add" button. A drop down list will appear, from that list choose "New Custom".Step 7The Add Custom Control dialog box will appear. From the dialog box select the control that you want to add and click the "OK" button. Step 8Now the Screen designer will look as in the following:Select the Custom Control from the screen designer and go to the property window and change the size of the button. I have set the Horizontal Alignment to Center and Vertical Alignment to Bottom.Step 9Press F5 to run the application.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: