Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > ColorPicker > ColorPaletteView color item spacing

Not answered ColorPaletteView color item spacing

Feed from this thread
  • Tracy avatar

    Posted on Aug 25, 2011 (permalink)

    <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?

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Aug 31, 2011 (permalink)

    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 >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > ColorPicker > ColorPaletteView color item spacing
Related resources for "ColorPaletteView color item spacing"

WPF ColorPicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]