Summary
Holds a collection of style classes for an
IStyledElement
.
- Namespace
- Avalonia
.Controls - Interfaces
-
- IAvaloniaList
<string> - IList
<string> - ICollection
<string> - I
Avalonia Read Only List <string> - IReadOnlyList
<string> - IReadOnlyCollection
<string> - IEnumerable
<string> - I
Notify Collection Changed - I
Notify Property Changed - IList
- ICollection
- IEnumerable
- I
Notify Collection Changed Debug - IPseudoClasses
- IAvaloniaList
- Base Types
-
- object
- AvaloniaList
<string>
graph BT
Type-->Base0["AvaloniaList<string>"]
Base0-->Base1["object"]
Type-.->Interface0["IAvaloniaList<string>"]
Type-.->Interface1["IList<string>"]
Type-.->Interface2["ICollection<string>"]
Type-.->Interface3["IAvaloniaReadOnlyList<string>"]
Type-.->Interface4["IReadOnlyList<string>"]
Type-.->Interface5["IReadOnlyCollection<string>"]
Type-.->Interface6["IEnumerable<string>"]
Type-.->Interface7["INotifyCollectionChanged"]
Type-.->Interface8["INotifyPropertyChanged"]
Type-.->Interface9["IList"]
Type-.->Interface10["ICollection"]
Type-.->Interface11["IEnumerable"]
Type-.->Interface12["INotifyCollectionChangedDebug"]
click Interface12 "/api/Avalonia.Diagnostics/INotifyCollectionChangedDebug"
Type-.->Interface13["IPseudoClasses"]
click Interface13 "/api/Avalonia.Controls/IPseudoClasses"
Type["Classes"]
class Type type-node
Syntax
public class Classes : AvaloniaList<string>, IAvaloniaList<string>, IList<string>,
ICollection<string>, IAvaloniaReadOnlyList<string>, IReadOnlyList<string>,
IReadOnlyCollection<string>, IEnumerable<string>, INotifyCollectionChanged,
INotifyPropertyChanged, IList, ICollection, IEnumerable, INotifyCollectionChangedDebug,
IPseudoClasses
Remarks
Similar to CSS, each control may have any number of styling classes applied.
Constructors
Name | Summary |
---|---|
Classes |
Initializes a new instance of the Classes class.
|
Classes |
Initializes a new instance of the Classes class.
|
Classes |
Initializes a new instance of the Classes class.
|
Methods
Name | Value | Summary |
---|---|---|
Add |
void |
Adds a style class to the collection.
|
AddRange |
void |
Adds a style classes to the collection.
|
Clear |
void |
Remvoes all non-pseudoclasses from the collection.
|
Insert |
void |
Inserts a style class into the collection.
|
InsertRange |
void |
Inserts style classes into the collection.
|
Parse |
Classes |
Parses a classes string.
static
|
Remove |
bool |
Removes a style class from the collection.
|
RemoveAll |
void |
Removes style classes from the collection.
|
RemoveAt |
void |
Removes a style class from the collection.
|
RemoveRange |
void |
Removes style classes from the collection.
|
Replace |
void |
Removes all non-pseudoclasses in the collection and adds a new set.
|
Set |
void |
Adds a or removes a style class to/from the collection.
|
Extension Methods
Name | Value | Summary |
---|---|---|
CreateDerivedList |
I |
|
ForEachItem |
IDisposable |
Invokes an action for each item in a collection and subsequently each item added or
removed from the collection.
|
ForEachItem |
IDisposable |
Invokes an action for each item in a collection and subsequently each item added or
removed from the collection.
|
Set |
void |
Adds or removes a pseudoclass depending on a boolean value.
|
Set |
IDisposable |
Sets a pseudoclass depending on an observable trigger.
From ControlExtensions
|
Track |
IDisposable |
Listens for property changed events from all items in a collection.
|