spiegelp / MaterialDesignExtensions

Material Design Extensions is based on Material Design in XAML Toolkit to provide additional controls and features for WPF apps
https://spiegelp.github.io/MaterialDesignExtensions/
MIT License
754 stars 122 forks source link

Path field #72

Closed maxmontgmx closed 4 years ago

maxmontgmx commented 4 years ago

Hi all,

Does it exist a textbox component for path (directory or file) edition? I imagine a textbox with a button which open a file browser... Thanks

spiegelp commented 4 years ago

@maxmontgmx There is not such a control. I will consider it for a future release.

spiegelp commented 4 years ago

@maxmontgmx You're looking for a control like this?

TextBoxOpenDirectory1

A click on the folder icon opens an according dialog for selecting a directory or file. I just implemented a version for selecting a directory. Versions for opening and saving a file will follow.

spiegelp commented 4 years ago

@maxmontgmx The latest pre-release v3.1.0-a03 features the controls TextBoxOpenDirectory, TextBoxOpenFile and TextBoxSaveFile.

spiegelp commented 4 years ago

@maxmontgmx Get the latest final release v3.1.0.

maxmontgmx commented 4 years ago

@spiegelp Thanks for your support. I wanted to add Style "MaterialDesignFloatingHintTextBox" but it's not working. This is my code :

How can I do? Thanks for your help

spiegelp commented 4 years ago

@maxmontgmx I just added the TextBoxFileSystemPath.TextBoxStyle property to enable a custom style for the TextBox. Please have a look at TextBoxFileSystemPathsControl.xaml line 39 for an code example.