UI Framework ReferenceLAYOUT PANELSCanvasEnables positioning child elements with coordinates. Events (attach with addEventListener):
Base Classes: StackPanelArranges child elements into a single line that can be oriented horizontally or vertically. Events (attach with addEventListener):
Base Classes: GridArranges child elements into flexible rows and columns. Events (attach with addEventListener):
Base Classes: CONTROLSAppBarButtonA button meant to be displayed in a CommandBar. Events (attach with addEventListener):
Base Classes: Button > ButtonBase > ContentControl > Control > UIElement ButtonA button that can respond to clicks. Events (attach with addEventListener):
Base Classes: ButtonBase > ContentControl > Control > UIElement CommandBarA specialized app bar that provides layout for AppBarButton and related command elements. Events (attach with addEventListener):
Base Classes: ContentControl > Control > UIElement DatePickerA control that enables a user to pick a date value. Events (attach with addEventListener):
Base Classes: HyperlinkButtonA button that functions as a hyperlink. Events (attach with addEventListener):
Base Classes: Button > ButtonBase > ContentControl > Control > UIElement ImageDisplays an image. See Working with Images for more info. Events (attach with addEventListener):
Base Classes: ListBoxA selectable list of items. Events (attach with addEventListener):
Base Classes: Selector > ItemsControl > Control > UIElement ListBoxItemA container for an item in a ListBox. Events (attach with addEventListener):
Base Classes: SelectorItem > ContentControl > Control > UIElement PageUse this as the root content if you want app bars. Events (attach with addEventListener):
Base Classes: PopupA general-purpose container for hosting UI objects on top of other content, such as HTML. Events (attach with addEventListener):
Base Classes: ContentControl > Control > UIElement ace:TabBarA command bar designed for tabs rather than buttons. Events (attach with addEventListener):
TextBlockA lightweight element for displaying small amounts of text. Events (attach with addEventListener):
Base Classes: TimePickerA control that enables a user to pick a time value. Events (attach with addEventListener):
Base Classes: ToggleSwitchA switch that can be toggled between two states. Events (attach with addEventListener):
Base Classes: WebViewA control that hosts HTML. Events (attach with addEventListener):
Base Classes: ACE
PLATFORM HELPERS (ANDROID)ace.android.appWidget.add(text)Adds the passed-in string as a new item in your list-based Android app widget. ace.android.appWidget.clear()Clears all the items in your list-based Android app widget. ace.android.getContext()Returns the current Android application context object. ace.android.getActivity()Returns the current activity. ace.android.getIntent()Returns the current intent associated with the current activity. ace.android.getId(name, onSuccess, onError)Gets the numeric Android resource ID for the given resource name. ace.android.ifVersionAtLeast(version, onTrue, onFalse)Calls your onTrue callback if the current version of Android is greater than or equal to the version you specify. Otherwise, your optional onFalse callback is called. // setBackgroundTintList only works on LOLLIPOP_MR1 or later ace.android.ifVersionAtLeast(ace.android.version.LOLLIPOP_MR1, function (actualVersion) { button2.invoke("setBackgroundTintList", tintList2); }, function (actualVersion) { button2.invoke("setBackgroundColor", color2); }); ace.addEventListener(“android.intentchanged”)Attaches an event handler that gets invoked whenever the current activity’s intent changes. One thing that causes this is the selection of an item on a list-based app widget. ace.android.versionAn enumeration of Android version codes, such as KITKAT, LOLLIPOP, LOLLIPOP_MR1, and M (for Marshmallow). This matches Android’s VERSION_CODES enumeration. PLATFORM HELPERS (iOS)ace.ios.getNavigationController()Returns the current UINavigationController instance. ace.ios.getPresentedViewControllerAsync(onSuccess)If a view controller has been “presented” (e.g. a modal dialog), this retrieves that view controller. ace.ios.getCurrentModalContent()If a modal dialog is showing, this retrieves the root UI element from it. ace.ios.setCurrentModalContent(content)If a modal dialog is showing, this replaces its root UI element. NATIVEOBJECTNativeObject is the base class of UIElement, but you can also use it directly to call arbitrary native code.
|