public override async Task OnInitializing() { await base.OnInitializing(); Height.BindTo(Root.Height); await Add(HeaderBar = new Stack(RepeatDirection.Horizontal).Id("HeaderBar")); Row = await Add(new Stack(RepeatDirection.Horizontal).Id("Row")); Row.Height.BindTo(Height, HeaderBar.Height, (x, y) => x - y); await AddPageContainer(); Shown.Handle(OnShown); }
public DevicePanel(View view) { View = view; Title = new TextView().Font(color: Colors.White, size: 28).X(10).Y(10).Absolute(); Description = new TextView().Font(color: Colors.White, size: 12).X(10).Y(42).Absolute(); EnvironmentSimulator.Start(); var actualHeight = Root.ActualHeight - 90; AccelerometerInfo = new TextView().Font(color: Colors.White, size: 15).X(10).Y(actualHeight - 60).Absolute(); GyroscopeInfo = new TextView().Font(color: Colors.White, size: 15).X(10).Y(actualHeight - 40).Absolute(); CompassInfo = new TextView().Font(color: Colors.White, size: 15).X(10).Y(actualHeight - 20).Absolute(); Shown.Handle(OnShown); ShowValues(); }
public Grid() : base() { Shown.Handle(OnShown); EmptyTemplateChanged.Handle(OnEmptyTemplateChanged); }
public AugmentedReality() { Height.Set(100.Percent()); Shown.Handle(OnShown); }