public Object Convert(Object value, Type targetType, Object parameter, String language) { var items = (int)value; var boolValue = items > 0; return(BooleanToVisibilityConverter.Convert(boolValue)); }
public object Convert(object value, Type targetType, object parameter, string language) { var boxedBool = (value as bool?); var boolValue = (boxedBool != null && boxedBool.Value); return(BooleanToVisibilityConverter.Convert(!boolValue)); }
public object Convert(object value, Type targetType, object parameter, string language) { var items = (value as int?); var boolValue = (items != null && (items.Value > 0)); return(BooleanToVisibilityConverter.Convert(boolValue)); }
public CalculatorProgrammerBitFlipPanel() { this.InitializeComponent(); m_updatingCheckedStates = false; var booleanToVisibilityConverter = new Converters.BooleanToVisibilityConverter(); SetVisibilityBinding(BitFlipPanel, "IsBinaryBitFlippingEnabled", booleanToVisibilityConverter); AssignFlipButtons(); }
public object Convert(object value, Type targetType, object parameter, string language) { var boolValue = (value is int items && (items > 0)); return(BooleanToVisibilityConverter.Convert(boolValue)); }
public object Convert(object value, Type targetType, object parameter, string language) { var boolValue = (value is bool boxedBool && boxedBool); return(BooleanToVisibilityConverter.Convert(boolValue)); }