示例#1
0
 public ControlModel(string title, Type content, string xaml = "", string code = "", string tags = "")
 {
     Title       = title;
     TitlePinyin = StringExtend.GetPinyin(title);
     Content     = content;
     Tags        = tags;
     XAML        = xaml;
     Code        = code;
 }
示例#2
0
 public ControlModel(string title, Type content, DemoType type = DemoType.Demo, ControlState state = ControlState.Nor, string xaml = "", string code = "", string tags = "")
 {
     Title       = title;
     TitlePinyin = StringExtend.GetPinyin(title);
     Content     = content;
     Type        = type;
     Tags        = tags;
     XAML        = xaml;
     Code        = code;
     State       = state;
 }