ComponentOne MultiSelect for UWP
Features / Appearance
In This Topic
    Appearance
    In This Topic

    MultiSelect allows you to customize the appearance of all the individual elements of the control and manage its overall appearance.

    Apply Styles to C1MultiSelect

    The following image shows styles applied to C1MultiSelect.

    To apply style to MultiSelect using System.Windows.Style class, use the following code.

    Dim s As Style = New Style(GetType(C1MultiSelect))
    s.Setters.Add(New Setter(ItemsControl.BackgroundProperty, New SolidColorBrush(Colors.BurlyWood)))
    mselect.Style = s
    
    Style s = new Style(typeof(C1MultiSelect));
    s.Setters.Add(new Setter(ItemsControl.BackgroundProperty, new SolidColorBrush(Colors.BurlyWood)));
    mselect.Style = s;
    
    Back to Top

    Apply Styles to Tags

    The following image shows styles applied to the tags in MultiSelect.

    To customize the appearance of tags of C1MultiSelect, use the following code. Tags styles in C1MultiSelect can be accessed via the TagStyle property.

    Dim ts As Style = New Style(GetType(C1Tag))
    ts.Setters.Add(New Setter(ItemsControl.ForegroundProperty, New SolidColorBrush(Colors.Brown)))
    mselect.TagStyle = ts
    
    Style ts = new Style(typeof(C1Tag));
    ts.Setters.Add(new Setter(ItemsControl.ForegroundProperty, new SolidColorBrush(Colors.Brown)));
    mselect.TagStyle = ts;
    
    Back to Top