Skip to main content

Width Method

Returns a query which matches the device width with a value.

Definition

Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static StyleQuery Width(
this StyleQuery? previous,
StyleQueryComparisonOperator operator,
double value
)

Parameters

  StyleQuery
The previous query.
  StyleQueryComparisonOperator
The operator to match the device width
  Double
The width to match

Return Value

StyleQuery
The query.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StyleQuery. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

StyleQueries Class
Avalonia.Styling Namespace