public MessagePage(ColumnMessages type) : this() { switch (type) { case ColumnMessages.Empty: //this.AddChild(new TextBlock() { Text = "Empty" }); break; case ColumnMessages.AccessDenied: //this.AddChild(new TextBlock() { Text = "Access Denied" }); break; default: break; } }
private void addMessagePage(ColumnMessages type) { var message = new MessagePage(type); stackMain.Children.Add(message); }