2

I am stuck in how to use DataTamplete in WPF, someone knows some tutorial or has a colection of turorials that teach how to use it??

I'm using MVVM Pattern, so if you know a tutorial in mvvm examples it will be better. ;)

Tks!

Marco BFV
  • 100
  • 2
  • 14
  • 1
    Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. – Gayot Fow Mar 27 '14 at 13:08
  • I see @GarryVass... But i'm searching for the most simplest way to use DataTamplete and how far can i go with it. i know how MVVM can be polemic lol – Marco BFV Mar 27 '14 at 13:50
  • The best way is to take a working example of something that's transparent and to see how it fits together. The .NET DriveInfo and/or FileInfo classes make excellent examples... – Gayot Fow Mar 27 '14 at 18:47

2 Answers2

3

Googling "wpf datatempalte tutorial" give following links. i would recommend #2

  1. Data Templating Overview - MSDN - Microsoft
  2. WPF Tutorial | Data Templates
  3. A Guided Tour of WPF – Part 4 (Data templates and triggers...
Michal Ciechan
  • 13,492
  • 11
  • 76
  • 118
  • Nice Examples! I'm trying now [Load multiple UserControls on WPF window](http://stackoverflow.com/questions/15367115/load-multiple-usercontrols-on-wpf-window) – Marco BFV Mar 27 '14 at 14:49
  • Sad how this question was the third Google result for me. – Deantwo Aug 10 '17 at 11:42
1

MSDN explains it well MSDN Data Templating Overview

Things to watch out for are that your itemsource is set correctly and that the properties you are binding to are public.

kenjara
  • 402
  • 10
  • 18