Articles → WPF → XAML File In WPF
XAML File In WPF
- XAML is the file with .xaml extension.
- This file contains mark ups. These mark ups is used to define UI elements.
<window
xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation”
xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”><Button x:Name=”blueButton”
Width=”100”
Height=”40”
Background=”Blue”
Content=”Click Me” /></window>
<StackPanel x:Name=”stack”></StackPanel>
X:Class Attribute