Templating Controls with Silverlight (Silverlight TV #36)
- Posted: Jul 15, 2010 at 8:36 AM
- 51,318 Views
- 10 Comments
Download
How do I download the videos?
- To download, right click the file type you would like and pick “Save target as…” or “Save link as…”
Why should I download videos from Channel9?
- It's an easy way to save the videos you like locally.
- You can save the videos in order to watch them offline.
- If all you want is to hear the audio, you can download the MP3!
Which version should I choose?
- If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
- If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
- If you have a Zune, WP7, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
- If you just want to hear the audio of the video, choose the MP3 file.
Right click “Save as…”
- High Quality WMV (PC, Xbox, MCE)
- MP3 (Audio only)
- MP4 (iPod, Zune HD)
- Mid Quality WMV (Lo-band, Mobile)
In this episode, Adam Kinney discusses how you can completely customize how a control looks and behaves. Adam explains how all Silverlight controls are lookless and that they can be customized using various templates depending on what you want to achieve. Instead
of starting with a simple control like a TextBox, he demonstrates the power of templating using a ListBox and its various templates, including the ItemsPanel, ListBoxItem, Data Template, and more (we joke about the multiple names for some of the templates).
This is a great episode to watch if you ever wanted to know how to template controls, or even if you just want to know what all those templates are for and how to use them in Blend.
This also happens to be Adam's final episode as a Expression Evangelist with Microsoft. Be sure to watch just to see him as he shows us what he will be doing at his new job
<warning>This video contains a poor attempt at humor.</warning>
Relevant links:
- John's Blog and on Twitter (@john_papa)
- Adam's Blog and on Twitter (@adkinn)
Registration for PDC10 is now open, and space is limited – don’t miss this opportunity to experience the PDC in Redmond. Join the PDC email newsletter for the latest information about PDC10 .
Comments Closed
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Good video!
One question: The top control was still a ListBox, but why did you just not use a WrapPanel as top item ? Then you did not have to replace the StackPanel with a WrapPanel.
It's hard to get the different templates if nobody ever told you, and even then it's still kind of hard and you still sometimes select the wrong one. (i do)
The video is not really clear. But the presentation is really useful.
Thanks.
nice in/outro:)
Why so sad John? Adam is still your friend, isn't he?
Nice video.
Yes, it was our poor attempt at geek humor
wrapped around a solid topic.
Hey Now Silverlight TV #36,
Great Vid!
Thx 4 the info,
Catto
There is a ton you can do with the listbox and the data/item template is key. I used JP's swivel behavior in this demo ...
http://www.delvegraphics.com/DG-Swivel/TestPage.html
you can see that i've used the data template in multiple ways... just flip the UI to see a custom data template drag and drop example.
It's great for designers like myself.
Nice to see you using my swivel behavior. That's a nice sample of nested swivels ... and of a "tab" control too
Yes, templates are very nice.
Hello its really nice video. Can u provide the sample code for it.Bcos i have the similar requirement for my project
as i new to silverlight.
i have done this similar kind in wpf using the listview. but i dint find the list view concept in silverlight. i have tried thru the listbox but i am not getting exact idea to show in similar kind of design. please help me in this regard. please check this
link for the image http://twitpic.com/2fjp0b
Thanks
Sai
Comment removed at user's request.
Remove this comment
Remove this thread
close