WPF : XAML + Code-behind C#

WPF : XAML + Code-behind C#

Hey !
I'm trying to implement this : http://www.wpf-tutorial.com/audio-video/playing-video/
I deleted "x:class" in XAML file and trying to setup a clr-namespace.
C# Code:
xmlns:myns="clr-namespace:MyBlendProject.UserControl1;assembly=MyBlendProject"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">




C# Code:
namespace MyBlendProject
{
public partial class UserControl1 : UserControl
{
private void Button_Click_1(object sender, RoutedEventArgs e)
{

}
}
}

But I still get the following error " Failed to create "click" from the text "Button_click_1".

This is a migrated post! Originally posted on 16.02.2015 by user loanvar. Please be aware that information can be outdated.