<Window x:Class="ButtonCustomDependencyProperty.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:l="clr-namespace:ButtonCustomDependencyProperty"
        Title="ButtonCustomDependencyProperty" Height="95" Width="335">
	<Canvas Height="50" Width="311">
		<l:MyButton x:Name="myButton" Height="50" Width="80" Canvas.Left="0" Canvas.Top="0" Click="myButton_Click">
			MyButton
		</l:MyButton>
		<TextBox Text="{Binding ElementName=myButton, Path=Count}" Canvas.Left="192" Canvas.Top="14" Width="107"></TextBox>
		<Label Canvas.Left="86" Canvas.Top="12" Content="MyButton.Count:" Height="28" Name="label1" />
	</Canvas>
</Window>
