Ejemplo n.º 1
0
        private void OnShowControlWindow(string controlName)
        {
            this.Effect = new BlurEffect();

            switch (controlName)
            {
            case "ContactsTree":
                var contactsTreeWindow = new ContactsTreeWindow();
                contactsTreeWindow.ShowDialog();
                break;

            case "ExpertPanel":
                var expertPanelWindow = new ExpertPanelWindow();
                expertPanelWindow.ShowDialog();
                break;

            case "ExpertPanel2":
                var expertPanelWindow2 = new ExpertPanelWindow2();
                expertPanelWindow2.ShowDialog();
                break;

            case "Timer":
                var timerWindow = new TimerWindow();
                timerWindow.ShowDialog();
                break;

            case "MusicPlayer":
                var musicPlayerWindow = new MusicPlayerWindow();
                musicPlayerWindow.ShowDialog();
                break;

            case "MediaPlayer":
                var mediaPlayerWindow = new MediaPlayerWindow();
                mediaPlayerWindow.ShowDialog();
                break;

            case "PeopleResourcePanel":
                var peopleResourcePanelWindow = new PeopleResourcePanelWindow();
                peopleResourcePanelWindow.ShowDialog();
                break;

            case "NotifyMsgPresenter":
                var notifyMsgPresenterWindow = new NotifyMsgPresenterWindow();
                notifyMsgPresenterWindow.ShowDialog();
                break;

            case "MasterDetailDataGrid":
                var masterDetailDataGridWindow = new MasterDetailDataGridWindow();
                masterDetailDataGridWindow.ShowDialog();
                break;

            case "FlexDataGrid":
                var flexDataGridWindow = new FlexDataGridWindow();
                flexDataGridWindow.ShowDialog();
                break;

            case "DataGridDetailListWindow":
                var dataGridDetailListWindow = new DataGridDetailListWindow();
                dataGridDetailListWindow.ShowDialog();
                break;

            case "BindingDemoWindow":
                var bindingDemoWindow = new BindingDemoWindow();
                bindingDemoWindow.ShowDialog();
                break;

            case "SwapImageDemoWindow":
                var swapImageDemoWindow = new SwapImageDemoWindow();
                swapImageDemoWindow.ShowDialog();
                break;

            case "CircularLoadingWindow":
                var circularLoadingWindow = new CircularLoadingWindow();
                circularLoadingWindow.ShowDialog();
                break;

            case "LoadingControlWindow":
                var loadingControlWindow = new LoadingControl.LoadingControlWindow();
                loadingControlWindow.ShowDialog();
                break;

            case "CalloutBorderStyleWindow":
                var calloutBorderStyleWindow = new CalloutBorderStyleWindow();
                calloutBorderStyleWindow.ShowDialog();
                break;

            case "MeasureOverrideAndArrangeOverrideWindow":
                var measureOverrideAndArrangeOverrideWindow = new MeasureOverrideAndArrangeOverrideWindow();
                measureOverrideAndArrangeOverrideWindow.ShowDialog();
                break;

            case "DrawingDemoWindow":
                var drawingDemoWindow = new DrawingDemoWindow();
                drawingDemoWindow.ShowDialog();
                break;

            case "WaterMarkDemoWindow":
                var waterMarkDemoWindow = new WaterMarkDemoWindow();
                waterMarkDemoWindow.ShowDialog();
                break;

            case "MultiUiThreadingDemoWindow":
                var mutliUiThreadingDemoWindow = new MultiUiThreadingDemoWindow();
                mutliUiThreadingDemoWindow.ShowDialog();
                break;

            case "CustomPixelShaderDemo":
                var customPixelShaderDemo = new CustomPixelShaderDemo.CustomPixelShaderDemo();
                customPixelShaderDemo.ShowDialog();
                break;

            case "GifShowDemoWindow":
                var gifShowDemoWindow = new GifShowDemoWindow();
                gifShowDemoWindow.ShowDialog();
                break;

            case "NewCallAnimationWindow":
                var newCallAnimationWindow = new NewCallAnimationWindow();
                newCallAnimationWindow.ShowDialog();
                break;

            case "GenerateBitmapDemo":
                var generateBitmapDemo = new GenerateBitmapDemo.GenerateBitmapDemo();
                generateBitmapDemo.ShowDialog();
                break;

            case "FontFamilyDemoWindow":
                var fontFamilyDemoWindow = new FontFamilyDemoWindow();
                fontFamilyDemoWindow.ShowDialog();
                break;

            case "FoucsDemoWindow":
                var foucsDemoWindow = new FoucsDemoWindow();
                foucsDemoWindow.ShowDialog();
                break;

            case "KeyBoardInputWindow":
                var keyBoardInputWindow = new KeyBoardInputWindow();
                keyBoardInputWindow.ShowDialog();
                break;

            case "EllipsisLoadingDemoWindow":
                var ellipsisLoadingDemoWindow = new EllipsisLoadingDemoWindow();
                ellipsisLoadingDemoWindow.ShowDialog();
                break;

            case "ImagePerformanceWindow":
                var imagePerformanceWindow = new ImagePerformanceWindow();
                imagePerformanceWindow.ShowDialog();
                break;

            case "CollectionViewWindow":
                var collectionViewWindow = new CollectionViewWindow();
                collectionViewWindow.ShowDialog();
                break;

            case "MultiSceenDemoWindow":
                var multiSceenDemoWindow = new MultiSceenDemoWindow();
                multiSceenDemoWindow.ShowDialog();
                break;

            case "ResourceDictionaryCodeBehindWindow":
                var resourceDictionaryCodeBehindWindow = new ResourceDictionaryCodeBehindWindow();
                resourceDictionaryCodeBehindWindow.ShowDialog();
                break;

            case "TreeViewDemoWindow":
                var treeViewDemoWindow = new TreeViewDemoWindow();
                treeViewDemoWindow.ShowDialog();
                break;

            case "GroupExpanderWindow":
                var groupExpanderWindow = new GroupExpanderWindow();
                groupExpanderWindow.ShowDialog();
                break;

            case "ShortCutDemoWindow":
                var shortCutDemoWindow = new ShortCutDemoWindow();
                shortCutDemoWindow.ShowDialog();
                break;

            case "ScreenDragMainWindow":
                var screenDragMainWindow = new ScreenDragMainWindow();
                screenDragMainWindow.ShowDialog();
                break;

            case "AnimationPerformanceWindow":
                var animationPerformanceWindow = new AnimationPerformanceWindow();
                animationPerformanceWindow.ShowDialog();
                break;

            case "FluidLayoutDemoWindow":
                var fluidLayoutDemoWindow = new FluidLayoutDemoWindow();
                fluidLayoutDemoWindow.ShowDialog();
                break;

            case "DragableTabControlDemo":
                var dragableTabControlDemo = new DragableTabControlDemo.DragableTabControlDemo();
                dragableTabControlDemo.ShowDialog();
                break;

            case "DragableListBoxDemo":
                var dragableListBoxDemo = new DragableListBoxDemo.DragableListBoxDemo();
                dragableListBoxDemo.ShowDialog();
                break;

            case "CustomWindowDemo":
                var customWindowDemo = new CustomWindowDemo();
                customWindowDemo.ShowDialog();
                break;

            case "AdornerControlWindow":
                var adornerControlWindow = new AdornerControlWindow();
                adornerControlWindow.ShowDialog();
                break;

            case "ItemsControlWithTimelineWindow":
                var itemsControlWithTimelineWindow = new ItemsControlWithTimelineWindow();
                itemsControlWithTimelineWindow.ShowDialog();
                break;

            case "IsSynchronizedWithCurrentItemWindow":
                var isSynchronizedWithCurrentItemWindow = new IsSynchronizedWithCurrentItemWindow();
                isSynchronizedWithCurrentItemWindow.ShowDialog();
                break;

            case "ColorfulTextBlockWindow":
                var colorfulTextBlockWindow = new ColorfulTextBlockWindow();
                colorfulTextBlockWindow.ShowDialog();
                break;
            }

            this.Effect = null;
        }
