Hi,
Maybe using a CollectionControlButton. When clicked it will show a CollectionControlDialog. This dialog contains a CollectionControl. This CollectionControl contains a listBox for the Days and a PropertyGrid to show each properties of the Days. Properties of a Day could be the DayName and the Menu for that day :
Maybe using a CollectionControlButton. When clicked it will show a CollectionControlDialog. This dialog contains a CollectionControl. This CollectionControl contains a listBox for the Days and a PropertyGrid to show each properties of the Days. Properties of a Day could be the DayName and the Menu for that day :
<xctk:CollectionControlButton x:Name="_collectionControlButton" Content="Schedule" />
_collectionControlButton.ItemsSource = new List<Day>() { new Day( "Day1" ), new Day( "Day2" ), new Day( "Day3" ) };
_collectionControlButton.NewItemTypes = new List<Type>() { typeof( Day ) }; //to be able to add new days in the CollectionControl
public class Day
{
// default Ctor is needed to be able to add new Days in the CollectionControl
public Day()
{
}
public Day( string title )
{
this.DayTitle = title;
}
public string DayTitle
{
get;
set;
}
public string Menu
{
get;
set;
}
//To display the DayTitle in the ListBox of the CollectionControl
public override string ToString()
{
return this.DayTitle;
}
}