在我们的MaterialDesignInXaml项目中,我们有一些配置页面,如下所示:
在处理过程中,配置页面将被禁用,但它们仍应可见。但是,它们看起来像这样:
在App.xaml中,我们包含了以下资源:
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Indigo.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Teal.xaml" />有没有人建议让禁用的UI看起来更具可读性?
发布于 2020-06-21 09:12:09
在没有XAML代码的情况下重现有点困难,但您可能可以尝试在禁用时使用禁用项的不透明度和前景。
https://stackoverflow.com/questions/62339927
复制相似问题