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); }
public static string Format(CodeRegister register) => register.ToString().ToLower();