HandyControl/HandyControlDemo/Data/MessageToken.tt

71 lines
1.5 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",
"ScrollViewerDemoCtl"
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",
"TextBoxDemoCtl",
"TextBlockDemoCtl",
"ComboBoxDemoCtl",
2018-10-10 16:38:52 +08:00
"PasswordBoxDemoCtl",
"NaiveTabControlDemoCtl",
"DataGridDemoCtl",
"CheckBoxDemoCtl",
"ListBoxDemoCtl",
"MenuDemoCtl",
"TreeViewDemoCtl",
"BorderDemoCtl",
"RadioButtonDemoCtl",
"NaiveScrollViewerDemoCtl"
};
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#>);
<#}#>
<#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);
}
}