Beispiel #1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var(success, val) = ByteConverters.IsHexValue(value.ToString());

            return(success
                ? (object)val
                : string.Empty);
        }
 private void PositionHexText_TextChanged(object sender, TextChangedEventArgs e)
 {
     GoPositionHexaButton.IsEnabled = ByteConverters.IsHexValue(PositionHexText.Text).success;
 }