Skip to content

Commit 81b5401

Browse files
committed
Template updates
1 parent 5ad467b commit 81b5401

File tree

5 files changed

+25
-21
lines changed

5 files changed

+25
-21
lines changed

template/lab/samples/ProjectTemplate.Samples/ProjectTemplateCustomSample.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace ProjectTemplateExperiment.Samples;
77
/// <summary>
88
/// An example sample page of a custom control inheriting from Panel.
99
/// </summary>
10-
[ToolkitSampleMultiChoiceOption("LayoutOrientation", title: "Orientation", "Horizontal", "Vertical")]
10+
[ToolkitSampleMultiChoiceOption("LayoutOrientation", "Horizontal", "Vertical", Title = "Orientation")]
1111

1212
[ToolkitSample(id: nameof(ProjectTemplateCustomSample), "Custom control", description: $"A sample for showing how to create and use a {nameof(ProjectTemplate)} custom control.")]
1313
public sealed partial class ProjectTemplateCustomSample : Page

template/lab/samples/ProjectTemplate.Samples/ProjectTemplateTemplatedSample.xaml.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44

55
namespace ProjectTemplateExperiment.Samples;
66

7-
[ToolkitSampleBoolOption("IsTextVisible", "IsVisible", true)]
7+
[ToolkitSampleBoolOption("IsTextVisible", true, Title = "IsVisible")]
88
// Single values without a colon are used for both label and value.
99
// To provide a different label for the value, separate with a colon surrounded by a single space on both sides ("label : value").
10-
[ToolkitSampleMultiChoiceOption("TextSize", title: "Text size", "Small : 12", "Normal : 16", "Big : 32")]
11-
[ToolkitSampleMultiChoiceOption("TextFontFamily", title: "Font family", "Segoe UI", "Arial", "Consolas")]
12-
[ToolkitSampleMultiChoiceOption("TextForeground", title: "Text foreground",
10+
[ToolkitSampleMultiChoiceOption("TextSize", "Small : 12", "Normal : 16", "Big : 32", Title = "Text size")]
11+
[ToolkitSampleMultiChoiceOption("TextFontFamily", "Segoe UI", "Arial", "Consolas", Title = "Font family")]
12+
[ToolkitSampleMultiChoiceOption("TextForeground",
1313
"Teal : #0ddc8c",
1414
"Sand : #e7a676",
15-
"Dull green : #5d7577")]
15+
"Dull green : #5d7577",
16+
Title = "Text foreground")]
1617

1718
[ToolkitSample(id: nameof(ProjectTemplateTemplatedSample), "Templated control", description: "A sample for showing how to create and use a templated control.")]
1819
public sealed partial class ProjectTemplateTemplatedSample : Page

template/lab/samples/ProjectTemplate.Samples/ProjectTemplateTemplatedStyleCustomSample.xaml.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44

55
namespace ProjectTemplateExperiment.Samples;
66

7-
[ToolkitSampleBoolOption("IsTextVisible", "IsVisible", true)]
7+
[ToolkitSampleBoolOption("IsTextVisible", true, Title = "IsVisible")]
88
// Single values without a colon are used for both label and value.
99
// To provide a different label for the value, separate with a colon surrounded by a single space on both sides ("label : value").
10-
[ToolkitSampleMultiChoiceOption("TextSize", title: "Text size", "Small : 12", "Normal : 16", "Big : 32")]
11-
[ToolkitSampleMultiChoiceOption("TextFontFamily", title: "Font family", "Segoe UI", "Arial", "Consolas")]
12-
[ToolkitSampleMultiChoiceOption("TextForeground", title: "Text foreground",
10+
[ToolkitSampleMultiChoiceOption("TextSize", "Small : 12", "Normal : 16", "Big : 32", Title = "Text size")]
11+
[ToolkitSampleMultiChoiceOption("TextFontFamily", "Segoe UI", "Arial", "Consolas", Title = "Font family")]
12+
[ToolkitSampleMultiChoiceOption("TextForeground",
1313
"Teal : #0ddc8c",
1414
"Sand : #e7a676",
15-
"Dull green : #5d7577")]
15+
"Dull green : #5d7577",
16+
Title = "Text foreground")]
1617

