3 Answers, 1 is accepted
Hi igal a,
Please find attached a sample project that shows how to change MainPaletteColumnsCount and MainPaletteOrientation properties at runtime.
Note: these two properties MainPaletteColumnsCount and MainPaletteOrientation are used only when you want to define some custom palettes using the selector ItemsSource:
this.selector.MainPaletteColumnsCount = 3;
this.selector.MainPaletteOrientation = Orientation.Vertical;
this.selector.MainPaletteItemsSource = this.GetColors();
If you are using the build in palettes (this means that you do not specified any ItemsSource or set the MainPalette property to some of the build in palettes) then you do not have to apply orientation or columns count.
I hope that this will help you. Please let us know if you have any other questions or you need some more help.
the Telerik team
I'm using the 2010 Q2 release of the WPF controls.
There is no problem with the MainPaletteItemsSource binding and changing the MainPaletteColumnsCount property. The only problem is with the MainPaletteOrientation property. At the moment if you change the orientation it will not work until you change the number of the columns. This is a bug and it will be fixed with the next release. The workaround for the moment is to change the columns count, change the orientation and then set back the original columns count. Attached is a modified project, review it and if you have further questions do not hesitate to ask.
On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverlight applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx
the Telerik team