APPENDIX C

image

Using Properties in Custom Controls

When you create a custom Silverlight control extension, you can bind the attributes of user-interface (UI) elements to the values that a developer enters in the Visual Studio screen designer (Figure C-1).

9781484207673_Fig26-01.jpg

Figure C-1. Property values that developers can modify

Chapter 19 (Listing 19-7) included a custom control that binds to values from the property sheet. An excerpt of this code is shown in Listing C-1.

The data-binding syntax in this code includes the property ...

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.