public override UIElement RestoreData() { VideoPartUC VP = new VideoPartUC(Video); VP.InitializeComponent(); VP.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch; return VP; }
private void Video_Click(object sender, RoutedEventArgs e) { VideoNote VN = new VideoNote(); this.component.Add(VN); VideoPartUC vP = new VideoPartUC(); vP.InitializeComponent(); VN.vp = vP; vP.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch; FieldPanel.Children.Add(vP); }