| 1234567891011121314151617181920212223242526 | using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Data;namespace FurnaceUI.Converter{   public  class StringToBoolConvert : IValueConverter    {        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)        {            if (value == null) return false;            string s = value.ToString();            bool.TryParse(s, out bool rtn);            return rtn;        }        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)        {            throw new NotImplementedException();        }    }}
 |