Skip to content

Commit f24de6f

Browse files
committed
Adding comments to properties
1 parent cf80a23 commit f24de6f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

components/Shimmer/src/Shimmer/Shimmer.Properties.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
namespace CommunityToolkit.Labs.WinUI;
66
public partial class Shimmer : Control
77
{
8+
/// <summary>
9+
/// Identifies the <see cref="Duration"/> dependency property.
10+
/// </summary>
811
public static readonly DependencyProperty DurationProperty = DependencyProperty.Register(
912
nameof(Duration), typeof(TimeSpan), typeof(Shimmer), new PropertyMetadata(TimeSpan.FromMilliseconds(1600), (s, e) =>
1013
{
@@ -15,6 +18,9 @@ public partial class Shimmer : Control
1518
}
1619
}));
1720

21+
/// <summary>
22+
/// Identifies the <see cref="IsActive"/> dependency property.
23+
/// </summary>
1824
public static readonly DependencyProperty IsActiveProperty = DependencyProperty.Register(
1925
nameof(IsActive), typeof(bool), typeof(Shimmer), new PropertyMetadata(true, (s, e) =>
2026
{
@@ -31,12 +37,18 @@ public partial class Shimmer : Control
3137
}
3238
}));
3339

40+
/// <summary>
41+
/// Gets or sets the animation duration
42+
/// </summary>
3443
public TimeSpan Duration
3544
{
3645
get => (TimeSpan)GetValue(DurationProperty);
3746
set => SetValue(DurationProperty, value);
3847
}
3948

49+
/// <summary>
50+
/// Gets or sets if the animation is playing
51+
/// </summary>
4052
public bool IsActive
4153
{
4254
get => (bool)GetValue(IsActiveProperty);

0 commit comments

Comments
 (0)