diff --git a/AboutBox.xaml b/AboutBox.xaml index 1f72f6de..f7fab6c4 100644 --- a/AboutBox.xaml +++ b/AboutBox.xaml @@ -27,11 +27,18 @@ IN THE SOFTWARE. xmlns:w="clr-namespace:Rnd.Windows" xmlns:s="clr-namespace:GARbro.GUI.Strings" xmlns:gr="clr-namespace:GameRes;assembly=GameRes" + xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase" Title="{x:Static s:guiStrings.TextAboutTitle}" Height="306" Width="475" ResizeMode="NoResize" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" ShowInTaskbar="False" WindowStartupLocation="CenterOwner"> + + + + + + @@ -62,11 +69,12 @@ IN THE SOFTWARE. - + + diff --git a/AboutBox.xaml.cs b/AboutBox.xaml.cs index ad3ac006..1964fab7 100644 --- a/AboutBox.xaml.cs +++ b/AboutBox.xaml.cs @@ -208,4 +208,18 @@ namespace GARbro.GUI return isVisible; } } + + [ValueConversion(typeof(bool), typeof(string))] + class CanCreateConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + return (bool)value ? "[r/w]" : "[r]"; + } + + public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + return false; + } + } }