Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace EventToCommandBehavior
{
public class EventToCommandBehavior : BehaviorBase<View>
public class EventToCommandBehavior : BehaviorBase<VisualElement>
{
Delegate eventHandler;

Expand Down Expand Up @@ -34,13 +34,13 @@ public IValueConverter Converter {
set { SetValue (InputConverterProperty, value); }
}

protected override void OnAttachedTo (View bindable)
protected override void OnAttachedTo (VisualElement bindable)
{
base.OnAttachedTo (bindable);
RegisterEvent (EventName);
}

protected override void OnDetachingFrom (View bindable)
protected override void OnDetachingFrom (VisualElement bindable)
{
DeregisterEvent (EventName);
base.OnDetachingFrom (bindable);
Expand Down