Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
        public LayoutControl(string layoutID, FinishLayoutCallback finishLayout)
        {
            InitializeComponent();

            this._layoutID     = layoutID;
            this._finishLayout = finishLayout;


            Loaded   += LayoutControl_Loaded;
            Unloaded += LayoutControl_Unloaded;
        }