This is a migrated thread and some comments may be shown as answers.

ColorPaletteView color item spacing

1 Answer 20 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Tracy
Top achievements
Rank 1
Tracy asked on 25 Aug 2011, 11:49 PM
<telerik:RadColorPaletteView HorizontalAlignment="Left"  Width="150" 
                             PaletteOrientation="Horizontal" PaletteColumnsCount="8"
                             ItemsSource="{Binding AvailableColors}" 
                             SelectedItem="{Binding TagColor, Mode=TwoWay}"
                             SelectionChanged="RadColorPaletteView_SelectionChanged"
                             />
Hi,

We are using the ColorPaletteView with a defined set of 13 colors in two rows. There is sufficient spacing between the columns but vertically the color items seem to not have any spacing between them.

How do I specify the spacing between the rows of color items?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 31 Aug 2011, 02:18 PM
Hello Tracy,

 You can use Margin in the RadColorPaletteViewItems like so:

<Window.Resources>
       <Style TargetType="telerik:RadColorPaletteViewItem" x:Key="itemsStyle">
           <Setter Property="Margin" Value="5 5 5 5" />
       </Style>
   </Window.Resources>
 
   <Grid>    
       <telerik:RadColorPaletteView x:Name="palette" ItemContainerStyle="{StaticResource itemsStyle}"/>
   </Grid>
Feel free to ask if you need further assistance.All the best,
Petar Mladenov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
ColorPicker
Asked by
Tracy
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or