HandyControl/HandyControlDemo/Data/MessageToken.tt

84 lines
1.9 KiB
Plaintext
Raw Normal View History

2018-09-18 19:22:11 +08:00
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ import namespace="System.Collections.Generic"#>
<#@ output extension=".cs" #>
<#
var controlList = new List<string>
{
"GrowlDemoCtl",
"LoadingDemoCtl",
"ImageBrowserDemoCtl",
"ColorPickerDemoCtl",
"CarouselDemoCtl",
"CompareSliderDemoCtl",
"TimeBarDemoCtl",
"PaginationDemoCtl",
"AnimationPathDemoCtl",
2018-10-03 21:27:15 +08:00
"StepBarDemoCtl",
"ClockDemoCtl",
2018-10-09 00:41:11 +08:00
"TimePickerDemoCtl",
"CirclePanelDemoCtl",
"NumericUpDownDemoCtl",
"WindowDemoCtl",
2018-10-30 00:16:04 +08:00
"ScrollViewerDemoCtl",
"PreviewSliderDemoCtl",
"CircleProgressBarDemoCtl",
2018-11-17 16:58:11 +08:00
"TextBoxDemoCtl",
2018-11-18 00:10:10 +08:00
"ComboBoxDemoCtl",
"PasswordBoxDemoCtl"
2018-09-18 19:22:11 +08:00
};
var styleList = new List<string>
{
"ButtonDemoCtl",
"ToggleButtonDemoCtl",
"ExpanderDemoCtl",
"ProgressBarDemoCtl",
2018-10-03 21:27:15 +08:00
"TabControlDemoCtl",
"CalendarDemoCtl",
2018-10-09 00:41:11 +08:00
"DatePickerDemoCtl",
"NaiveTextBoxDemoCtl",
2018-10-09 00:41:11 +08:00
"TextBlockDemoCtl",
2018-11-17 16:58:11 +08:00
"NaiveComboBoxDemoCtl",
2018-11-18 00:10:10 +08:00
"NaivePasswordBoxDemoCtl",
"NaiveTabControlDemoCtl",
"DataGridDemoCtl",
"CheckBoxDemoCtl",
"ListBoxDemoCtl",
"MenuDemoCtl",
"TreeViewDemoCtl",
"BorderDemoCtl",
"RadioButtonDemoCtl",
2018-10-28 16:44:10 +08:00
"NaiveScrollViewerDemoCtl",
2018-10-31 15:49:04 +08:00
"BrushDemoCtl",
"SliderDemoCtl"
};
var windowList = new List<string>
{
"CommonWindow",
"CustomNonClientAreaWindow"
2018-09-18 19:22:11 +08:00
};
#>
namespace HandyControlDemo.Data
{
public class MessageToken
{
<#foreach(var item in controlList){#>
public static readonly string <#=item#> = nameof(<#=item#>);
2018-10-31 15:49:04 +08:00
2018-09-18 19:22:11 +08:00
<#}#>
<#foreach(var item in styleList){#>
public static readonly string <#=item#> = nameof(<#=item#>);
<#}#>
<#foreach(var item in windowList){#>
public static readonly string <#=item#> = nameof(<#=item#>);
2018-09-18 19:22:11 +08:00
<#}#>
public static readonly string LoadShowContent = nameof(LoadShowContent);
2018-10-30 23:29:38 +08:00
2018-10-31 15:49:04 +08:00
public static readonly string FullSwitch = nameof(FullSwitch);
2018-10-30 23:29:38 +08:00
2018-10-31 15:49:04 +08:00
public static readonly string ContributorsView = nameof(ContributorsView);
2018-10-30 23:29:38 +08:00
2018-10-31 15:49:04 +08:00
public static readonly string ClearLeftSelected = nameof(ClearLeftSelected);
2018-09-18 19:22:11 +08:00
}
}