Table of Contents

Class ContainerQuery

Namespace
Avalonia.Styling
Assembly
Avalonia.Base.dll

Defines a container.

public class ContainerQuery : StyleBase, INotifyPropertyChanged, IStyle, IResourceProvider, IResourceNode
Inheritance
ContainerQuery
Implements
Inherited Members
Extension Methods

Constructors

ContainerQuery()

Initializes a new instance of the ContainerQuery class.

public ContainerQuery()

ContainerQuery(Func<StyleQuery?, StyleQuery>, string?)

Initializes a new instance of the ContainerQuery class.

public ContainerQuery(Func<StyleQuery?, StyleQuery> query, string? containerName = null)

Parameters

query Func<StyleQuery, StyleQuery>

The container selector.

containerName string

Properties

Name

Gets or sets the container's name.

public string? Name { get; set; }

Property Value

string

Query

Gets or sets the container's query.

public StyleQuery? Query { get; set; }

Property Value

StyleQuery

Methods

ToString()

Returns a string representation of the container.

public override string ToString()

Returns

string

A string representation of the container.