Styles Class
Definition
A style that consists of a number of child styles.
public class Styles
Constructors
| Name | Description |
|---|---|
| Styles (2 overloads) | No summary available. |
Styles overloads
Styles Constructor
public Styles()
Styles Constructor
public Styles(Avalonia.Controls.IResourceHost owner)
Parameters
Methods
| Name | Description |
|---|---|
| Add | No summary available. |
| AddRange | No summary available. |
| Clear | No summary available. |
| Contains | No summary available. |
| CopyTo | No summary available. |
| GetEnumerator | No summary available. |
| IndexOf | No summary available. |
| Insert | No summary available. |
| InsertRange | No summary available. |
| Move | No summary available. |
| MoveRange | No summary available. |
| Remove | No summary available. |
| RemoveAll | No summary available. |
| RemoveAt | No summary available. |
| RemoveRange | No summary available. |
| TryGetResource | No summary available. |
| Bind (8 overloads) | Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject. |
| CheckAccess | Returns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject. |
| ClearValue (4 overloads) | Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| IsAnimating | Checks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject. |
| IsSet | Checks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject. |
| SetCurrentValue (2 overloads) | Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject. |
| SetValue (3 overloads) | Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| VerifyAccess | Checks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject. |
Add Method
public void Add(Avalonia.Styling.IStyle item)
Parameters
AddRange Method
public void AddRange(System.Collections.Generic.IEnumerable<Avalonia.Styling.IStyle> items)
Parameters
items System.Collections.Generic.IEnumerable<Avalonia.Styling.IStyle>
Clear Method
public void Clear()
Contains Method
public bool Contains(Avalonia.Styling.IStyle item)
Parameters
Returns
bool
CopyTo Method
public void CopyTo(Avalonia.Styling.IStyle[] array, int arrayIndex)
Parameters
array Avalonia.Styling.IStyle[]
arrayIndex int
GetEnumerator Method
public Avalonia.Collections.AvaloniaList<T>.Enumerator<T><Avalonia.Styling.IStyle> GetEnumerator()
Returns
Avalonia.Collections.AvaloniaList<T>.Enumerator<T><Avalonia.Styling.IStyle>
IndexOf Method
public int IndexOf(Avalonia.Styling.IStyle item)
Parameters
Returns
int
Insert Method
public void Insert(int index, Avalonia.Styling.IStyle item)
Parameters
index int
InsertRange Method
public void InsertRange(int index, System.Collections.Generic.IEnumerable<Avalonia.Styling.IStyle> items)
Parameters
index int
items System.Collections.Generic.IEnumerable<Avalonia.Styling.IStyle>
Move Method
public void Move(int oldIndex, int newIndex)
Parameters
oldIndex int
newIndex int
MoveRange Method
public void MoveRange(int oldIndex, int count, int newIndex)
Parameters
oldIndex int
count int
newIndex int
Remove Method
public bool Remove(Avalonia.Styling.IStyle item)
Parameters
Returns
bool
RemoveAll Method
public void RemoveAll(System.Collections.Generic.IEnumerable<Avalonia.Styling.IStyle> items)
Parameters
items System.Collections.Generic.IEnumerable<Avalonia.Styling.IStyle>
RemoveAt Method
public void RemoveAt(int index)
Parameters
index int
RemoveRange Method
public void RemoveRange(int index, int count)
Parameters
index int
count int
TryGetResource Method
public bool TryGetResource(object key, Avalonia.Styling.ThemeVariant theme, object& value)
Parameters
key object
theme Avalonia.Styling.ThemeVariant
value object&
Returns
bool
Properties
| Name | Description |
|---|---|
| Count | No summary available. |
| Item | No summary available. |
| Owner | No summary available. |
| Resources | Gets or sets a dictionary of style resources. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
Count Property
public int Count { get; set; }
Item Property
public Avalonia.Styling.IStyle Item { get; set; }
Owner Property
public Avalonia.Controls.IResourceHost Owner { get; set; }
Resources Property
Gets or sets a dictionary of style resources.
public Avalonia.Controls.IResourceDictionary Resources { get; set; }
Events
| Name | Description |
|---|---|
| CollectionChanged | No summary available. |
| OwnerChanged | No summary available. |
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |
CollectionChanged Event
public event System.Collections.Specialized.NotifyCollectionChangedEventHandler CollectionChanged
OwnerChanged Event
public event EventHandler OwnerChanged