Vixen
02b45cc4
csharp
public sealed class Drawer

A panel that slides in from an edge.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

A dialog attached to a side rather than centred, and the difference that matters is not the animation: a drawer is for a secondary surface — a filter panel, a details pane — that the user may want to leave open while they work, so light dismiss is on here and off on a dialog.

Fields and properties (6)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • public UiElement Backdrop

    The sheet behind it.

  • public UiElement Surface

    The panel itself.

  • public UiElement Body

    Where the content goes.

  • public DrawerSide Side
  • public static readonly UiPropertyKey SideProperty

    Identity for Side.

Methods (2)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • public void ClearSide()

    Unsets Side, so it takes its default or its ancestor's value again.

Used by (2)

  • OverlayInteractionTestsVixen.Ui.Controls.Tests
  • SurfaceTestsVixen.Ui.Controls.Tests