vijaii
vijaii

Reputation:

How to create a FileUpload control in WPF?

How do I create a Fileupload control in WPF?

I want to upload jpg image files.

Upvotes: 2

Views: 2927

Answers (1)

bendewey
bendewey

Reputation: 40245

It depends on what you're uploading to. Most likely you'll want to build some sort of service class that takes care of copying the file to the new location.

Then in your XAML you'll have to create a TextBox and a Button to show a dialog.

Although, you're design options are greatly increased in XAML, so you're not locked into the TextBox - Browse button. Update your question with more details and I can try to elaborate.

Upvotes: 2

Related Questions