VB.NET: WPF Applications - Item Templates Part 1

preview_player
Показать описание
A new series introducing WPF Applications from scratch. I'll be covering the basics and doing some small projects along the way (because showing you how buttons work for 15 minutes is boring).

This video covers one of the more interesting things you can do with WPF and XAML - Item Templates! Come join us while we mash controls together to make up our new cusomtised ListBox!

This part contains the basics, how to add them and how to read the data. Part 2 to follow soon.

VIDEOS

Рекомендации по теме
Комментарии
Автор

Nick mate same issue here as well: 12:45

lstTest.SelectedItem.Checked is not showing up in my IDE (visual studio). ok so the compiler doesn't know what object it is, but even then it should compile and work it out at runtime (?) but it's not even compiling. any ideas?

CaptainAndrewWiggins
Автор

when I add a new event I don't get the NewEventHandler.  Instead I get a list of the events for the control.    Guessing one of my extensions is the reason.

Also... for the Button control, I don't get the Button_Cick.  I see ButtonBase_OnClick.

       <Button

Then.... I kept getting cannot resolve symbol "ButtonBase_OnClick" mainwindow errors until I closed and reopened the project.  Now .. it's happy ... my ButtonBase_OnClick sub is there.

davids
Автор

One more thing i thought to add: I didn't really understand what the itemTemplates then DataTemplate tags were looking it up now on google but just my thoughts.

CaptainAndrewWiggins
Автор

Hi!
What if we have 2 classes with similar properties how the compiler knows which one to choose? We can use "className.checked" as a binding ref?

christianrazvan