public void addUserControl(String page,MyUserControl userControl) { if (!listOfUserControl.Keys.Contains(page)) { List<MyUserControl> list = new List<MyUserControl>(); listOfUserControl.Add(page, list); } listOfUserControl[page].Add(userControl); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/FstnUserControl;component/FormMultiVoidElement.xaml", System.UriKind.Relative)); this.userControl = ((FstnCommon.MyUserControl)(this.FindName("userControl"))); this.ShowSB = ((System.Windows.Media.Animation.Storyboard)(this.FindName("ShowSB"))); this.CloseSB = ((System.Windows.Media.Animation.Storyboard)(this.FindName("CloseSB"))); this.LayoutRoot = ((System.Windows.Controls.StackPanel)(this.FindName("LayoutRoot"))); this.Label = ((System.Windows.Controls.TextBlock)(this.FindName("Label"))); this.SecondLine = ((System.Windows.Controls.StackPanel)(this.FindName("SecondLine"))); }