When the Expander is not Expanded
When it Expanded, shadow is appeared, but the Shadow property is null both in ExpanderHeader and ExpanderContent
Where can I configure or disable this shadow?
The version of WinUI I am using is:
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.0.0-preview3" />
update:
I found that as long as the Expander's CornerRadius is 0, there is no
shadow in header. But any other value of CornerRadius will bring the shadow to the header
update2:I found that the shadow seems to come from the button control, if you create button and set there CornerRadius like this:
<Button CornerRadius="5,0,0,5" Content="TestButtonShadow" Background="Green"/>
<Button CornerRadius="0,5,5,0" Content="TestButtonShadow" Background="Green"/>
<Button CornerRadius="0,5,0,5" Content="TestButtonShadow" Background="Green"/>
<Button CornerRadius="5,0,5,0" Content="TestButtonShadow" Background="Green"/>
<Button CornerRadius="0,0,5,5" Content="TestButtonShadow" Background="Green"/>
<Button CornerRadius="5,5,0,0" Content="TestButtonShadow" Background="Green"/>
and the button will looks like:
why?
