Exemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TabGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.AddressGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.mainBreadBar = ((Framework.devControls.BreadcrumbBar)(target));
                return;

            case 4:
                this.mainBreadItem = ((Framework.devControls.BreadcrumbItem)(target));
                return;

            case 5:
                this.childBreadItem = ((Framework.devControls.BreadcrumbItem)(target));
                return;

            case 6:
                this.mainFrame = ((Framework.devControls.FrameEx)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 2
0
        private void mainFrame_Navigated(object sender, NavigationEventArgs e)
        {
            (e.Content as Page).Focus();
            FrameEx frame = sender as FrameEx;

            if (frame.Content is HomePage)
            {
                CreateCommonAreaPage(frame.Content as HomePage, e.ExtraData);
            }
            Page page = frame.Content as Page;

            page.Background = Brushes.Transparent;
        }