Hi,
I've been beating my head against the wall to try to get this stuff to work. I have the following goal:
I want to be able to set a style (such as an font forecolor) to be mapped to a theme resource. My application can toggle between vs2019Light and vs2019Dark.
Here is what I have currently, but it's still not quite right
<dxi:ThemeResource x:Key="ColorRemove" ThemeKey="{dxt:ThemedWindowThemeKey ResourceKey=WindowContentForeground}" />
Code<Style
x:Key="StyleEmbeddedRemoveButton"
BasedOn="{StaticResource _StyleEmbeddedButtonBase}"
TargetType="dx:SimpleButton">
<Setter Property="Foreground" Value="{DynamicResource ColorRemove}" />
<Setter Property="Content" Value="{StaticResource CaptionRemoveSymbol}" />
</Style>
Code<dxc:SimpleButton
Command="{Binding ClearAllCommand}"
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
DockPanel.Dock="Right"
IsEnabled="{Binding ItemsPresent}"
Style="{StaticResource StyleEmbeddedRemoveButton}"
ToolTip="{x:Static properties:FilterResources.clear_all_items_tooltip1}" />
Here is my end goal: I want to make a fontawesome string, whose forecolor is the same color that the "little x that shows up in a combobox that clears it's contents". I recognize that I'm referring to a different resource in my example, it was just the starting point.
If I am TOTALLY going in the wrong direction, please let me know. I just need some colors that I know work with my themes, and can dyanmically switch as the light\dark mode switches.
Thanks.