public TopBar() { _lBtn = new MyButton { Text = "<", HorizontalOptions = LayoutOptions.Start, VerticalOptions = LayoutOptions.FillAndExpand, IsVisible = false, IsEnabled = false }; _rBtn = new MyButton { Text = ">", HorizontalOptions = LayoutOptions.End, VerticalOptions = LayoutOptions.FillAndExpand, IsVisible = false, IsEnabled = false }; var denyAction = new DenyAction<object, EventArgs>(NavigationEvent, 1000); _lBtn.Clicked += denyAction.OnEvent; _rBtn.Clicked += denyAction.OnEvent; Content = new MyStackLayout { Orientation = StackOrientation.Horizontal, HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.Start, Children = { _lBtn, new MyBoxView(), _rBtn } }; HorizontalOptions = Content.HorizontalOptions; VerticalOptions = Content.VerticalOptions; }
public DenyActionAckMessage(int result, DenyAction action, DenyDto deny) { Result = result; Action = action; Deny = deny; }