Skip to content

Commit

Permalink
Use <inheritdoc/> where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Jan 25, 2025
1 parent 0d3c7fe commit dab0df0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions components/ImageCropper/src/ImageCropperThumb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public ImageCropperThumb()

}

/// <inheritdoc/>
protected override void OnApplyTemplate()
{
PointerEntered -= Control_PointerEntered;
Expand Down Expand Up @@ -79,8 +80,6 @@ private static void OnXChanged(DependencyObject d, DependencyPropertyChangedEven
target.UpdatePosition();
}



private static void OnYChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var target = (ImageCropperThumb)d;
Expand All @@ -99,12 +98,18 @@ private static void OnYChanged(DependencyObject d, DependencyPropertyChangedEven
public static readonly DependencyProperty YProperty =
DependencyProperty.Register(nameof(Y), typeof(double), typeof(ImageCropperThumb), new PropertyMetadata(0d, OnYChanged));

/// <summary>
/// Handles the PointerEntered event.
/// </summary>
public void Control_PointerEntered(object sender, PointerRoutedEventArgs e)
{
base.OnPointerEntered(e);
VisualStateManager.GoToState(this, PointerOverState, true);
}

/// <summary>
/// Handles the PointerExited event.
/// </summary>
public void Control_PointerExited(object sender, PointerRoutedEventArgs e)
{
base.OnPointerExited(e);
Expand All @@ -123,12 +128,14 @@ private void Control_PointerCanceled(object sender, PointerRoutedEventArgs e)
VisualStateManager.GoToState(this, NormalState, true);
}

/// <inheritdoc/>
protected override void OnPointerPressed(PointerRoutedEventArgs e)
{
base.OnPointerPressed(e);
VisualStateManager.GoToState(this, PressedState, true);
}

/// <inheritdoc/>
protected override void OnPointerReleased(PointerRoutedEventArgs e)
{
base.OnPointerReleased(e);
Expand Down
1 change: 1 addition & 0 deletions components/Media/src/Helpers/SurfaceLoader.Instance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ public async Task<CompositionDrawingSurface> LoadFromUri(Uri uri, Size sizeTarge
return await LoadFromUri(uri, sizeTarget);
}

/// <inheritdoc/>
public void Dispose()
{
compositionDevice?.Dispose();
Expand Down

0 comments on commit dab0df0

Please sign in to comment.