2014-04-04, 00:15
Hello all,
I have noticed some weird behavior of <onfocus> and <onunfocus> on DialogVideoInfo.xml.
My code looks like:
When I go into DialogVideoInfo for first time everything is correct, CurrentView is 9010 and PreviousView is empty. But when I leave dialog (onunload should care about cleanup) and open it again i get 9010 in both properties. To me it looks like dialog remember last focused item and unfocuses it after init. When I leave dialog with different button (with similar code) focused I get different number in PreviousView property, so it back ups my guess.
To me it doesn't seem like correct behavior. Should I create ticket for it?
I have noticed some weird behavior of <onfocus> and <onunfocus> on DialogVideoInfo.xml.
My code looks like:
Code:
<defaultcontrol always="true">9010</defaultcontrol>
<onunload>ClearProperty(DialogVideoInfo.CurrentView)</onunload>
<onunload>ClearProperty(DialogVideoInfo.PreviousView)</onunload>
...
<controls>
<control type="button" id="9010">
...
<onfocus>SetProperty(DialogVideoInfo.CurrentView,9010)</onfocus>
<onunfocus>SetProperty(DialogVideoInfo.PreviousView,9010)</onunfocus>
</control>
...
When I go into DialogVideoInfo for first time everything is correct, CurrentView is 9010 and PreviousView is empty. But when I leave dialog (onunload should care about cleanup) and open it again i get 9010 in both properties. To me it looks like dialog remember last focused item and unfocuses it after init. When I leave dialog with different button (with similar code) focused I get different number in PreviousView property, so it back ups my guess.
To me it doesn't seem like correct behavior. Should I create ticket for it?