简体   繁体   中英

How to add file path to custom control through [...] button of properties in design time in WPF

I am trying to develop a wpf custom control component, where in i need to browse files from my local machine through property and need to select the file at design time. To do this we would need a button (...) and textbox to to hold the file path. File browsing and selection is done at design time and in run time the file should be displayed on the WPF form. I am able to achieve this Winforms (using UItype Editor ) however i am not able to do this in WPF as there is UItypeeditor is not available in wpf. I [1]: https://i.stack.imgur.com/Lam5a.png attached One Sample Property Image, Expected output in design time of Custom control properties for your quick reference.

I am a new bee in WPF, request you to help with a sample code or link. Thank you for helping me in Advance.

请检查可能会帮助你这个..

Hi Please have a look at this link . it has a sample project with implementation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM