Skip to content

Commit

Permalink
(GH-3930) Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Nov 11, 2020
1 parent 1f1819a commit 874cf24
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
13 changes: 8 additions & 5 deletions src/MahApps.Metro/Controls/ColorPicker/ColorEyeDropper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

Expand All @@ -22,7 +22,6 @@ static ColorEyeDropper()
DefaultStyleKeyProperty.OverrideMetadata(typeof(ColorEyeDropper), new FrameworkPropertyMetadata(typeof(ColorEyeDropper)));
}

// Depency Properties
/// <summary>Identifies the <see cref="SelectedColor"/> dependency property.</summary>
public static readonly DependencyProperty SelectedColorProperty
= DependencyProperty.Register(nameof(SelectedColor),
Expand All @@ -31,7 +30,7 @@ public static readonly DependencyProperty SelectedColorProperty
new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));

/// <summary>
/// Gets the preview image while the cursor is moving
/// Gets or sets the selected <see cref="Color"/>.
/// </summary>
public Color? SelectedColor
{
Expand All @@ -47,7 +46,7 @@ public static readonly DependencyProperty PreviewImageOuterPixelCountProperty
new PropertyMetadata(2));

/// <summary>
/// Gets or Sets the number of additional pixel in the preview image
/// Gets or sets the number of additional pixel in the preview image.
/// </summary>
public int PreviewImageOuterPixelCount
{
Expand All @@ -63,20 +62,24 @@ public static readonly DependencyProperty EyeDropperCursorProperty
new PropertyMetadata(null));

/// <summary>
/// Gets or Sets the Cursor in Selecting Color Mode
/// Gets or sets the Cursor for Selecting Color Mode
/// </summary>
public Cursor EyeDropperCursor
{
get => (Cursor)this.GetValue(EyeDropperCursorProperty);
set => this.SetValue(EyeDropperCursorProperty, value);
}

/// <summary>Identifies the <see cref="PreviewContentTemplate"/> dependency property.</summary>
public static readonly DependencyProperty PreviewContentTemplateProperty
= DependencyProperty.Register(nameof(PreviewContentTemplate),
typeof(DataTemplate),
typeof(ColorEyeDropper),
new PropertyMetadata(default(DataTemplate)));

/// <summary>
/// Gets or sets the ContentControl.ContentTemplate for the preview.
/// </summary>
public DataTemplate PreviewContentTemplate
{
get => (DataTemplate)this.GetValue(PreviewContentTemplateProperty);
Expand Down
6 changes: 3 additions & 3 deletions src/MahApps.Metro/Controls/ColorPicker/ColorPalette.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static ColorPalette()
public static readonly DependencyProperty HeaderProperty = DependencyProperty.Register(nameof(Header), typeof(object), typeof(ColorPalette), new PropertyMetadata(null));

/// <summary>
/// Gets or Sets the Header of this Control
/// Gets or sets the Header of this Control
/// </summary>
public object Header
{
Expand All @@ -32,7 +32,7 @@ public object Header
public static readonly DependencyProperty ColorNamesDictionaryProperty = DependencyProperty.Register(nameof(ColorNamesDictionary), typeof(Dictionary<Color?, string>), typeof(ColorPalette), new PropertyMetadata(null));

/// <summary>
/// Gets or Sets the HeaderTemplate of this Control
/// Gets or sets the HeaderTemplate of this Control
/// </summary>
public DataTemplate HeaderTemplate
{
Expand All @@ -44,7 +44,7 @@ public DataTemplate HeaderTemplate
public static readonly DependencyProperty HeaderTemplateProperty = DependencyProperty.Register(nameof(HeaderTemplate), typeof(DataTemplate), typeof(ColorPalette), new PropertyMetadata(null));

/// <summary>
/// Gets or sets a custom dictionary for color to name. If null, the degault dictionary will be used.
/// Gets or sets a custom dictionary for color to name. If null, the default dictionary will be used.
/// </summary>
public Dictionary<Color?, string> ColorNamesDictionary
{
Expand Down
2 changes: 1 addition & 1 deletion src/MahApps.Metro/Controls/ColorPicker/ColorPickerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private static void OnSelectedColorPropertyChanged(DependencyObject dependencyOb
}

/// <summary>
/// Gets or sets the selected <see cref="Color"/>
/// Gets or sets the selected <see cref="Color"/>.
/// </summary>
public Color? SelectedColor
{
Expand Down

0 comments on commit 874cf24

Please sign in to comment.