Extended Library for UWP | ComponentOne
Extended Library Overview / ColorPicker for UWP / Features / Hiding Recent Colors Tab in Basic Mode
In This Topic
    Hiding Recent Colors Tab in Basic Mode
    In This Topic

    In Basic mode, C1ColorPicker displays a Recent Colors tab that displays the recent color icons selected on the ColorPicker. You can customize the appearance of C1ColorPicker by hiding Recent Colors tab either at Design time, in XAML or in code.

    At Design Time

    To hide Recent Colors tab at design time:

    1. Select the C1ColorPicker Control by clicking it once in Design view.
    2. Navigate to the Properties window and locate the ShowRecentColors property.
    3. Check off the ShowRecentColors property to hide Recent Colors tab.

    In XAML

    To hide Recent Colors tab in XAML, set ShowRecentColors property to false by adding ShowRecentColors="False" in <Extended:C1ColorPicker> tag. The XAML code should appear similar to the follows:

    XAML
    Copy Code
    <Extended:C1ColorPicker x:Name="C1ColorPicker2" HorizontalAlignment="Left" 
     VerticalAlignment="Top" Margin="143,101,0,0" Width="179" Height="84" ShowRecentColors="False"/>
    

    In Code

    In code view, you can hide Recent Colors tab by adding the following code in the MainPage constructor.

    Visual Basic
    Copy Code
    Me.C1ColorPicker1.ShowRecentColors = False
    
    C#
    Copy Code
    this.C1ColorPicker2.ShowRecentColors = false;
    

    Run the application and notice that Recent Colors tab is no longer visible in the drop-down window.