Skip to content

Commit c298d6e

Browse files
committed
Remove leftover attributes
1 parent 736fc28 commit c298d6e

30 files changed

+0
-256
lines changed

Microsoft.Toolkit.Uwp.Notifications/Adaptive/AdaptiveImageEnums.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,21 @@ public enum AdaptiveImageAlign
1717
/// <summary>
1818
/// Image stretches to fill available width (and potentially available height too, depending on where the image is).
1919
/// </summary>
20-
[EnumString("stretch")]
2120
Stretch,
2221

2322
/// <summary>
2423
/// Align the image to the left, displaying the image at its native resolution.
2524
/// </summary>
26-
[EnumString("left")]
2725
Left,
2826

2927
/// <summary>
3028
/// Align the image in the center horizontally, displaying the image at its native resolution.
3129
/// </summary>
32-
[EnumString("center")]
3330
Center,
3431

3532
/// <summary>
3633
/// Align the image to the right, displaying the image at its native resolution.
3734
/// </summary>
38-
[EnumString("right")]
3935
Right
4036
}
4137

@@ -52,13 +48,11 @@ public enum AdaptiveImageCrop
5248
/// <summary>
5349
/// Image is not cropped.
5450
/// </summary>
55-
[EnumString("none")]
5651
None,
5752

5853
/// <summary>
5954
/// Image is cropped to a circle shape.
6055
/// </summary>
61-
[EnumString("circle")]
6256
Circle
6357
}
6458
}

Microsoft.Toolkit.Uwp.Notifications/Adaptive/AdaptiveSubgroupEnums.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,16 @@ public enum AdaptiveSubgroupTextStacking
1717
/// <summary>
1818
/// Vertical align to the top.
1919
/// </summary>
20-
[EnumString("top")]
2120
Top,
2221

2322
/// <summary>
2423
/// Vertical align to the center.
2524
/// </summary>
26-
[EnumString("center")]
2725
Center,
2826

2927
/// <summary>
3028
/// Vertical align to the bottom.
3129
/// </summary>
32-
[EnumString("bottom")]
3330
Bottom
3431
}
3532
}

Microsoft.Toolkit.Uwp.Notifications/Adaptive/AdaptiveTextEnums.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,103 +17,86 @@ public enum AdaptiveTextStyle
1717
/// <summary>
1818
/// Default value. Paragraph font size, normal weight and opacity.
1919
/// </summary>
20-
[EnumString("caption")]
2120
Caption,
2221

2322
/// <summary>
2423
/// Same as Caption but with subtle opacity.
2524
/// </summary>
26-
[EnumString("captionSubtle")]
2725
CaptionSubtle,
2826

2927
/// <summary>
3028
/// H5 font size.
3129
/// </summary>
32-
[EnumString("body")]
3330
Body,
3431

3532
/// <summary>
3633
/// Same as Body but with subtle opacity.
3734
/// </summary>
38-
[EnumString("bodySubtle")]
3935
BodySubtle,
4036

4137
/// <summary>
4238
/// H5 font size, bold weight. Essentially the bold version of Body.
4339
/// </summary>
44-
[EnumString("base")]
4540
Base,
4641

4742
/// <summary>
4843
/// Same as Base but with subtle opacity.
4944
/// </summary>
50-
[EnumString("baseSubtle")]
5145
BaseSubtle,
5246

5347
/// <summary>
5448
/// H4 font size.
5549
/// </summary>
56-
[EnumString("subtitle")]
5750
Subtitle,
5851

5952
/// <summary>
6053
/// Same as Subtitle but with subtle opacity.
6154
/// </summary>
62-
[EnumString("subtitleSubtle")]
6355
SubtitleSubtle,
6456

6557
/// <summary>
6658
/// H3 font size.
6759
/// </summary>
68-
[EnumString("title")]
6960
Title,
7061

7162
/// <summary>
7263
/// Same as Title but with subtle opacity.
7364
/// </summary>
74-
[EnumString("titleSubtle")]
7565
TitleSubtle,
7666

7767
/// <summary>
7868
/// Same as Title but with top/bottom padding removed.
7969
/// </summary>
80-
[EnumString("titleNumeral")]
8170
TitleNumeral,
8271

8372
/// <summary>
8473
/// H2 font size.
8574
/// </summary>
86-
[EnumString("subheader")]
8775
Subheader,
8876

