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
  • НаукаНаука

Комментарии • 25

  • @andrehufschmid
    @andrehufschmid Год назад +12

    Perfect. Finally someone that gets to the point and to the relevant information rather than confusing everyone like in many other videos.

    • @KampaPlays
      @KampaPlays  Год назад +5

      Thanks so much, glad it was helpful!

  • @mahdihoumani5859
    @mahdihoumani5859 10 месяцев назад +5

    Thank you so much for these great tutorials, you explain them in a great way and straight to the point.

  • @rahulgoutham7102
    @rahulgoutham7102 8 месяцев назад +2

    Hi Kampa 🙂
    This tutorial is very easy to follow and understand the WPF.
    I am halfway to finish this.
    Thanks a lot 👍

    • @KampaPlays
      @KampaPlays  8 месяцев назад

      Great to hear, thanks!!

  • @DavidCoded
    @DavidCoded 2 месяца назад +1

    Great tutorial!👍

  • @elasdebastos235
    @elasdebastos235 2 месяца назад +1

    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

    • @KampaPlays
      @KampaPlays  Месяц назад +1

      Thank you! I plan on continuing soon. What sort of data file management do you mean?

    • @elasdebastos235
      @elasdebastos235 Месяц назад

      @@KampaPlays bindings, or connecting a database. I am trying to make sort of like a chat that stores data

  • @vikasmalik9873
    @vikasmalik9873 7 месяцев назад +2

    You are the great Teacher. please make a video on MAUI Also. because xaml is totally new for me and for others

    • @KampaPlays
      @KampaPlays  6 месяцев назад +2

      Thank you! I'll keep that in mind. I might also do Avalonia... several good options for cross platform out there!

  • @zobun
    @zobun 9 месяцев назад +2

    I Love this course!

  • @Nbveh01
    @Nbveh01 5 месяцев назад +1

    thanks you for great tutorials

  • @TheFirestorMovie
    @TheFirestorMovie 5 месяцев назад +1

    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

    • @KampaPlays
      @KampaPlays  5 месяцев назад

      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!!

  • @epekfloyd6915
    @epekfloyd6915 Год назад +5

    Good tutorial, but please upload videos more often

    • @KampaPlays
      @KampaPlays  Год назад +6

      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!

    • @epekfloyd6915
      @epekfloyd6915 Год назад +5

      @@KampaPlays Let's hope, coz' these videos are great. I started learning these tutorials yesterday but sadly today it finished :(

    • @KampaPlays
      @KampaPlays  Год назад +3

      Very nice! Thank you!!

    • @wookyumkim4669
      @wookyumkim4669 Год назад +4

      @@epekfloyd6915 So do I 😂😂😂 Hoping more videos, cause this series are wonderful!

    • @KampaPlays
      @KampaPlays  Год назад +3

      Thank you! Still at it!