public void Show(Grid parentElement, string category = null) { Category = category; Device.BeginInvokeOnMainThread(() => { parentElement.Children.Add(this); if (parentElement is IDialogViewHost dvh) { Grid.SetColumn(this, dvh.Column); Grid.SetRow(this, dvh.Row); Grid.SetColumnSpan(this, dvh.ColumnSpan); Grid.SetRowSpan(this, dvh.RowSpan); } }); AllOpened.Add(this); }
public void Show(Grid parentElement) { parentElement.Children.Add(this); AllOpened.Add(this); }