SPMobileButtonNavigation.ButtonFormat Property

Gets or sets a value that determines whether the control is a link or a button.

Namespace:  Microsoft.SharePoint.MobileControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public Overridable Property ButtonFormat As CommandFormat

Dim instance As SPMobileButtonNavigation
Dim value As CommandFormat

value = instance.ButtonFormat

instance.ButtonFormat = value
public virtual CommandFormat ButtonFormat { get; set; }

Property Value

Type: System.Web.UI.MobileControls.CommandFormat
A CommandFormat value that indicates whether the control is a button or a link.


The default implementation has Button as the default value.

Even if the control is a link, however, it does not directly navigate to a new page. Regardless of whether it is a button or link, the control causes a postback, which opens the page at RedirectUrl after the control's function is completed.

Contrast SPMobileButtonNavigation with SPMobileLinkNavigation, which directly navigates to a new page without causing a postback.

See Also


SPMobileButtonNavigation Class

SPMobileButtonNavigation Members

Microsoft.SharePoint.MobileControls Namespace