I have a problem with my behavior using Microsoft Expression Blend. I don't know how to get the OnAttached event in Expression Blend or Visual Studio. It doesn't fire. Here's an example:
public class MyBehavior : Behavior<Path>
{
public PathNavigation()
{
}
protected override void OnAttached()
{
// Only firing in runtime
base.OnAttached();
AssociatedObject.Loaded += AssociatedObject_Loaded;
}
private void AssociatedObject_Loaded(object sender, System.Windows.RoutedEventArgs e)
{
// Only firing in runtime
}
}
Is there a possibility to get that events while designing in Blend? Thanks in advance. Chris