Exemplo n.º 1
0
        public CollectionExplorerView()
        {
            InitializeComponent();

            SplitContainerSelectionController.Attach(splitContainer, splitOrientationSelector);

            DockSearch.IsVisibleChanged += (sender, args) =>
            {
                if (DockSearch.Visibility == Visibility.Visible)
                {
                    Dispatcher.Invoke(async() =>
                    {
                        await Task.Delay(100);
                        TextSearch.Focus();
                        TextSearch.SelectAll();
                    });
                }
            };

            CollectionListView.Loaded += CollectionListViewOnLoaded;
        }
        public DocumentPreviewView()
        {
            InitializeComponent();

            SplitContainerSelectionController.Attach(splitContainer, splitOrientationSelector);
        }