8977
/// <summary>
9078
/// Same as Subheader but with subtle opacity.
9179
/// </summary>
92-
[EnumString("subheaderSubtle")]
9380
SubheaderSubtle,
9481

9582
/// <summary>
9683
/// Same as Subheader but with top/bottom padding removed.
9784
/// </summary>
98-
[EnumString("subheaderNumeral")]
9985
SubheaderNumeral,
10086

10187
/// <summary>
10288
/// H1 font size.
10389
/// </summary>
104-
[EnumString("header")]
10590
Header,
10691

10792
/// <summary>
10893
/// Same as Header but with subtle opacity.
10994
/// </summary>
110-
[EnumString("headerSubtle")]
11195
HeaderSubtle,
11296

11397
/// <summary>
11498
/// Same as Header but with top/bottom padding removed.
11599
/// </summary>
116-
[EnumString("headerNumeral")]
117100
HeaderNumeral
118101
}
119102

@@ -130,25 +113,21 @@ public enum AdaptiveTextAlign
130113
/// <summary>
131114
/// The system automatically decides the alignment based on the language and culture.
132115
/// </summary>
133-
[EnumString("auto")]
134116
Auto,
135117

136118
/// <summary>
137119
/// Horizontally align the text to the left.
138120
/// </summary>
139-
[EnumString("left")]
140121
Left,
141122

142123
/// <summary>
143124
/// Horizontally align the text in the center.
144125
/// </summary>
145-
[EnumString("center")]
146126
Center,
147127

148128
/// <summary>
149129
/// Horizontally align the text to the right.
150130
/// </summary>
151-
[EnumString("right")]
152131
Right
153132
}
154133

@@ -158,8 +137,6 @@ internal enum AdaptiveTextPlacement
158137
/// Default value
159138
/// </summary>
160139
Inline,
161-
162-
[EnumString("attribution")]
163140
Attribution
164141
}
165142
}

Microsoft.Toolkit.Uwp.Notifications/Adaptive/Elements/Element_AdaptiveImage.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,24 @@ internal sealed class Element_AdaptiveImage : IElement_TileBindingChild, IElemen
1212
internal const AdaptiveImageCrop DEFAULT_CROP = AdaptiveImageCrop.Default;
1313
internal const AdaptiveImageAlign DEFAULT_ALIGN = AdaptiveImageAlign.Default;
1414

15-
[NotificationXmlAttribute("id")]
1615
public int? Id { get; set; }
1716

18-
[NotificationXmlAttribute("src")]
1917
public string Src { get; set; }
2018

21-
[NotificationXmlAttribute("alt")]
2219
public string Alt { get; set; }
2320

24-
[NotificationXmlAttribute("addImageQuery")]
2521
public bool? AddImageQuery { get; set; }
2622

27-
[NotificationXmlAttribute("placement", DEFAULT_PLACEMENT)]
2823
public AdaptiveImagePlacement Placement { get; set; } = DEFAULT_PLACEMENT;
2924

30-
[NotificationXmlAttribute("hint-align", DEFAULT_ALIGN)]
3125
public AdaptiveImageAlign Align { get; set; } = DEFAULT_ALIGN;
3226

33-
[NotificationXmlAttribute("hint-crop", DEFAULT_CROP)]
3427
public AdaptiveImageCrop Crop { get; set; } = DEFAULT_CROP;
3528

36-
[NotificationXmlAttribute("hint-removeMargin")]
3729
public bool? RemoveMargin { get; set; }
3830

3931
private int? _overlay;
4032

41-
[NotificationXmlAttribute("hint-overlay")]
4233
public int? Overlay
4334
{
4435
get
@@ -57,16 +48,12 @@ public int? Overlay
5748
}
5849
}
5950

60-
[NotificationXmlAttribute("spritesheet-src")]
6151
public string SpriteSheetSrc { get; set; }
6252

63-
[NotificationXmlAttribute("spritesheet-height")]
6453
public uint? SpriteSheetHeight { get; set; }
6554

66-
[NotificationXmlAttribute("spritesheet-fps")]
6755
public uint? SpriteSheetFps { get; set; }
6856

69-
[NotificationXmlAttribute("spritesheet-startingFrame")]
7057
public uint? SpriteSheetStartingFrame { get; set; }
7158

7259
/// <inheritdoc/>

