Hi Luca,
Thank you for contacting Syncfusion Support.
Query : I have some custom icons that I want to show inside a button. The Fill color of the icon should be the same as the Foreground color of the theme using themecolors
We have checked your query and understood that you are trying to retrieve the resource from the ThemeColors , which is supported only for skinstorage themes . But on analyzing your sample, you have been using SfSkinManager themes and the ThemeColors is not supported with it. Since SfSkinManager is a separate component. However in order to achieve the same theme foreground for the Fill icon, you can use the following syntax:
Code:[XAML]
|
<DataTemplate x:Key="DownIcon">
<Viewbox>
<Canvas Width="76" Height="76" Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Width="76" Height="76" Canvas.Left="2" Canvas.Top="2" Stretch="Fill"
Fill="{Binding Path=Foreground, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type Button}}}"
Data="F1 M 37.8516,39.5833L 52.1016,24.9375L 52.1016,35.2292L 37.8516,50.2708L 23.6016,35.2292L 23.6016,24.9375L 37.8516,39.5833 Z "/>
</Canvas>
</Viewbox>
</DataTemplate>
|
Screenshot:
Also if you want to access the particular theme file of the Material and office2019 theme, you can export that by using Export option in ThemeStudio. For more information about SfSkinManager, refer the below UG link:
Please try this solution and let us know if you have any other concerns.
Regards,
Vijayalakshmi VR