Skip to content

VisibilityManager

Rico Suter edited this page Jul 8, 2015 · 3 revisions
  • Package: MyToolkit.Extended
  • Platform: WinRT, UWP

The VisibilityManager class provides attached properties to show and hide UI elements dependent on the screen size. This is useful to implement an app with support for the various screen sizes (landscape, portrait, snapped view) for Windows 8 apps.

Attached properties:

  • MinPageWidth
  • MaxPageWidth

Usage in XAML

The following button is only shown if the page width is greater or equal than 1024:

<Button ... UI:VisibilityManager.MinPageWidth="1024" />