protected virtual void OnSelectionChanged(TreeViewSelectionChangedEventArgs e)
        {
            var handler = SelectionChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        public void SelectedChanged(object selectedItem)
        {
            string name;
            string path;

            if (selectedItem != null)
            {
                var selected = selectedItem as FolderViewModel;
                name = selected.Name;
                path = selected.Path;
            }
            else
            {
                name = string.Empty;
                path = string.Empty;
            }
            var args = new TreeViewSelectionChangedEventArgs()
            {
                Name     = name,
                FullPath = path
            };

            OnSelectionChanged(args);
        }