Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 9652a1d

Browse files
committed
Make CA happy.
CA you don't know what you're talking about.
1 parent 5b1970d commit 9652a1d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/GitHub.UI/Controls/ScollingVerticalStackPanel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Diagnostics.CodeAnalysis;
23
using System.Windows;
34
using System.Windows.Controls;
45
using System.Windows.Controls.Primitives;
@@ -51,11 +52,13 @@ public bool CanVerticallyScroll
5152
public double ViewportWidth { get; private set; }
5253
public ScrollViewer ScrollOwner { get; set; }
5354

55+
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification = "Can only be applied to controls")]
5456
public static bool GetIsFixed(FrameworkElement control)
5557
{
5658
return (bool)control.GetValue(IsFixedProperty);
5759
}
5860

61+
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification = "Can only be applied to controls")]
5962
public static void SetIsFixed(FrameworkElement control, bool value)
6063
{
6164
control.SetValue(IsFixedProperty, value);

0 commit comments

Comments
 (0)