protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);
            ContentBrowserVM vm = DataContext as ContentBrowserVM;

            vm.Close();
        }
        void SetupDataContext()
        {
            DispatcherHelper.UIDispatcher = Dispatcher;

            ContentBrowserVM vm = new ContentBrowserVM
            {
                IconWidth = Properties.Settings.Default.ContentBrowserIconSize,

                FilterFiles   = Properties.Settings.Default.ContentBrowserFilterFiles,
                FilterFolders = Properties.Settings.Default.ContentBrowserFilterFolders,

                FilterMA  = Properties.Settings.Default.ContentBrowserFilterMA,
                FilterMAX = Properties.Settings.Default.ContentBrowserFilterMAX,
                FilterFBX = Properties.Settings.Default.ContentBrowserFilterFBX,

                FilterAllImageFiles = Properties.Settings.Default.ContentBrowserFilterAllImages,
                FilterPSD           = Properties.Settings.Default.ContentBrowserFilterPSD,
                FilterTGA           = Properties.Settings.Default.ContentBrowserFilterTGA,
                FilterPNG           = Properties.Settings.Default.ContentBrowserFilterPNG,
                FilterJPG           = Properties.Settings.Default.ContentBrowserFilterJPG,
                UIViewState         = (ViewState)Properties.Settings.Default.ContentBrowserViewState
            };

            DataContext = vm;
            if (vm.CloseAction == null)
            {
                vm.CloseAction = new Action(Close);
            }
        }