C# WPF Tutorial - ComboBox, ItemSource and Templates

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • This is dedicated content to the ComboBox in WPF. In this we learn how to use the ComboBox and the many essential properties it has. We cover creating ComboBox items in our XAML, Binding the ItemSource property, Creating ItemTemplates and also playing with the ItemContainerStyle. This, unlike other control episodes, is covered in great detail and below will be provided code if you wish to follow along. Please comment if you have any questions.
    Creating Items: 0:50
    Items Source: 4:15
    Templates: 8:00
    Cursor Style: 11:40
    Get this episodes code:
    www.toskerscorn...
    *Support me on Patreon
    www.patreon.co...
    ** Tip Jar **
    Paypal: toskerscorner@outlook.com
    BTC: 3DkvwvcQ8Vt2U84jdtEhNBx2Ueai3Xttmu
    ETH: 0xFf79A145e1ED6F538607Ec374968e605cbea758b
    BCH: qqpgrnzuhc5hav4e79m8nfhmugs46jtl0ujxcu0tj5
    LTC: MHXQmJA3hkwTPeArB9QPNkcLiHQx723yMb

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

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

    Great job on the video Tosker. Your approach is very intuitive and I learned a lot following your logic. Thanks.

  • @zohar127
    @zohar127 6 лет назад +1

    Thank you for these extremely informative videos. They've been a big help for me. Your presentation and format are perfect.

  • @rexbrown2752
    @rexbrown2752 7 лет назад

    This was an uncommonly Great video. The content covered more than I really needed but I am a relatively new to this world and it contained all the info I needed to actually make it work. Besides I may actually need the extra stuff when I get further down the track :>). I have looked over several other posts by other talking about how to do this but none came close to making it as easy to follow. Thanks a bunch!

  • @studstud5498
    @studstud5498 7 лет назад +1

    I like your teaching or explaining style. Please add more videos

    • @ToskersCorner
      @ToskersCorner  7 лет назад

      Glad to hear, I just finished school finals so I should have to time to pump out more videos!

  • @ivandrofly
    @ivandrofly 2 года назад

    11:28 thanks for the tip on combobox itens styling

  • @evedickson2496
    @evedickson2496 2 года назад

    Thank you.. really helpful and resolved an issue for me :-)

  • @CpcBob
    @CpcBob 7 лет назад +3

    Yes, Please do series on Styles. I am very new to Wpf/C#. Your video's are very helpfull.
    My MainWindow has many Button's to open Other windows and I've been trying to get App.xaml to globally control all the Windows Color Fg Bg, Textbox, Textblock, ComboBox etc. Can't figure out how to set a ComboBox Background & Foreground. ComboBoxItem's works fine. Also have same problem with DataGrid's.
    Much Thanks

  • @ajaysingh-zo7hc
    @ajaysingh-zo7hc 4 года назад

    Thanks It was useful

  • @patriciagusen1049
    @patriciagusen1049 5 лет назад

    Great tutorial, it helped me a lot!

  • @ianfinlayAustralia
    @ianfinlayAustralia 7 лет назад

    HI - Again great videos.
    Suggestion for new content:
    - best practice for display of error messages for text boxes constrained by length, value range or regex limits
    - multi-threading - semaphore passing between graphics and threads
    - Nlog integration
    - try catch handling
    - wpf as a service, taking to a wpf front end appl via tcp/ip
    - coming from winform mimics background, dragging an icon around a page (wth transparency)
    - config file to store settings XML serialization versus settings

    • @ToskersCorner
      @ToskersCorner  7 лет назад

      Will add these ideas to my notepad. My semester in school starts tomorrow, so I'll be sticking to simple small tutorials for the time being. Some of these fit that, so I will keep them in mind. :)

  • @hiromijorge400
    @hiromijorge400 3 года назад

    hi and thanks for the tutorial, but im curious about how can we get the value of the clicked combobox, thanks.

  • @VinuP2023
    @VinuP2023 6 лет назад

    Hello Sir,
    wound you please tell me How can I achieve Auto suggest kind of functionality in Combobox. I tried IsEditable=true, Readonly=false. If I type 'Jo' in combobox drop down, list of names containing Jo like Joe Rege, Regan Joe, Jordan have to appear from list of bound data. Thanks much

  • @Cemmet1995
    @Cemmet1995 Год назад

    Now i need to know how many ComboBoxes you can fit inside a ComboBoxItem 😅

  • @MdImran-qb3bm
    @MdImran-qb3bm 4 года назад

    can you please upload a video showing ...how to validate combobox using idataerrorinfo showing validation message under it..

  • @nillekaes543
    @nillekaes543 7 лет назад +1

    awesome tutorials

    • @ToskersCorner
      @ToskersCorner  7 лет назад +1

      Thanks, Ben. I hope you continue to enjoy them. :)

  • @theofficialamt6626
    @theofficialamt6626 3 года назад

    Can you make a video Visual Studio Windows Form on saving and loading multiple Comboboxes whatever the user selects in each combobox they can click a button to save to a specific location and have a load button to find the exact file and it will populate each combobox they changed.

  • @YBXtreminal
    @YBXtreminal 3 года назад

    instead of List, it much better to use ObservableCollection.

  • @safah202
    @safah202 5 лет назад

    Thanks for the video its well explained can you please make an video on binding a complex object list to a combo box...

  • @juanpablocastro2518
    @juanpablocastro2518 7 лет назад

    Great !

  • @MrApaHotel
    @MrApaHotel 7 лет назад

    Do you recommend any book about WPF?