Skip to main content

TryGetFeature Method

Queries for an optional feature.

Definition

Namespace: Avalonia
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public Object? TryGetFeature(
Type featureType
)

Parameters

  Type
Feature type.

Return Value

Object

Implements

IOptionalFeatureProvider.TryGetFeature(Type)

Remarks

Features currently supported by TryGetFeature(Type):

  • IPlatformSettings
  • IActivatableApplicationLifetime

See Also

Reference

Application Class
Avalonia Namespace