AdaptiveControl

Inherits from Control.

Base class for controls that support adaptive behavior, adjusting appearance and behavior based on the target platform (e.g., Material design on Android/Windows/Linux, Cupertino design on iOS/macOS).

Properties

  • **adaptive** (bool | None)
  • * Type: bool | None * Description: Enables platform-specific rendering or inheritance of adaptiveness from parent controls. * Applicable Scenarios: 1. Platform-adaptive controls: Renders platform-specific implementation when True. 2. Container controls: Passes adaptive value down to children that don't explicitly define it. * Note: This class is a base; inheriting controls must interpret the adaptive flag for rendering.