In Xaml page I reference my custom control this way:
<MyNamespace:CustControl x:Name="Cust1" />
Now I want change the property of this custom control in MouseLeftButtonDown event trigger:
private void Grid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
}
But when I try to write something like
CustControl.IsSelected = true;
An error says: An object reference is required ..
I think it's all about "MyNamespace" namespace, but don't know how to reference it.