using Amphora; using Annulus; using Azimuth; using Clave; using System; using System.Collections.Generic; using Prism; namespace Glass.Testbed.TestCases.Rendering { /// /// A guided tour whose spotlight the user can move or dismiss, so it needs a Setup to put itself back. /// public class SpotlightTestCase : TestCase { /// /// Sits below whatever it is a child of, which under a Spotlight is the highlighted control. /// private class CoachMark : Panel { public Vector Offset { get; set; } public override void Update(Duration elapsed, UpdateState state) { base.Update(elapsed, state); Bounds = Rect.FromPositionAndSize( new Vector(0, state.ParentCanvasRect.Height) + Offset, Bounds.Size); } } private static readonly Vector ButtonSize = MeasuredButtonSize(); private static Vector MeasuredButtonSize() { return UiPacksheetMaterials.Button.SolveBoundsFor( Widgets.ButtonLabel("Build: 0"), Constraints.TightWidth(190, Scalar.PositiveInfinity)); } private readonly List