Skip to content

DataGridComboBoxEditableTextBox's CaretBrush does not follow color scheme #2951

@mkrauter

Description

@mkrauter

Bug explanation

When creating a datagrid with an editable combobox, its text cursor caret will not take up the normal foreground color:

image

As a solution I added CaretBrush to the MaterialDesignDataGridComboBoxEditableTextBox style in the source:

<Setter Property="CaretBrush" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" />

resulting:

image

Version

Latest master

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions