Overview
Ugi subclass of Application, adding title bar, footer and various UGI functionality
Instance Methods | |
UgiFormsContentPage (bool createTitleBar=true, bool createFooter=false, bool overlapStatusBar=false) | |
Initializes a new instance of the UgiFormsContentPage class. More... | |
async Task | ShowEmbeddedPopup (View popup) |
Shows the embedded popup. More... | |
async Task | ShowPopup (View popup, bool modal=false, View relativeTo=null, PopupPositionings positioning=PopupPositionings.CenterOnScreen) |
Show a popup window More... | |
async Task | ShowPopup (View popup, bool modal, Rectangle relativeToBounds, PopupPositionings positioning) |
Show a popup window More... | |
void | MovePopup (View popup, View relativeTo=null, PopupPositionings positioning=PopupPositionings.CenterOnScreen) |
Move a popup window More... | |
void | MovePopup (View popup, Rectangle relativeToBounds, PopupPositionings positioning) |
Move a popup window More... | |
void | MovePopupAbsolute (View popup, double x, double y, bool keepOnScreen) |
Move a popup window to an absolute position More... | |
void | GetPopupLocationAbsolute (View popup, out double x, out double y) |
Gets the absolute position of a popup window More... | |
async Task | HidePopup (View popup) |
Hide a popup window (does not remove it) More... | |
virtual void | GoForward (Page page, bool removeThisPage=false) |
Go forward to another page More... | |
virtual void | GoBack () |
Go back a page More... | |
virtual void | BeforeLeavingPage (bool goingForward, Action completion) |
Called before leaving a page More... | |
virtual void | DisconnectedDialogCancelled () |
Called when the disconnected dialog box is cancelled More... | |
Properties | |
bool | CreateTitleBar [get] |
Create a title bar? More... | |
bool | CreateFooter [get] |
Create a footer? More... | |
bool | OverlapStatusBar [get] |
Overlap the status bar? More... | |
Color | ThemeColor [get, set] |
Gets the color of the page More... | |
Color | TextColorOnThemeColor [get, set] |
Gets the text color to use when the background is the theme color More... | |
UgiFormsTitleBar | FormsTitleBar [get] |
Title bar More... | |
UgiFormsFooter | FormsFooter [get] |
Footer More... | |
virtual Layout | InnerContent [get, set] |
Content inside the age More... | |
bool | IsAppeared [get] |
Gets a value indicating whether this page has appeared (is on the screen). More... | |
bool | DisplayDialogIfDisconnected [get, set] |
whether to display the "disconnected .. please connect the Grokker" dialog if needed while running inventory More... | |
bool | DisplayDialogIfDisconnectedEvenIfNotRunningInventory [get, set] |
whether to display the "disconnected .. please connect the Grokker" dialog anytime the Grokker is not connected, even if not running inventory More... | |
string | TitleBarTitle [get, set] |
Title for the title bar More... | |
bool | TitleBarUseBackgroundBasedOnThemeColor [get, set] |
whether the title bar should use a background color based on the UI color More... | |
bool | TitleBarDisplayWaveAnimationWhileScanning [get, set] |
whether the title bar should display an animation whiole scanning More... | |
bool | TitleBarHideBatteryStatusIndicator [get, set] |
whether the title bar should display an animation whiole scanning More... | |
bool | TitleBarBatteryStatusIndicatorDisplayVersionInfoOnTouch [get, set] |
whether the title bar should display an animation whiole scanning More... | |
Types | |
enum | PopupPositionings { CenterOnScreen, BelowReferenceObject, AboveReferenceObject, AwayFromReferenceObject } |
Value passed to ShowPopup to determine where the popup is positioned More... | |
Constants | |
static readonly BindableProperty | DisplayDialogIfDisconnectedProperty |
BindableProperty for DisplayDialogIfDisconnected More... | |
static readonly BindableProperty | DisplayDialogIfDisconnectedEvenIfNotRunningInventoryProperty |
BindableProperty for DisplayDialogIfDisconnectedEvenIfNotRunningInventory More... | |
static readonly BindableProperty | TitleBarTitleProperty |
BindableProperty for TitleBarTitle More... | |
static readonly BindableProperty | TitleBarUseBackgroundBasedOnThemeColorProperty |
BindableProperty for TitleBarUseBackgroundBasedOnThemeColor More... | |
static readonly BindableProperty | TitleBarDisplayWaveAnimationWhileScanningProperty |
BindableProperty for TitleBarDisplayWaveAnimationWhileScanning More... | |
static readonly BindableProperty | TitleBarHideBatteryStatusIndicatorProperty |
BindableProperty for TitleBarHideBatteryStatusIndicator More... | |
static readonly BindableProperty | TitleBarBatteryStatusIndicatorDisplayVersionInfoOnTouchProperty |
BindableProperty for TitleBarBatteryStatusIndicatorDisplayVersionInfoOnTouch More... | |
Protected Member Functions | |
virtual void | KeyboardStateChange (bool keyboardShown, double contentHeight) |
Called when the keyboard state changes, just before the content area is resized More... | |
virtual void | OnRotation () |
Called when the device is rotated More... | |
virtual void | WillAppear () |
Called before the page appears, if possible. On Android this is caled just after the page appears, because that is the best we can do More... | |
virtual void | ConnectionStateChanged () |
Called when the connection state changes More... | |
virtual void | InventoryStateChanged () |
Called when the inventory state changes More... | |
virtual void | BackButtonPressed () |
Called when the title bar's back button is pressed More... | |
Instance Method Documentation
◆ KeyboardStateChange()
|
inlineprotectedvirtual |
Called when the keyboard state changes, just before the content area is resized
- Parameters
-
keyboardShown true if keyboard is shown contentHeight Content height
◆ OnRotation()
|
inlineprotectedvirtual |
Called when the device is rotated
◆ WillAppear()
|
inlineprotectedvirtual |
Called before the page appears, if possible. On Android this is caled just after the page appears, because that is the best we can do
◆ ShowEmbeddedPopup()
|
inline |
Shows the embedded popup.
- Parameters
-
popup The popup to show
- Returns
- Task to wait on if the caller wants to wait until the popup is fully shown
◆ ShowPopup() [1/2]
|
inline |
Show a popup window
- Parameters
-
popup The popup to show modal true to make this popup modal relativeTo View to position relative to positioning Method for positioning the popup
- Returns
- Task to wait on if the caller wants to wait until the popup is fully shown
◆ ShowPopup() [2/2]
|
inline |
Show a popup window
- Parameters
-
popup The popup to show modal true to make this popup modal relativeToBounds Bounds to position relative to positioning Method for positioning the popup
- Returns
- Task to wait on if the caller wants to wait until the popup is fully shown
◆ MovePopup() [1/2]
|
inline |
Move a popup window
- Parameters
-
popup The popup to move relativeTo View to position relative to positioning Method for positioning the popup
◆ MovePopup() [2/2]
|
inline |
Move a popup window
- Parameters
-
popup The popup to move relativeToBounds Bounds to position relative to positioning Method for positioning the popup
◆ MovePopupAbsolute()
|
inline |
Move a popup window to an absolute position
- Parameters
-
popup The popup to move x The x coordinate to move to y The y coordinate to move to keepOnScreen true to keep the popup on the screen
◆ GetPopupLocationAbsolute()
|
inline |
Gets the absolute position of a popup window
- Returns
- The position
- Parameters
-
popup The popup to get the absolute position of x The x coordinate of the popup (a return value) y The y coordinate of the popup (a return value)
◆ HidePopup()
|
inline |
Hide a popup window (does not remove it)
- Parameters
-
popup The popup to hide
- Returns
- Task to wait on if the caller wants to wait until the popup is fully hidden
◆ ConnectionStateChanged()
|
inlineprotectedvirtual |
Called when the connection state changes
◆ InventoryStateChanged()
|
inlineprotectedvirtual |
Called when the inventory state changes
◆ BackButtonPressed()
|
inlineprotectedvirtual |
Called when the title bar's back button is pressed
◆ GoForward()
|
inlinevirtual |
Go forward to another page
- Parameters
-
page Page to move to removeThisPage If set to true
remove this page from the navigation stack.
◆ GoBack()
|
inlinevirtual |
Go back a page
◆ BeforeLeavingPage()
|
inlinevirtual |
Called before leaving a page
- Parameters
-
goingForward If set to true
going forward, otherwise going backcompletion Code to run when ready to actualy leave this page.
◆ DisconnectedDialogCancelled()
|
inlinevirtual |
Called when the disconnected dialog box is cancelled
Property Documentation
◆ CreateTitleBar
|
get |
Create a title bar?
true
to create a title bar; otherwise, false
.
◆ CreateFooter
|
get |
Create a footer?
true
to create a footer; otherwise, false
.
◆ OverlapStatusBar
|
get |
Overlap the status bar?
true
if the page should overlap the status bar; otherwise, false
.
◆ ThemeColor
|
getset |
Gets the color of the page
Color for the page.
◆ TextColorOnThemeColor
|
getset |
Gets the text color to use when the background is the theme color
Text color to use when the background is the theme color.
◆ FormsTitleBar
|
get |
Title bar
The title bar for the page
◆ FormsFooter
|
get |
Footer
The footer for the page
◆ InnerContent
|
getset |
Content inside the age
The content of the page
◆ IsAppeared
|
get |
Gets a value indicating whether this page has appeared (is on the screen).
true
if the page has appeared, false
.
◆ DisplayDialogIfDisconnected
|
getset |
whether to display the "disconnected .. please connect the Grokker" dialog if needed while running inventory
true
to display the disconnected dialog; otherwise, false
.
◆ DisplayDialogIfDisconnectedEvenIfNotRunningInventory
|
getset |
whether to display the "disconnected .. please connect the Grokker" dialog anytime the Grokker is not connected, even if not running inventory
true
to display the disconnected dialog even if not running inventory; otherwise, false
.
◆ TitleBarTitle
|
getset |
Title for the title bar
The title bar title.
◆ TitleBarUseBackgroundBasedOnThemeColor
|
getset |
whether the title bar should use a background color based on the UI color
true if the view uses a background
◆ TitleBarDisplayWaveAnimationWhileScanning
|
getset |
whether the title bar should display an animation whiole scanning
true if the view will display the wave animation
◆ TitleBarHideBatteryStatusIndicator
|
getset |
whether the title bar should display an animation whiole scanning
true if the view will display the wave animation
◆ TitleBarBatteryStatusIndicatorDisplayVersionInfoOnTouch
|
getset |
whether the title bar should display an animation whiole scanning
true if the view will display the wave animation
Enumeration Documentation
◆ PopupPositionings
Value passed to ShowPopup to determine where the popup is positioned
Constructor & Destructor Documentation
◆ UgiFormsContentPage()
|
inline |
Initializes a new instance of the UgiFormsContentPage class.
- Parameters
-
createTitleBar true
to create a title bar; otherwise,false
.createFooter true
to create a footer; otherwise,false
.overlapStatusBar true
if the page should overlap the status bar; otherwise,false
.
Member Data Documentation
◆ DisplayDialogIfDisconnectedProperty
|
static |
BindableProperty for DisplayDialogIfDisconnected
◆ DisplayDialogIfDisconnectedEvenIfNotRunningInventoryProperty
|
static |
BindableProperty for DisplayDialogIfDisconnectedEvenIfNotRunningInventory
◆ TitleBarTitleProperty
|
static |
BindableProperty for TitleBarTitle
◆ TitleBarUseBackgroundBasedOnThemeColorProperty
|
static |
BindableProperty for TitleBarUseBackgroundBasedOnThemeColor
◆ TitleBarDisplayWaveAnimationWhileScanningProperty
|
static |
BindableProperty for TitleBarDisplayWaveAnimationWhileScanning
◆ TitleBarHideBatteryStatusIndicatorProperty
|
static |
BindableProperty for TitleBarHideBatteryStatusIndicator
◆ TitleBarBatteryStatusIndicatorDisplayVersionInfoOnTouchProperty
|
static |
BindableProperty for TitleBarBatteryStatusIndicatorDisplayVersionInfoOnTouch
Copyright © 2012-2017 U Grok It, Inc. connect@UGrokIt.com U Grok It and the U Grok It logo are registered trademarks of U Grok It, Inc. All other trademarks and copyrights are the property of their respective owners |