public override bool IsEnabled(CallStackCtxMenuContext context) => FrameUtils.CanGoToIL(SwitchToFrameCallStackCtxMenuCommand.GetFrame(context)?.Frame);
public override bool IsEnabled(CallStackCtxMenuContext context) { var vm = SwitchToFrameCallStackCtxMenuCommand.GetFrame(context); return(vm != null && FrameUtils.CanGoToIL(vm.Frame)); }