Skip to content

View Lifecycle Attached Properties #1462

@kazo0

Description

@kazo0

We should have attached properties that allow you to hook to a specific control's lifecycle events.

This issue will serve as a means of defining a spec for this.

Questions

  • Should we be allowing some way to opt-in/-out of specific events so you can hook to specific ones (just Loaded, just Unloaded, etc.)
  • Is this going to be a set of APs like ControlExtensions.AttachToLifecycleEvents="{Binding ElementName="MyControl"}" and the something like ControlExtensions.OnLifecycleEvent="EventHandlerMethodName" where EventHandlerMethodName would have some sort of event args that brings in the sender and the event name, described by some enum? (Loaded, Unloaded, etc) as well as the root event's args.
  • Do we perhaps want to hook to the app lifecycle events as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions