Silverlight Toolkit Overview, Part 1 - Controls


The Silverlight Toolkit Controls Overview has moved here.

Last edited Apr 12, 2010 at 6:08 PM by alnuri, version 42

Comments

azhistudio May 18, 2010 at 5:49 AM 
hi
theme
我这里有个问题,我在 PAGE RainierOrange ro=new RainierOrange();
ro.content=this.content;没有问题,然后在PAGE中增加一个BUTTON,button 中NEW CHILDWINDOW.SHOW();
新的 childwindow 并没有应用样式? 我在新的 childwindow 写了 RainierOrange ro=new RainierOrange();
 提示:元素已属于另一个无素 what? 如果不样,我又不想用前台拖THEME控件到CHILDWINDOW.xaml,后台如何才能实现

jeffwilcox Jan 6, 2010 at 7:26 PM 
We're actually having hosting issues with these samples, and are investigating the best way to fix this. Sorry for the downtime.

rahuld2 Jan 6, 2010 at 12:07 AM 
I can't see any samples either. This is not good, I thought microsoft had figured out a way out of versioning hell, seems like I am wrong.

DovFrankel Dec 2, 2009 at 5:33 PM 
[Sorry, it won't let me delete my prior comments] Why can't I see any of the Silverlight samples? I see the blank space for all of them, and get "Silverlight" in my context menu when I right click on where they should be, but there's nothing there. This applies to all samples from this site. (Yes, I have Silverlight 3 installed, and my own Silverlight projects run, in addition to videos online on other sites, and I've tried loading these pages in IE6, Firefox, and Safari)

DovFrankel Dec 2, 2009 at 5:30 PM 
Why can't I see any of the Silverlight samples? I see the blank space for all of them, and get "Silverlight" in my context menu when I right click on where they should be, but there's nothing there. This applies to all samples from this site. (Yes, I have Silverlight 3 installed, and my own Silverlight projects run, in addition to videos online on other sites)

DovFrankel Dec 2, 2009 at 5:29 PM 
Why can't I see any of the Silverlight samples? I see the blank space for all of them, and get "Silverlight" in my context menu when I right click on where they should be, but there's nothing there. This applies to all samples from this site.

IliyaTretyakov Nov 25, 2009 at 8:42 AM 
TreeView Using CheckBoxes improvement
http://it3xl.ru/Resources_For_External/iliya-tretyakov.spaces.live.com/CheckHierarhyPerfect/TestPage.html
Source : http://cid-6ddca30c11fa5050.skydrive.live.com/self.aspx/.Public/Blog/CheckHierarhyPerfect/CheckHierarhyPerfect.zip
maybe it will be useful for you

puckoff7337 Oct 7, 2009 at 7:16 AM 
This page kinda sucks, takes forever to load and cripples my browser, can we split the controls into their own pages?

JustinJosefAngel Aug 21, 2009 at 11:01 PM 
Hi Jason,

The namespace and assembly for each control is noted in each sample. Hover over the "XAML" name.
Plus, we've got a full sized sample app and the release notes which both have that information.

In the long run we're looking at ways of solving this issue once and for all.

Thanks,
-- Justin Angel

jasonjackson Aug 17, 2009 at 6:38 PM 
For someone new to Silverlight it might be very difficult to even find the correct assembly and namespace to use for these samples. I would recommend that the namespace and assembly be noted for each example for all of the controls being used, or provide more source code that simply the syntax for the element in question - perhaps the source code for the namespace declarations as well.

firedog067 Jul 20, 2009 at 5:34 AM 
I think there is a bug with TreeView. If I bound it with List<object> and I put a couple of FrameworkElements lets say TextBox and TextBlock. Next I try to remove some of elements from the list and reset the ItemsSource:

List<object> list = new List<object>();

// in constructor
list.Add(new ListBoxItem() { Content = new TextBox() { Text = "TextBox text here..." } });
list.Add(new ListBoxItem() { Content = new TextBlock() { Text = "TextBlock text here..." } });

treeView1.DataContext = list;

// in some method (button ckick event handler)
list.RemoveAt(1);

treeView1.ItemsSource = null;
treeView1.ItemsSource = list;

When I do this i get parser error with Code:1001. Is that a bug or I do something wrong?

ssandu Jun 25, 2009 at 1:13 PM 
Is Padding working for AutoCompleteBox ? I have an autocompletebox with a Height="20" and FontSize="12" and with Padding="0" I can't see entire font.
Great work anyway ! Thank's !

