Templating Controls with Silverlight (Silverlight TV #36)
- Posted: Jul 15, 2010 at 8:36 AM
- 52,951 Views
- 10 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
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.
Relevant links:
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 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
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
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