feat(ui): 右側詳細パネルのシンプル化とスクリプト改造不可時の項目非表示化
This commit is contained in:
1 parent
c03cc97af1
commit
ec4d718311
4 files changed
+81
-31
No files matched your search
@@ -130,4 +130,22 @@ namespace GameLauncher.Helpers
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// bool値が true の場合に Visible、false または null の場合に Collapsed を返すコンバーター
|
||||
/// </summary>
|
||||
public class BooleanToVisibilityConverter : IValueConverter
|
||||
{
|
||||
public static readonly BooleanToVisibilityConverter Instance = new();
|
||||
|
||||
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
||||
{
|
||||
return value is true ? Visibility.Visible : Visibility.Collapsed;
|
||||
}
|
||||
|
||||
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
|
||||
{
|
||||
return value is Visibility v && v == Visibility.Visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user