
Here you can see we are giving style to wpf controls in design page only . You will get complete idea about static style in wpf applications. Let's see,
Main window
<Window x:Class="StyleDemo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350"...