public override void OnApplyTemplate()
        {
            fileBrowser             = PathType == PathType.File ? (PathBrowser) new FileBrowser() : new FolderBrowser();
            fileBrowser.TextChange += (s, e) => Path = e.Text;
            ConfigContent ??= fileBrowser;

            if (Path != null)
            {
                pathChanges.OnNext(Path);
            }

            base.OnApplyTemplate();
        }
        public override void OnApplyTemplate()
        {
            var stackPanel = new StackPanel();

            this.BrowseSource                  = SourceType == PathType.File? (PathBrowser) new FileBrowser():new FolderBrowser();
            this.BrowseDestination             = DestinationType == PathType.File ? (PathBrowser) new FileBrowser() : new FolderBrowser();
            this.BrowseSource.TextChange      += (s, e) => sourceChanges.OnNext(e.Text);
            this.BrowseDestination.TextChange += (s, e) => destinationChanges.OnNext(e.Text);

            this.ConfigContent ??= stackPanel;

            if (Source != null)
            {
                sourceChanges.OnNext(Source);
            }

            if (Destination != null)
            {
                destinationChanges.OnNext(Destination);
            }


            base.OnApplyTemplate();
        }