Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Windows.Documents;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Navigation;
using System.Windows.Shapes;

Expand All @@ -19,5 +21,11 @@ public ComboBoxPage(ComboBoxPageViewModel viewModel)
DataContext = this;

InitializeComponent();

// Fluent's HC selection color is WindowColor, washing out editable text selected on focus; use the Highlight color instead.
if (SystemParameters.HighContrast)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would need to do something similar to what we did in MainWindow.xaml.cs.

Although, this code would work when the app / page is initialized. However, if we are on the page and the theme changes to something else, it may end up in wrong visuals.

Apart from that this is exactly what I was talking about.

{
Resources["TextControlSelectionHighlightColor"] = new SolidColorBrush(SystemColors.HighlightColor);
}
}
}
Loading