private static void Action_ValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { HexByteControl ctrl = d as HexByteControl; if (e.NewValue != e.OldValue) { ctrl.UpdateBackGround(); } }
private static void IsHighLight_PropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { HexByteControl ctrl = d as HexByteControl; if (e.NewValue != e.OldValue) { ctrl._keyDownLabel = KeyDownLabel.FirstChar; ctrl.UpdateBackGround(); } }
private static void Byte_PropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { HexByteControl ctrl = d as HexByteControl; if (e.NewValue != e.OldValue) { if (ctrl.Action != ByteAction.Nothing && ctrl.InternalChange == false) { ctrl.ByteModified?.Invoke(ctrl, new EventArgs()); } ctrl.UpdateLabelFromByte(); ctrl.UpdateHexString(); } }