What's apiVersion for?
In gadget.xml:
<base type="HTML" apiVersion="1.0.0" src="MyGadget.html" />
I'm curious, so:
Except HTML, is there any other base type? em...XAML?
Which is the right apiVersion we should use? I'v seen 1.0.0, 1.1.0 and 0.0.3 in some gadgets code.
BTW, on MSDN, the syntax of settingsUI is:
Syntax
[strGetSettingsUI = ]System.Gadget.Settings.settingsUI(strInitSettingsUI)
But it seems not work, System.Gadget.settingsUI works. Is that related to early version or future version?
[684 byte] By [
JohnHax] at [2008-2-3]
The API version is to help us detect gadgets that may be incompatible in the future. If you're using Vista's RTM version, use "1.0", or "1.0.0".
Thanks for the pointer on the bad MSDN page - the correct syntax should have the final (strInitSettingsUI). It's a property you can set without passing in any parameters.
Brian
Thank u for your reply. About SettingsUI, my question is not whether it is a property or function, but System.Gadget.Settings.settingsUI (msdn) or System.Gadget.SettingsUI (in practice)