Microsoft.Toolkit.Uwp.Notifications/Adaptive/Elements/Element_AdaptiveImageEnums.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,10 @@ namespace Microsoft.Toolkit.Uwp.Notifications.Adaptive.Elements
66
{
77
internal enum AdaptiveImagePlacement
88
{
9-
[EnumString("inline")]
109
Inline,
11-
12-
[EnumString("background")]
1310
Background,
14-
15-
[EnumString("peek")]
1611
Peek,
17-
18-
[EnumString("hero")]
1912
Hero,
20-
21-
[EnumString("appLogoOverride")]
2213
AppLogoOverride
2314
}
2415
}

Microsoft.Toolkit.Uwp.Notifications/Adaptive/Elements/Element_AdaptiveProgressBar.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,12 @@ namespace Microsoft.Toolkit.Uwp.Notifications.Adaptive.Elements
88
{
99
internal sealed class Element_AdaptiveProgressBar : IElement_ToastBindingChild, IHaveXmlName, IHaveXmlNamedProperties
1010
{
11-
[NotificationXmlAttribute("value")]
1211
public string Value { get; set; }
1312

14-
[NotificationXmlAttribute("title")]
1513
public string Title { get; set; }
1614

17-
[NotificationXmlAttribute("valueStringOverride")]
1815
public string ValueStringOverride { get; set; }
1916

20-
[NotificationXmlAttribute("status")]
2117
public string Status { get; set; }
2218

2319
/// <inheritdoc/>

Microsoft.Toolkit.Uwp.Notifications/Adaptive/Elements/Element_AdaptiveSubgroup.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ internal sealed class Element_AdaptiveSubgroup : IElementWithDescendants, IHaveX
1111
{
1212
internal const AdaptiveSubgroupTextStacking DEFAULT_TEXT_STACKING = AdaptiveSubgroupTextStacking.Default;
1313

14-
[NotificationXmlAttribute("hint-textStacking", DEFAULT_TEXT_STACKING)]
1514
public AdaptiveSubgroupTextStacking TextStacking { get; set; } = DEFAULT_TEXT_STACKING;
1615

1716
private int? _weight;
1817

19-
[NotificationXmlAttribute("hint-weight")]
2018
public int? Weight
2119
{
2220
get

Microsoft.Toolkit.Uwp.Notifications/Adaptive/Elements/Element_AdaptiveText.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,16 @@ internal sealed class Element_AdaptiveText : IElement_TileBindingChild, IElement
1313
internal const AdaptiveTextAlign DEFAULT_ALIGN = AdaptiveTextAlign.Default;
1414
internal const AdaptiveTextPlacement DEFAULT_PLACEMENT = AdaptiveTextPlacement.Inline;
1515

16-
[NotificationXmlContent]
1716
public string Text { get; set; }
1817

19-
[NotificationXmlAttribute("id")]
2018
public int? Id { get; set; }
2119

22-
[NotificationXmlAttribute("lang")]
2320
public string Lang { get; set; }
2421

25-
[NotificationXmlAttribute("hint-align", DEFAULT_ALIGN)]
2622
public AdaptiveTextAlign Align { get; set; } = DEFAULT_ALIGN;
2723

2824
private int? _maxLines;
2925

30-
[NotificationXmlAttribute("hint-maxLines")]
3126
public int? MaxLines
3227
{
3328
get
@@ -56,7 +51,6 @@ internal static void CheckMaxLinesValue(int value)
5651

5752
private int? _minLines;
5853

59-
[NotificationXmlAttribute("hint-minLines")]
6054
public int? MinLines
6155
{
6256
get
@@ -83,13 +77,10 @@ internal static void CheckMinLinesValue(int value)
8377
}
8478
}
8579

86-
[NotificationXmlAttribute("hint-style", DEFAULT_STYLE)]
8780
public AdaptiveTextStyle Style { get; set; } = DEFAULT_STYLE;
8881

89-
[NotificationXmlAttribute("hint-wrap")]
9082
public bool? Wrap { get; set; }
9183

92-
[NotificationXmlAttribute("placement", DEFAULT_PLACEMENT)]
9384
public AdaptiveTextPlacement Placement { get; set; } = DEFAULT_PLACEMENT;
9485

9586
/// <inheritdoc/>

Microsoft.Toolkit.Uwp.Notifications/Common/EnumStringAttribute.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)