C# WPF Tutorial #10 - OpenFileDialog (File Picker)
HTML-код
- Опубликовано: 31 май 2024
- How to use the OpenFileDialog class to select file(s) from our file system, as well as a few tricks for filtering, dialog setup, multiselect, and more!
Happy Coding!
Chapters:
0:00 Setup
0:16 Opening the Dialog
1:05 Getting Dialog Results
2:33 Filter
3:31 Initial Directory
3:52 Title
4:08 Multiselect
5:05 Next Up - Наука
Perfect. Finally someone that gets to the point and to the relevant information rather than confusing everyone like in many other videos.
Thanks so much, glad it was helpful!
Thank you so much for these great tutorials, you explain them in a great way and straight to the point.
Thank you!!!
Hi Kampa 🙂
This tutorial is very easy to follow and understand the WPF.
I am halfway to finish this.
Thanks a lot 👍
Great to hear, thanks!!
Great tutorial!👍
Thank you!
Great series man, it helps a lot for learning this technology. Personaly i am more intrested on managing Data files. Hope it gets explained later on the series. Thank you
Thank you! I plan on continuing soon. What sort of data file management do you mean?
@@KampaPlays bindings, or connecting a database. I am trying to make sort of like a chat that stores data
You are the great Teacher. please make a video on MAUI Also. because xaml is totally new for me and for others
Thank you! I'll keep that in mind. I might also do Avalonia... several good options for cross platform out there!
I Love this course!
So glad!!
thanks you for great tutorials
Glad to help!
Nice tutorial. I have a question. How do I save fileName into some method or class? I want to call it after thet from another file. Thank you
Thanks!
There are several ways you could do that - you could:
1. make the string fileName a property in the class scope, so when the method finishes, it is stored there and you could use it as you like. (you could also create a get method or make it a public property to access from elsewhere)
2. use a viewmodel to separate this info from the GUI (see tutorial #23)
3. create a separate class to store the information and create an object of that class to pass around to where you need it (this would be a model, like class FileData with public string FileName)
hope this helps!!
Good tutorial, but please upload videos more often
Thank you, and thanks for watching! Between working full time, contracting, and family, I'm pretty much at my capacity doing one per week for now. Hopefully in the future I can put out more!
@@KampaPlays Let's hope, coz' these videos are great. I started learning these tutorials yesterday but sadly today it finished :(
Very nice! Thank you!!
@@epekfloyd6915 So do I 😂😂😂 Hoping more videos, cause this series are wonderful!
Thank you! Still at it!