/// <summary> /// Creates the directory path control. /// </summary> /// <param name="property"> /// The property. /// </param> /// <returns> /// The control. /// </returns> protected FrameworkElement CreateDirectoryPathControl(PropertyItem property) { var c = new DirectoryPicker { FolderBrowserDialogService = this.FolderBrowserDialogService }; c.SetBinding(DirectoryPicker.DirectoryProperty, property.CreateBinding()); return(c); }
/// <summary> /// Creates the directory path control. /// </summary> /// <param name="property">The property.</param> /// <returns> /// The control. /// </returns> protected virtual FrameworkElement CreateDirectoryPathControl(PropertyItem property) { var c = new DirectoryPicker { FolderBrowserDialogService = this.FolderBrowserDialogService }; var trigger = property.AutoUpdateText ? UpdateSourceTrigger.PropertyChanged : UpdateSourceTrigger.Default; c.SetBinding(DirectoryPicker.DirectoryProperty, property.CreateBinding(trigger)); return(c); }
/// <summary> /// Creates the directory path control. /// </summary> /// <param name="property">The property.</param> /// <returns> /// The control. /// </returns> protected virtual FrameworkElement CreateDirectoryPathControl(PropertyItem property) { var c = new DirectoryPicker { FolderBrowserDialogService = this.FolderBrowserDialogService }; var trigger = property.AutoUpdateText ? UpdateSourceTrigger.PropertyChanged : UpdateSourceTrigger.Default; c.SetBinding(DirectoryPicker.DirectoryProperty, property.CreateBinding(trigger)); return c; }
/// <summary> /// Creates the directory path control. /// </summary> /// <param name="property"> /// The property. /// </param> /// <returns> /// The control. /// </returns> protected FrameworkElement CreateDirectoryPathControl(PropertyItem property) { var c = new DirectoryPicker { FolderBrowserDialogService = this.FolderBrowserDialogService }; c.SetBinding(DirectoryPicker.DirectoryProperty, property.CreateBinding()); return c; }