/// <summary> /// Prepare Layout and Add layout /// </summary> /// <param name="layoutID"></param> private void PrepareLayout(string layoutID) { ShowDefaultSplashScreen(); //set delecat finishLayout = new FinishLayoutCallback(CompleteLayout); //layout panel layout = new LayoutControl(layoutID, finishLayout); this.LayoutRoot.Children.Add(layout); }
public LayoutControl(string layoutID, FinishLayoutCallback finishLayout) { InitializeComponent(); this._layoutID = layoutID; this._finishLayout = finishLayout; Loaded += LayoutControl_Loaded; Unloaded += LayoutControl_Unloaded; }