ThumbRate class¶
Defined in
Namespace: CrissCross.Avalonia.UI.Controls
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.Controls.ThumbRate
Modifiers: public
Summary¶
Allows to rate positively or negatively by clicking on one of the thumbs.
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 ThumbRate
class TemplatedControl
TemplatedControl <|-- ThumbRate
Inherits from: TemplatedControl
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| State | Gets or sets the state. |
| ThumbUpCommand | Gets or sets the thumb up command. |
| ThumbDownCommand | Gets or sets the thumb down command. |
| ThumbSize | Gets or sets the thumb size. |
| SelectedBrush | Gets or sets the selected brush. |
| UnselectedBrush | Gets or sets the unselected brush. |
Fields¶
| Name | Summary |
|---|---|
| static StateProperty | Property for [State](# |
| static ThumbUpCommandProperty | Property for [ThumbUpCommand](# |
| static ThumbDownCommandProperty | Property for [ThumbDownCommand](# |
| static ThumbSizeProperty | Property for [ThumbSize](# |
| static SelectedBrushProperty | Property for [SelectedBrush](# |
| static UnselectedBrushProperty | Property for [UnselectedBrush](# |
| static StateChangedEvent | Defines the [StateChanged](# event. |
Methods¶
| Name | Summary |
|---|---|
| ThumbUp | Sets the state to liked. |
| ThumbDown | Sets the state to disliked. |
Events¶
| Name | Summary |
|---|---|
| StateChanged | Occurs when the state changes. |