Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="type"></param>
        private void OnSwitchContent(ContentType type)
        {
            FrameWindow window = this.GetFrameWindow();

            if (window == null)
            {
                return;
            }

            switch (type)
            {
            case ContentType.Login:
                window.HideOverlay();
                window.ShowOverlay(new Views.LoginContent());
                break;

            case ContentType.Check:
                window.HideOverlay();
                window.ShowOverlay(new Views.CheckContent());
                break;

            case ContentType.Main:
                window.HideOverlay();
                window.MenuItems = new Wpf.Controls.MenuItemCollection()
                {
                    new Wpf.Controls.MenuItem()
                    {
                        Name   = "구독",
                        Source = new Uri("pack://application:,,,/Inse.Fiproject.Subscription;component/Views/SubscriptionFrame.xaml")
                    }
                };
                window.HomeUri     = new Uri("pack://application:,,,/Inse.Fiproject.Home;component/Views/HomeFrame.xaml");
                window.SettingsUri = new Uri("pack://application:,,,/Inse.Fiproject.Settings;component/Views/SettingsFrame.xaml");
                break;
            }
        }