1718
[ToolkitSample(id: nameof(ProjectTemplateTemplatedStyleCustomSample), "Templated control (restyled)", description: "A sample for showing how to create a use and templated control with a custom style.")]
1819
public sealed partial class ProjectTemplateTemplatedStyleCustomSample : Page

template/lab/samples/ProjectTemplate.Samples/ProjectTemplateXbindBackedSample.xaml.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44

55
namespace ProjectTemplateExperiment.Samples;
66

7-
[ToolkitSampleBoolOption("IsTextVisible", "IsVisible", true)]
7+
[ToolkitSampleBoolOption("IsTextVisible", true, Title = "IsVisible")]
88
// Single values without a colon are used for both label and value.
99
// To provide a different label for the value, separate with a colon surrounded by a single space on both sides ("label : value").
10-
[ToolkitSampleMultiChoiceOption("TextSize", title: "Text size", "Small : 12", "Normal : 16", "Big : 32")]
11-
[ToolkitSampleMultiChoiceOption("TextFontFamily", title: "Font family", "Segoe UI", "Arial", "Consolas")]
12-
[ToolkitSampleMultiChoiceOption("TextForeground", title: "Text foreground",
10+
[ToolkitSampleMultiChoiceOption("TextSize", "Small : 12", "Normal : 16", "Big : 32", Title = "Text size")]
11+
[ToolkitSampleMultiChoiceOption("TextFontFamily", "Segoe UI", "Arial", "Consolas", Title = "Font family")]
12+
[ToolkitSampleMultiChoiceOption("TextForeground",
1313
"Teal : #0ddc8c",
1414
"Sand : #e7a676",
15-
"Dull green : #5d7577")]
15+
"Dull green : #5d7577",)]
16+
Title = "Text foreground"
1617

1718
[ToolkitSample(id: nameof(ProjectTemplateXbindBackedSample), "Backed templated control", description: "A sample for showing how to create and use a templated control with a backed resource dictionary.")]
1819
public sealed partial class ProjectTemplateXbindBackedSample : Page

template/lab/samples/ProjectTemplate.Samples/ProjectTemplateXbindBackedStyleCustomSample.xaml.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44

55
namespace ProjectTemplateExperiment.Samples;
66

7-
[ToolkitSampleBoolOption("IsTextVisible", "IsVisible", true)]
7+
[ToolkitSampleBoolOption("IsTextVisible", true, Title = "IsVisible")]
88
// Single values without a colon are used for both label and value.
99
// To provide a different label for the value, separate with a colon surrounded by a single space on both sides ("label : value").
10-
[ToolkitSampleMultiChoiceOption("TextSize", title: "Text size", "Small : 12", "Normal : 16", "Big : 32")]
11-
[ToolkitSampleMultiChoiceOption("TextFontFamily", title: "Font family", "Segoe UI", "Arial", "Consolas")]
12-
[ToolkitSampleMultiChoiceOption("TextForeground", title: "Text foreground",
10+
[ToolkitSampleMultiChoiceOption("TextSize", "Small : 12", "Normal : 16", "Big : 32", Title = "Text size")]
11+
[ToolkitSampleMultiChoiceOption("TextFontFamily", "Segoe UI", "Arial", "Consolas", Title = "Font family")]
12+
[ToolkitSampleMultiChoiceOption("TextForeground",
1313
"Teal : #0ddc8c",
1414
"Sand : #e7a676",
15-
"Dull green : #5d7577")]
15+
"Dull green : #5d7577",
16+
Title = "Text foreground")]
1617

1718
[ToolkitSample(id: nameof(ProjectTemplateXbindBackedStyleCustomSample), "Backed templated control (restyled)", description: "A sample for showing how to create and use a templated control with a backed resource dictionary and a custom style.")]
1819
public sealed partial class ProjectTemplateXbindBackedStyleCustomSample : Page

0 commit comments

Comments
 (0)