lucklouis May 20, 2009 at 12:45 AM 
Thanks a lot for the toolkit - some great promise and some definitely needed features. One thing - maybe this is a known issue but although the examples on this page display perfectly in IE, I can't see them at all in Firefox on the Mac. As well, the controls are VERY buggy (i.e. freeze) when displayed in Google Chrome.

Thanks again

JustinJosefAngel Nov 12, 2008 at 3:11 AM 
ChristoE, Thanks. please post your question to the Silverlight Forums - http://silverlight.net/forums/35.aspx.

ChristoE Nov 6, 2008 at 9:44 AM 
Hi,

Great work!

I have noticed that MouseLeftButtonDown does not fire for a TreeView nor a TreeViewItem, is there a specific reason for this?

Christo

anyeone Oct 31, 2008 at 2:48 PM 
Hi, I'm trying to combine the HierarchicalDataTemplate with lazy loading and I can't see where I can hook the Expanded event handler in this scenario below. Basically what I need is to hook Expanded to the dynamically generated TreeViewItems in the domainTreeItems template. But, HierarchicalDataTemplate doesn't expose the Expanded event as far as I can see and I can't figure out how to tack it onto the treeview itself without hard-coding treeitems. Any assistance will be greatly appreciated!

<UserControl.Resources>
<toolkit:HierarchicalDataTemplate x:Key="emailTreeItems">
<StackPanel Orientation="Horizontal">
<TextBlock FontWeight="Bold" Text="{Binding Path=EmailName}" />
<TextBlock FontWeight="Bold" Text="{Binding Path=HitCount, Converter={StaticResource hitCountConverter}, ConverterParameter=0}" />
</StackPanel>
</toolkit:HierarchicalDataTemplate>
<toolkit:HierarchicalDataTemplate x:Key="domainTreeItems" ItemsSource="{Binding Path=Emails}" ItemTemplate="{StaticResource emailTreeItems}">
<StackPanel Orientation="Horizontal">
<TextBlock FontWeight="Bold" Text="{Binding Path=DomainName}" />
<TextBlock FontWeight="Bold" Text="{Binding Path=HitCount, Converter={StaticResource hitCountConverter}, ConverterParameter=0}" />
</StackPanel>
</toolkit:HierarchicalDataTemplate>
</UserControl.Resources>
<toolkit:TreeView x:Name="trvWorking" ItemTemplate="{StaticResource domainTreeItems}" VerticalAlignment="Top" HorizontalAlignment="Center" BorderBrush="{x:Null}" BorderThickness="0,0,0,0" SelectedItemChanged="trvWorking_SelectedItemChanged">
</toolkit:TreeView>

Daniella Oct 31, 2008 at 4:18 AM 
Hi Justin,
Thank you! But actually I was looking at your "Select a Thumbnail" sample for your WrapPanel. This is using ListBox with ItemsPanelTemplate set as WrapPanel. Is there a way to modify this sample of yours so that it show the scrollbars when needed?
Thanks again!!
Daniella :)

JustinJosefAngel Oct 30, 2008 at 11:08 PM 
Hi ninomk, We do not support "lazy loading" TreeViewItems out of the box, but we do expose the right endpoints for you to do that yourself.
By hooking up to the TreeViewItem.Expanded event you could add new TreeViewItems every time a TreeViewItem is expanded. Which would give you that "lazy loading" effect.
Stay tuned to this page, and as soon as we publish the TreeView Lazy-Loading walkthrough it'll show up here.

JustinJosefAngel Oct 30, 2008 at 11:06 PM 
Hi Daiella, Excellent question!
WrapPanel by itself doesn't support ScrollBars (same as in WPF).
You could easily put the WrapPanel in a ScrollViewer and have the desired effect:
<ScrollViewer Width="150" Height="100">
<controls:WrapPanel>
<Rectangle Height="300" Width="Auto"/>
</controls:WrapPanel>
</ScrollViewer>

ninomk Oct 29, 2008 at 10:47 AM 
Hello team,
Recently I was trying to develop my own Silverlight TreeView with templatable items and lazy-load of child nodes. I got stuck in readonly Items collection of the ItemsCotrol when expanding a node.
Does TreeView control from this toolkit support lazy-load of sub nodes?
Thanks,
Nino

Daniella Oct 29, 2008 at 2:51 AM 
Hi,
Very nice work! It is almost exactly what I need. But the WrapPanel samples don't make the scrollbars be appearing automatically. How can this be done with your codes?
Please, please can you tell me how this can be done?
Thanks! ;)
Daniella