AniDBmini.CanExpandConverter.Convert C# (CSharp) Method

Convert() public method

public Convert ( object o, Type type, object parameter, CultureInfo culture ) : object
o object
type System.Type
parameter object
culture System.Globalization.CultureInfo
return object
        public object Convert(object o, Type type, object parameter, CultureInfo culture)
        {
            if ((bool)o)
                return Visibility.Visible;
            else
                return Visibility.Hidden;
        }
CanExpandConverter