Completed
Last Updated: 20 Sep 2023 07:01 by ADMIN
Release R3 2023

The borders around the color visuals (RadColorPaletteViewItem) in the palette view are shown at the wrong visuals when the MainPaletteItemsSource and MainPaletteColumnsCount properties are changed at runtime.

To work this around, re-adjust the PositionState values of the RadColorPaletteViewItems. For example:

private void ChangePalette()
{
	this.colorSelector.MainPaletteItemsSource = MyGetSourceMethod();
	this.colorSelector.MainPaletteColumnsCount = 10;	
	UpdatePaletteItems();
}

private void UpdatePaletteItems()
{
	var mainPalette = colorSelector.ChildrenOfType<RadColorPaletteView>().First(x => x.Name == "MainPalette");
	var paletteItems = mainPalette.ChildrenOfType<RadColorPaletteViewItem>();
	var paletteItemsCount = paletteItems.Count();
	var columnsCount = mainPalette.PaletteColumnsCount;
	var orientation = mainPalette.PaletteOrientation;

	for (int i = 0; i < paletteItemsCount; i++)
	{
		var paletteItem = paletteItems.ElementAt(i);

		if ((columnsCount == paletteItemsCount) || (paletteItemsCount / columnsCount == 0))
		{
			paletteItem.PositionState = PositionState.Single;
			return;
		}

		if (orientation == Orientation.Horizontal)
		{
			if (i < columnsCount)
			{
				paletteItem.PositionState = PositionState.Top;
			}
			else if (i > (paletteItemsCount - columnsCount - 1))
			{
				paletteItem.PositionState = PositionState.Bottom;
			}
			else
			{
				paletteItem.PositionState = PositionState.Middle;
			}
		}
		else
		{
			if (i % (paletteItemsCount / columnsCount) == 0)
			{
				paletteItem.PositionState = PositionState.Top;
			}
			else if (((i + 1) % (paletteItemsCount / columnsCount)) == 0)
			{
				paletteItem.PositionState = PositionState.Bottom;
			}
			else
			{
				paletteItem.PositionState = PositionState.Middle;
			}
		}
	}
}

Completed
Last Updated: 28 Mar 2022 06:04 by ADMIN
Release LIB 2022.1.328 (28 Mar 2022)
The MainPalette of the RadColorPicker element has two #FF808080 color entries in its default ItemsSource collection. If the SelectedColor property is set to #FF808080, both of the entries will be selected when the drop-down opens.
Completed
Last Updated: 09 Mar 2022 15:55 by ADMIN
Release LIB 2022.1.314 (14 March 2022)

A NullReferenceException is thrown when the drop down part of the ColorPicker control is opened initially. For example, this can happen if the IsDropDownOpen property is set to True in XAML. 

This bug is actually related to the RadSplitButton used inside the ControlTemplate of the ColorPicker. It is reproducible also if you use RadSplitButton only. 

The issue reproduces with the Office2016 and Office2019 themes, but probably appears also in other themes (Green and later). The error is gone if you use an older theme like the default Office_Black.

To work this around, set the IsDropDownOpen property of the RadColorPicker in its Loaded event handler.

private void RadColorPicker_Loaded(object sender, RoutedEventArgs e)
{
	var picker = (RadColorPicker)sender;
	picker.IsDropDownOpen = true;
}

 

Completed
Last Updated: 07 Jul 2015 11:53 by ADMIN
Available in LIB version: 2015.2.713
Completed
Last Updated: 04 Mar 2015 16:39 by ADMIN
Setting the RadColorPicker's / RadColorSelector's PaletteItemsTemplate has no effect in RecentColorsPaletteView. This is the section which appears when the RecentColors funtionality in the ColorPicker is active.

Available in LIB version: 2015.1.0309
Completed
Last Updated: 31 Mar 2015 11:24 by ADMIN
A design time error occurs when the control have a custom style based on the default RadColorPickerStyle. This is reproducible only if the project references NoXaml assemblies and it uses the resource dictionaries with the themes locally (the files are copied in the project and then merged in the Resources).

The error is the following:
'This feature requires service 'Microsoft.Windows.Design.Services.ValueTranslationService' to be present, but it could not be located.	'

As a workaround you can merge the resources directly from the .dll file of the theme as demonstrated in the Setting a Theme help article.
http://www.telerik.com/help/wpf/styling-apperance-implicit-styles-overview.html

Available in LIB version: 2015.1.0604
Completed
Last Updated: 20 Jan 2015 15:00 by ADMIN
Set SelectedColor = Red in XAML or code behind or via databinding. Open the color Picker - the red color in Standard Colors is NOT selected but it should be.

A possible workaround could be:

   <Style TargetType="telerik:RadColorPaletteView">
         <Setter Property="SelectedItem" Value="{Binding MediaColor, Mode=OneWay, RelativeSource={RelativeSource AncestorType=telerik:RadColorSelector}}" />
   </Style>


Available in LIB version: 2014.3.1208
Completed
Last Updated: 19 Jun 2014 08:20 by ADMIN
RecentColors functionality doesn't work when you set RecentColorsItemsSource. The recent colors are not shown at all but they should be.

When using this property the user should be able to customize the recent colors functionality on his own. Showing the recent colors is a must when setting non-empty colletion via RecentColorsItemSource.
Completed
Last Updated: 23 Jul 2015 08:27 by ADMIN
Implicit styles are set via refering included XAML files. Set Style targetting RadColorPicker and BasedOn RadColorPickerStyle. Set this stye in App.xaml after the resource dictionaries. In desinger - MS exception is thrown "This feature requires Microsoft.Windows.Design.Sevices.valueTranslationService".

Note that this is only reproducible when xaml fiels are included in the project. This is NOT reproducible when you reference xaml files from the style dll (for example Telerik.Windows.Themes.Office_Black).

The fix will be available in our official release Q2 2015 SP.
Completed
Last Updated: 29 May 2014 15:18 by ADMIN
ADMIN
Created by: Evgenia
Comments: 1
Category: ColorPicker
Type: Feature Request
0
You can't customize ButtonPart ot TogglePart of SplitButton in ColorPicker as SplitButtonStyle doesn't get applied with this property.
Completed
Last Updated: 08 Dec 2014 10:47 by ADMIN
If you bind the SelectedIndex or the SelectedItem properties to your ViewModel and change them from code, the UI will not be updated. This is both reproducible in ColorPicker, ColorSelector and ColorPaletteView. 

The issue is fixed in Q2 2014 Release.
Completed
Last Updated: 04 Feb 2016 14:35 by ADMIN
If you bind the SelectedIndex or the SelectedItem properties to your ViewModel and change them from code, the UI will not be updated.
This is both reproducible in ColorPicker, ColorSelector and ColorPaletteView.