mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 11:39:16 +08:00
18 lines
383 B
C#
18 lines
383 B
C#
using System.Windows;
|
|
|
|
namespace Wox.Extensions
|
|
{
|
|
public static class VisibilityExtensions
|
|
{
|
|
public static bool IsVisible(this Visibility visibility)
|
|
{
|
|
return visibility == Visibility.Visible;
|
|
}
|
|
|
|
public static bool IsNotVisible(this Visibility visibility)
|
|
{
|
|
return !visibility.IsVisible();
|
|
}
|
|
}
|
|
}
|