我有一个TextBox名字textbox1和一个Button名字button1.当我点击button1我想浏览我的文件只搜索图像文件(类型jpg,png,bmp ...).当我选择一个图像文件并在文件对话框中单击"确定"时,我希望文件目录的写入方式textbox1.text如下:
TextBox
textbox1
Button
button1
textbox1.text
textbox1.Text = "C:\myfolder\myimage.jpg"
c# wpf textbox openfiledialog
c# ×1
openfiledialog ×1
textbox ×1
wpf ×1