Skip to content

Commit

Permalink
Refactor XML documentation to use <inheritdoc/> for overridden members
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Jan 24, 2025
1 parent 5b8b2b3 commit 6648706
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions components/Segmented/src/Segmented/Segmented.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,10 @@ public Segmented()
RegisterPropertyChangedCallback(SelectedIndexProperty, OnSelectedIndexChanged);
}

/// <summary>
/// Get the container for the item.
/// </summary>
/// <inheritdoc/>
protected override DependencyObject GetContainerForItemOverride() => new SegmentedItem();

/// <summary>
/// Check if the item is its own container.
/// </summary>
/// <inheritdoc/>
protected override bool IsItemItsOwnContainerOverride(object item)
{
return item is SegmentedItem;
Expand All @@ -50,9 +46,7 @@ protected override void OnApplyTemplate()
PreviewKeyDown += Segmented_PreviewKeyDown;
}

/// <summary>
/// Prepare the container for the item.
/// </summary>
/// <inheritdoc/>
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
{
base.PrepareContainerForItemOverride(element, item);
Expand All @@ -79,9 +73,7 @@ private void SegmentedItem_Loaded(object sender, RoutedEventArgs e)
}
}

/// <summary>
/// Handles the ItemsChanged event
/// </summary>
/// <inheritdoc/>
protected override void OnItemsChanged(object e)
{
base.OnItemsChanged(e);
Expand Down

0 comments on commit 6648706

Please sign in to comment.