private void UIBtnAddUser_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { UIMediaEdit item = new UIMediaEdit(); item.Type = this.TypeMedia; item.setLeft(0); item.setTop(90); item.Width = 1366; item.Height = 578; item.CloseEvent += Item_CloseEvent; this.UIRoot.Children.Add(item); }
private void Item_ViewInfoMediaEvent(object sender, Code.Media.MediaData e) { if (e != null) { UIMediaEdit item = new UIMediaEdit(); item.Type = e.Type; item.CloseEvent += Item_CloseEvent; item.setLeft(0); item.setTop(90); item.Width = 1366; item.Height = 578; item.Media = e; this.UIRoot.Children.Add(item); } }