Hi, when the palette is populated with a large number of colours it seems every 7th colour (vertically) has a larger gap below it. This produces a messy looking palette.
This applies to our HighlightColorPicker controls but the regular ColorPicker controls in the Table border and background dialogs are fine.
We are only setting a few things as below. Are there some defaults that I am missing which might help? I've tried looking at the objects in debug mode but can't see anything obvious. I've tried adjusting the data template, but it seems this only impacts the item inside each square (i.e. setting margin will produce a space between the containing square and the colour rectangle).
We are running on 2013.2 so let me know if we should update to fix this. Thanks.
Code (table controls):
colorSelector.AutomaticColor = Colors.Transparent;
colorSelector.ColorPropertyPath = "CustomColor";
colorSelector.HeaderPaletteVisibility = Visibility.Collapsed;
colorSelector.StandardPaletteVisibility = Visibility.Collapsed;
colorSelector.NoColorVisibility = Visibility.Collapsed;
colorSelector.MainPaletteHeaderText = "My Colours";
colorSelector.PaletteItemsTemplate = this.ColorPickerDataTemplate;
XAML (HighlightColorPicker):
<ColorPickers:HighlightColorPicker Name="fontColorPicker"
ColorPropertyPath="CustomColor"
HeaderPaletteVisibility="Collapsed"
StandardPaletteVisibility="Collapsed"
MainPaletteHeaderText="My Colours"
NoColorVisibility="Collapsed"
PaletteItemsTemplate="{StaticResource ColorPickerTemplate}"
Image="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/FontForeColor.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ChangeFontForeColorCommand}"
/>
This applies to our HighlightColorPicker controls but the regular ColorPicker controls in the Table border and background dialogs are fine.
We are only setting a few things as below. Are there some defaults that I am missing which might help? I've tried looking at the objects in debug mode but can't see anything obvious. I've tried adjusting the data template, but it seems this only impacts the item inside each square (i.e. setting margin will produce a space between the containing square and the colour rectangle).
We are running on 2013.2 so let me know if we should update to fix this. Thanks.
Code (table controls):
colorSelector.AutomaticColor = Colors.Transparent;
colorSelector.ColorPropertyPath = "CustomColor";
colorSelector.HeaderPaletteVisibility = Visibility.Collapsed;
colorSelector.StandardPaletteVisibility = Visibility.Collapsed;
colorSelector.NoColorVisibility = Visibility.Collapsed;
colorSelector.MainPaletteHeaderText = "My Colours";
colorSelector.PaletteItemsTemplate = this.ColorPickerDataTemplate;
XAML (HighlightColorPicker):
<ColorPickers:HighlightColorPicker Name="fontColorPicker"
ColorPropertyPath="CustomColor"
HeaderPaletteVisibility="Collapsed"
StandardPaletteVisibility="Collapsed"
MainPaletteHeaderText="My Colours"
NoColorVisibility="Collapsed"
PaletteItemsTemplate="{StaticResource ColorPickerTemplate}"
Image="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/FontForeColor.png"
telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ChangeFontForeColorCommand}"
/>