APPENDIX D

image

Custom Screen Template View IDs

When you build a custom screen template (like I showed you in Chapter 20), you can call methods from the host-generator object to add content items to your screen. Once you add a content item, you can call the SetContentItemView method to change the control that binds to your content item. In effect, the SetContentItemView method provides the code equivalent of your using the drop-down box that appears next to a content item in the screen designer to select a different control type. Let’s say that you add a local screen property called screenPropertyContentItem and want to change the control type from ...

Get Visual Studio LightSwitch 2015, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.