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 ...

Get Visual Studio LightSwitch 2012 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.