<Window.Resources>
<SolidColorBrush x:Key="yellowColorBrush" Color="Yellow" />
</Window.Resources>
<TextBox HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" Height="20" Background="{StaticResource yellowColorBrush}" />