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
Great job on the video Tosker. Your approach is very intuitive and I learned a lot following your logic. Thanks.
Thank you for these extremely informative videos. They've been a big help for me. Your presentation and format are perfect.
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!
I like your teaching or explaining style. Please add more videos
Glad to hear, I just finished school finals so I should have to time to pump out more videos!
11:28 thanks for the tip on combobox itens styling
Thank you.. really helpful and resolved an issue for me :-)
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
Thanks It was useful
Great tutorial, it helped me a lot!
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
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. :)
hi and thanks for the tutorial, but im curious about how can we get the value of the clicked combobox, thanks.
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
Now i need to know how many ComboBoxes you can fit inside a ComboBoxItem 😅
can you please upload a video showing ...how to validate combobox using idataerrorinfo showing validation message under it..
awesome tutorials
Thanks, Ben. I hope you continue to enjoy them. :)
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.
instead of List, it much better to use ObservableCollection.
Thanks for the video its well explained can you please make an video on binding a complex object list to a combo box...
Great !
Do you recommend any book about WPF?