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¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| Model | Gets or sets the shared chip model. |
| Text | Gets or sets the chip text. |
| Icon | Gets or sets the chip icon content. |
| IsSelected | Gets or sets a value indicating whether the chip is selected. |
| IsRemovable | Gets or sets a value indicating whether the chip is removable. |
| SelectCommand | Gets or sets the command invoked to select or toggle the chip. |
| RemoveCommand | Gets or sets the command invoked to remove the chip. |
Fields¶
| Name | Summary |
|---|---|
| static ModelProperty | Property for [Model](# |
| static TextProperty | Property for [Text](# |
| static IconProperty | Property for [Icon](# |
| static IsSelectedProperty | Property for [IsSelected](# |
| static IsRemovableProperty | Property for [IsRemovable](# |
| static SelectCommandProperty | Property for [SelectCommand](# |
| static RemoveCommandProperty | Property for [RemoveCommand](# |
Methods¶
| Name | Summary |
|---|---|
| OnPropertyChanged | Called when a avalonia property changes on the object. |