I have a UserControl that defines a Grid Like this :
<Grid ClipToBounds="True"
x:Name="GHeader"
Grid.Row="0"
Grid.Column="0"
Background="{DynamicResource BrushRoomHeaderBackground}"
>
The following styles are defined in ResourceDictionary which are loaded at the start:
<SolidColorBrush x:Key="BrushRoomHeaderBackground"
Color="{DynamicResource ColorPassive}"
/>
<Color x:Key="ColorPassive">#FF9499C0</Color>
Should DynamicResource binding be used or StaticResource ? Could there be any memory leak here ?