Skip to content

Chip class

Defined in

Namespace: CrissCross.Avalonia.UI.Controls Assembly: CrissCross.Avalonia.UI.dll Full name: CrissCross.Avalonia.UI.Controls.Chip Modifiers: public

Summary

        Represents a compact selectable or removable chip/tag surface.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471

Class hierarchy
classDiagram
class Chip
class TemplatedControl
TemplatedControl <|-- Chip

Inherits from: TemplatedControl

Constructors

NameSummary
.ctor

Properties

NameSummary
ModelGets or sets the shared chip model.
TextGets or sets the chip text.
IconGets or sets the chip icon content.
IsSelectedGets or sets a value indicating whether the chip is selected.
IsRemovableGets or sets a value indicating whether the chip is removable.
SelectCommandGets or sets the command invoked to select or toggle the chip.
RemoveCommandGets or sets the command invoked to remove the chip.

Fields

NameSummary
static ModelPropertyProperty for [Model](#
static TextPropertyProperty for [Text](#
static IconPropertyProperty for [Icon](#
static IsSelectedPropertyProperty for [IsSelected](#
static IsRemovablePropertyProperty for [IsRemovable](#
static SelectCommandPropertyProperty for [SelectCommand](#
static RemoveCommandPropertyProperty for [RemoveCommand](#

Methods

NameSummary
OnPropertyChangedCalled when a avalonia property changes on the object.
Inherited members