I have a brush as a resource:
<Application.Resources>
<SolidColorBrush x:Key="AppBrush" Color="#FFFFFF"/>
</Application.Resources>
and I want to use it Color:
<... BackgroundColor="{StaticResource AppBrush.Color}"/>
But this is not possible, and I get an error with xaml error. How can i do this?
or in other places, how to use Brush Colorin another resource Color:
<Application.Resources>
<Color x:Key="AppColor">#FFFFFF { here how to use AppBrush.Color?}</Color>
<SolidColorBrush x:Key="AppBrush" Color="#FFFFFF"/>
</Application.Resources>
source
share