This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var parents = new List<Parent>() | |
{ | |
new Parent() | |
{ | |
ParentProperty = "Parent1", | |
Children = new List<Child>() | |
{ | |
new Child() { ChildProperty1 = "Child1a", ChildProperty2 = "Child1b" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Style x:Key="MainPageTabControlStyle" TargetType="TabControl"> | |
<Setter Property="Template"> | |
<Setter.Value> | |
<ControlTemplate TargetType="TabControl"> | |
<Border BorderBrush="#CCCCCC" BorderThickness="1,1,0,0"> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="40" /> | |
<RowDefinition /> | |
</Grid.RowDefinitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Internal data | |
[StructLayout(LayoutKind.Sequential)] | |
internal struct SHFILEINFO | |
{ | |
public IntPtr hIcon; | |
public IntPtr iIcon; | |
public uint dwAttributes; | |
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)] | |
public string szDisplayName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ParentVM | |
{ | |
public List<ChildVM> AllTheObjects { get; set; } | |
public ICommand AddNewChildCommand { get; set; } | |
public ParentVM() | |
{ | |
AllTheObjects = new List<ChildVM>(); | |