コード例 #1
0
        private static void Action_ValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HexByteControl ctrl = d as HexByteControl;

            if (e.NewValue != e.OldValue)
            {
                ctrl.UpdateBackGround();
            }
        }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
        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();
            }
        }