Property Source
Source
A weak reference to the View that was the source of the command invocation, if any.
(e.g. the view the user clicked on or the view that had focus when a key was pressed).
Use Source?.TryGetTarget(out View? view) to safely access the source view.
public WeakReference<View>? Source { readonly get; set; }
Property Value
Remarks
Uses WeakReference to prevent memory leaks when views are disposed during command propagation.