WPF Controls with MVVM: ItemsControl

IAmTimCorey December 18, 2018
Video Thumbnail
IAmTimCorey Logo

IAmTimCorey

View Channel

About

My goal is to make your life easier, specifically when it comes to learning software development. I remember what it was like to not know even what questions to ask. In every video I do, I try to answer those questions. You will notice that I don't usually do quick videos. That's because I would rather help you understand rather than just padding my watch percentages. If you want more in-depth training, feel free to head over to my website (https://www.iamtimcorey.com) where I have courses dedicated to C#, SQL, and more.

Video Description

How do you put a list of objects on a WPF form dynamically so that if you add or remove an entry, the controls for it are added or removed? In this installment of the WPF Controls mini-series, we are going to look at one possible solution, which is to use the ItemsControl. This is one of those controls that is actually rather easy to use but is, at the same time, also confusing to a lot of people. Let's clear up that confusion. Full courses: https://www.iamtimcorey.com/ Source Code: https://www.iamtimcorey.com/downloads/?code=WPFItemsControl Patreon: https://patreon.com/IAmTimCorey Newsletter signup: https://signup.iamtimcorey.com/ 0:00 - Intro 1:42 - Demo app overview 3:25 - Creating ItemsControl 5:40 - Displaying data: ItemsTemplate 11:52 - Note on data layout 13:41 - Changing layout: ItemsPanelTemplate 17:12 - Changing data set: add and remove buttons 27:42 - Bugs to expect when changing data 30:12 - Summary and concluding remarks Thanks to Ralfs HBK for the chapter breakdown

You May Also Like

DIY Decor Essentials

AI-recommended products based on this video

Loading...
RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

(190)
$36.09
Prime
2K+ bought in past month
Loading...
Mibly [125 Count] 6 Inch Jumbo Multipurpose wooden Popsicle sticks, Wood Craft Supplies, Lollipop Lolly Sticks, Wooden Tongue Depressor, Wax Sticks for Waxing, Ice Cream Sticks

Mibly [125 Count] 6 Inch Jumbo Multipurpose wooden Popsicle sticks, Wood Craft Supplies, Lollipop Lolly Sticks, Wooden Tongue Depressor, Wax Sticks for Waxing, Ice Cream Sticks

(110)
$6.29
FREE delivery Thu, Sep 11 on your first order
800+ bought in past month
Loading...
Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

(23,669)
$10.38
FREE delivery Mon, Sep 15 on your first order
5K+ bought in past month
Loading...
2 Pack Outdoor Solar Firework Lights, 240 LED Solar Powered Hanging Lights Outdoor Waterproof Hanging Fairy Garden Lights Landscape Lights(Warm White)

2 Pack Outdoor Solar Firework Lights, 240 LED Solar Powered Hanging Lights Outdoor Waterproof Hanging Fairy Garden Lights Landscape Lights(Warm White)

(41)
$25.99
FREE delivery Sat, Jun 14 on your first order
300+ bought in past month
Loading...
SUNLU High Speed PLA Meta Filament, 4KG PLA 3D Printer Tougher Filament 1.75mm, Dimensional Accuracy +/- 0.02 mm, 4kg Total, 1kg per Spool, Pack of 4, Sky Blue+Mint Green+Sunny Orange+Lemon Yellow

SUNLU High Speed PLA Meta Filament, 4KG PLA 3D Printer Tougher Filament 1.75mm, Dimensional Accuracy +/- 0.02 mm, 4kg Total, 1kg per Spool, Pack of 4, Sky Blue+Mint Green+Sunny Orange+Lemon Yellow

(2,468)
$62.99
Loading...
12 Pack Trimmer Spool Line for Worx, WA0010 Edger Spools Replacement for Worx, 0.065 inch Trimmer Line Refills for Worx, Compatible with Worx String Trimmers(10 Grass Trimmer Line, 2 Trimmer Cap)

12 Pack Trimmer Spool Line for Worx, WA0010 Edger Spools Replacement for Worx, 0.065 inch Trimmer Line Refills for Worx, Compatible with Worx String Trimmers(10 Grass Trimmer Line, 2 Trimmer Cap)

(63)
$13.99$11.90
FREE delivery Wed, Aug 20 on your first order
400+ bought in past month
Loading...
Viabrico 10 Pack AF-100 Replacement Spool Line for Black+Decker - 0.065" Weed Eater String Trimmer Line Spool, 30ft Autofeed Weed Wacker Spool Refill for Black+Decker(8 Spool,2 Cap,2 Spring)

Viabrico 10 Pack AF-100 Replacement Spool Line for Black+Decker - 0.065" Weed Eater String Trimmer Line Spool, 30ft Autofeed Weed Wacker Spool Refill for Black+Decker(8 Spool,2 Cap,2 Spring)

(142)
$16.99
FREE delivery Wed, Aug 20 on your first order
500+ bought in past month