Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Control to schedule

$
0
0
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 :
<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;
    }
}

Viewing all articles
Browse latest Browse all 2157

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>