Exemplo n.º 1
0
        /// <summary>
        /// Costructor Declaration
        /// </summary>
        public WorkspaceListView()
        {
            InitializeComponent();
            InitializeCommands();

            Vm.NewFolderString = new List <string>();
            Vm.EventBroker.VisibleListOrDetails += EventBroker_VisibleListOrDetails;

            Loaded += (s, e) =>
            {
                DataContext          = Vm;
                ListViewControl.View = ListViewControl.FindResource("DetailView") as ViewBase;  // Initially loads the ListView in DetailViewMode.
                ((WorkspaceListViewViewModel)DataContext).ListViewControl = ListViewControl;
            };
        }