Fix Action method handling, if handled by control already
This commit is contained in:
@@ -84,8 +84,11 @@ public class FormBaseMessageLoop : IMessageLoopFactory
|
|||||||
//Send Action event to controls
|
//Send Action event to controls
|
||||||
await activeForm.ActionControls(mr);
|
await activeForm.ActionControls(mr);
|
||||||
|
|
||||||
//Send Action event to form itself
|
if (!mr.Handled)
|
||||||
|
{
|
||||||
|
//Send Action event to form itself, if not already handled by a control
|
||||||
await activeForm.Action(mr);
|
await activeForm.Action(mr);
|
||||||
|
}
|
||||||
|
|
||||||
if (!mr.Handled)
|
if (!mr.Handled)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -77,8 +77,11 @@ public class FullMessageLoop : IMessageLoopFactory
|
|||||||
//Send Action event to controls
|
//Send Action event to controls
|
||||||
await activeForm.ActionControls(mr);
|
await activeForm.ActionControls(mr);
|
||||||
|
|
||||||
//Send Action event to form itself
|
if (!mr.Handled)
|
||||||
|
{
|
||||||
|
//Send Action event to form itself, if not already handled by a control
|
||||||
await activeForm.Action(mr);
|
await activeForm.Action(mr);
|
||||||
|
}
|
||||||
|
|
||||||
if (!mr.Handled)
|
if (!mr.Handled)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user