O'Reilly logo

Visual Studio LightSwitch 2012 by Tim Leung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX D

image

Custom Screen Template View IDs

When you’re writing a custom screen template (as discussed in Chapter 13), you can call the host generator methods to add content items onto your screen. Once you’ve done this, you can call the SetContentItemView method to change the control that renders your data item. In effect, the SetContentItemView method provides the code equivalent of you using the drop-down box that appears next to a data item in the screen designer to select a different control type. Let’s say that you’ve added a local screen property called screenPropertyContentItem and want to change the control type from an autocomplete box ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required