Exercise - Control Properties and code navigation
- Close all open tabs in visual studio. (right click on one of the tabs and select close all documents).
- Open ShowProducts controller. in the OnLoad() find the View = () => new Views.ShowProductsView(this); using the F12 navigate to the code behind of the form.
- Go to the Form using the ShiftF7.
- Go back to the code behind using F7.
- Find the code behind controller parameter,Go back to the Controller using F12.
- Now when we know how to navigate from the controller to the form, go to the form and change the following properties:
- ActiveRowStyle of the grid to Border.
- AllowFocus of the CategoryName textbox to False.
- BackColor of the ProductName textbox to LightBlue.
- Font of the ProductName textbox to Bold.
- Save changes to Git.
- Build and test.
- Change the following properties of the grid control:
- RowColorStyle to AlternatingRowBackColor.
- AlternatingBackcolor to WhiteSmoke.
- Save changes to Git.
- Build and test.
- Notice that the grid properties override the textbox one.
- Change back the RowColorStyle to ByColumnAndControls.
- Save changes to Git.
- Build and test.
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com