Use Resource to fill a Button
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Page.Resources> <SolidColorBrush x:Key="RedBrush" Color="red"/> </Page.Resources> <StackPanel> <Button Background="{StaticResource RedBrush}" /> </StackPanel> </Page>