Ejemplo n.º 2
0
        private void OnShowControlWindow(string controlName)
        {
            this.Effect = new BlurEffect();

            switch (controlName)
            {
            case "ContactsTree":
                var contactsTreeWindow = new ContactsTreeWindow();
                contactsTreeWindow.ShowDialog();
                break;

            case "ExpertPanel":
                var expertPanelWindow = new ExpertPanelWindow();
                expertPanelWindow.ShowDialog();
                break;

            case "ExpertPanel2":
                var expertPanelWindow2 = new ExpertPanelWindow2();
                expertPanelWindow2.ShowDialog();
                break;

            case "Timer":
                var timerWindow = new TimerWindow();
                timerWindow.ShowDialog();
                break;

            case "MusicPlayer":
                var musicPlayerWindow = new MusicPlayerWindow();
                musicPlayerWindow.ShowDialog();
                break;

            case "PeopleResourcePanel":
                var peopleResourcePanelWindow = new PeopleResourcePanelWindow();
                peopleResourcePanelWindow.ShowDialog();
                break;

            case "NotifyMsgPresenter":
                var notifyMsgPresenterWindow = new NotifyMsgPresenterWindow();
                notifyMsgPresenterWindow.ShowDialog();
                break;

            case "MasterDetailDataGrid":
                var masterDetailDataGridWindow = new MasterDetailDataGridWindow();
                masterDetailDataGridWindow.ShowDialog();
                break;

            case "FlexDataGrid":
                var flexDataGridWindow = new FlexDataGridWindow();
                flexDataGridWindow.ShowDialog();
                break;

            case "DataGridDetailListWindow":
                var dataGridDetailListWindow = new DataGridDetailListWindow();
                dataGridDetailListWindow.ShowDialog();
                break;

            case "BindingDemoWindow":
                var bindingDemoWindow = new BindingDemoWindow();
                bindingDemoWindow.ShowDialog();
                break;

            case "SwapImageDemoWindow":
                var swapImageDemoWindow = new SwapImageDemoWindow();
                swapImageDemoWindow.ShowDialog();
                break;

            case "CircularLoadingWindow":
                var circularLoadingWindow = new CircularLoadingWindow();
                circularLoadingWindow.ShowDialog();
                break;

            case "CalloutBorderStyleWindow":
                var calloutBorderStyleWindow = new CalloutBorderStyleWindow();
                calloutBorderStyleWindow.ShowDialog();
                break;

            case "MeasureOverrideAndArrangeOverrideWindow":
                var measureOverrideAndArrangeOverrideWindow = new MeasureOverrideAndArrangeOverrideWindow();
                measureOverrideAndArrangeOverrideWindow.ShowDialog();
                break;

            case "DrawingDemoWindow":
                var drawingDemoWindow = new DrawingDemoWindow();
                drawingDemoWindow.ShowDialog();
                break;

            case "WaterMarkDemoWindow":
                var waterMarkDemoWindow = new WaterMarkDemoWindow();
                waterMarkDemoWindow.ShowDialog();
                break;

            case "MultiUiThreadingDemoWindow":
                var mutliUiThreadingDemoWindow = new MultiUiThreadingDemoWindow();
                mutliUiThreadingDemoWindow.ShowDialog();
                break;

            case "CustomPixelShaderDemo":
                var customPixelShaderDemo = new CustomPixelShaderDemo.CustomPixelShaderDemo();
                customPixelShaderDemo.ShowDialog();
                break;

            case "GifShowDemoWindow":
                var gifShowDemoWindow = new GifShowDemoWindow();
                gifShowDemoWindow.ShowDialog();
                break;

            case "NewCallAnimationWindow":
                var newCallAnimationWindow = new NewCallAnimationWindow();
                newCallAnimationWindow.ShowDialog();
                break;

            case "GenerateBitmapDemo":
                var generateBitmapDemo = new GenerateBitmapDemo.GenerateBitmapDemo();
                generateBitmapDemo.ShowDialog();
                break;

            case "FontFamilyDemoWindow":
                var fontFamilyDemoWindow = new FontFamilyDemoWindow();
                fontFamilyDemoWindow.ShowDialog();
                break;

            case "FoucsDemoWindow":
                var foucsDemoWindow = new FoucsDemoWindow();
                foucsDemoWindow.ShowDialog();
                break;

            case "KeyBoardInputWindow":
                var keyBoardInputWindow = new KeyBoardInputWindow();
                keyBoardInputWindow.ShowDialog();
                break;

            case "EllipsisLoadingDemoWindow":
                var ellipsisLoadingDemoWindow = new EllipsisLoadingDemoWindow();
                ellipsisLoadingDemoWindow.ShowDialog();
                break;

            case "ImagePerformanceWindow":
                var imagePerformanceWindow = new ImagePerformanceWindow();
                imagePerformanceWindow.ShowDialog();
                break;

            case "CollectionViewWindow":
                var collectionViewWindow = new CollectionViewWindow();
                collectionViewWindow.ShowDialog();
                break;

            case "MultiSceenDemoWindow":
                var multiSceenDemoWindow = new MultiSceenDemoWindow();
                multiSceenDemoWindow.ShowDialog();
                break;
            }

            this.Effect = null;
        }