Пример #1
0
        private FrameworkElement BuildRegisterContent(CodeRegister register)
        {
            var textBlock = new TextBlock()
            {
                Text = register.ToString().ToLower()
            };

            var binding = new Binding("DebuggerTextFormat.Register")
            {
                Source = this, Mode = BindingMode.OneWay
            };

            textBlock.SetBinding(TextBlock.ForegroundProperty, binding);

            return(textBlock);
        }
Пример #2
0
 public static string Format(CodeRegister register) => register.ToString().ToLower();