Developer Programs

Learn

Docs

FocusStateChng

API Reference > FocusStateChng
SoapActionn/a
Input NameFocusStateChng
Output NameFocusStateChngResponse
Input Namespacen/a
Group NameXperience
ContainerXP_MsgBus.xsd
FocusStateChng.cs
this.messageBus.Subscribe<FocusStateChngRq_MType>(this.OnFocusStateChange, SubscriptionThreadOption.UIThread);

private void OnFocusStateChange(IMessageContext context)
{
    if (this.MessageError(context))
    {
        return;
    }

    var payload = context.DeserializeMessage<FocusStateChngRq_MType>();
    this.UpdateListbox(string.Concat("FocusChange.WinId:  ", payload.WinId != null ? payload.WinId.Value : "null"));
    this.UpdateListbox(string.Concat("FocusChange.WinState:  ", payload.WinState != null ? payload.WinState.Value : "null"));
    this.UpdateListbox(string.Concat("FocusChange.WinType:  ", payload.WinType != null ? payload.WinType.Value : "null"), false, true);
}

Did this page help you?

Last updated Mon Dec 9 2024