Skip to content

How To Change SettingsExpander Background Color ? #586

Discussion options

You must be logged in to vote

Just solved it. (researching the settings expander source codes)

I found the solution on this page: https://github.com/amwx/FluentAvalonia/blob/master/src/FluentAvalonia/Styling/ControlThemes/FAControls/SettingsExpander/SettingsExpanderStyles.axaml

Firstly create a resource dictionary like this :

<ResourceDictionary xmlns="https://github.com/avaloniaui"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
	<ResourceDictionary.ThemeDictionaries>

		<!--Light Theme-->
		<ResourceDictionary x:Key='Light'>
		</ResourceDictionary>

		<!--Dark Theme-->
		<ResourceDictionary x:Key='Dark'>
			<SolidColorBrush x:Key='ExpanderHeaderBackground'>#1A1E29</SolidColorBrush>
			<So…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@OmerFarukAkyapak
Comment options

Answer selected by OmerFarukAkyapak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants