xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MasterDetailBinding"
xmlns:local="clr-namespace:WpfApplication1">
Companies:
(age: )
//File:Window.xaml.cs
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
namespace WpfApplication1 {
public class Skill {
string description;
public string Description {
get { return description; }
set { description = value; }
}
}
public class Skills : ObservableCollection { }
public class Employee {
string name;
public string Name {
get { return name; }
set { name = value; }
}
int age;
public int Age {
get { return age; }
set { age = value; }
}
Skills traits;
public Skills Skills {
get { return traits; }
set { traits = value; }
}
}
public class Team : ObservableCollection { }
public class Company {
string familyName;
public string CompanyName {
get { return familyName; }
set { familyName = value; }
}
Team members;
public Team Members {
get { return members; }
set { members = value; }
}
}
public class Companies : ObservableCollection { }
public partial class Window1 : Window {
public Window1() {
InitializeComponent();
}
}
}