Exemple #1
0
        public void Show()
        {
            if (_shelf == null)
            {
                ClipboardComponent clipboardComponent = new ClipboardComponent(Clipboard.ClipboardSiteToolbar, Clipboard.ClipboardSiteMenu, Clipboard.Default, false);

                _shelf = ApplicationComponent.LaunchAsShelf(
                    this.Context.DesktopWindow,
                    clipboardComponent,
                    SR.TitleClipboard,
                    "¼ôÇаå",
                    ShelfDisplayHint.DockLeft | ShelfDisplayHint.DockAutoHide);

                _shelf.Closed += OnShelfClosed;
            }
            else
            {
                _shelf.Show();
            }
        }
        public void Show()
        {
            if (_shelf == null)
            {
                ClipboardComponent clipboardComponent = new ClipboardComponent();

                _shelf = ApplicationComponent.LaunchAsShelf(
                    this.Context.DesktopWindow,
                    clipboardComponent,
                    SR.TitleClipboard,
                    "Clipboard",
                    ShelfDisplayHint.DockLeft | ShelfDisplayHint.DockAutoHide);

                _shelf.Closed += OnShelfClosed;
            }
            else
            {
                _shelf.Show();
            }
        }