WPF Open file dialog embedded in a window
In my WPF application, on a button click, a modal window opens and several functionalities inside the window involve selecting a file. I do开发者_如何学Pythonn't want to open yet another window to select a file. Can I somehow embed a file browser within the existing window?
You can definetly create your own dialog. Take Microsoft Expression for example, where dialogs are all custom controls and styled to match expression dark theme.
Since you are associating with a file on the fly, you really only have 2 options to my knowledge. The first is to utilize the built in FileDialog from .NET to select the file. The second is to create a display/dialog/etc that recreates that functionality using System.IO.Directory and some display elements.
精彩评论