Xamarin.Forms.Core
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Object
A utility class to interact with the current Device/Platform.
Field
2.0.0.0
System.String
The string "Android", representing the Android operating system.
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Void
The Action to invoke
Invokes an Action on the device main (UI) thread.
This example shows how to set the Text of Label on the main thread, e.g. in response to an async event.
{
label.Text = "Async operation completed";
});
]]>
Method
2.0.0.0
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)
System.Reflection.Assembly[]
To be added.
To be added.
To be added.
Method
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Double
To be added.
To be added.
Returns a double that represents the named size for the font that is used on the element on the native platform.
To be added.
To be added.
Method
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Double
To be added.
To be added.
Returns a double that represents a font size that corresponds to on .
To be added.
To be added.
Method
2.0.0.0
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)
System.Double
To be added.
To be added.
To be added.
To be added.
To be added.
To be added.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.TargetIdiom
Gets the kind of device that Xamarin.Forms is currently working on.
A that represents the device type.
Field
2.0.0.0
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)
Xamarin.Forms.Internals.DeviceInfo
To be added.
To be added.
Property
2.0.0.0
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)
Xamarin.Forms.Internals.DeviceInfo
To be added.
To be added.
To be added.
Field
2.0.0.0
System.String
The string "iOS", representing the iOS operating system.
To be added.
Property
2.0.0.0
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)
System.Boolean
To be added.
To be added.
To be added.
Field
2.0.0.0
System.String
The string "macOS", representing the macOS operating system.
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Obsolete("OnPlatform is obsolete as of version 2.3.4. Please use switch(RuntimePlatform) instead.")
System.Void
(optional) The Action to execute on iOS.
(optional) The Action to execute on Android.
(optional) The Action to execute on WinPhone.
(optional) The Action to execute if no Action was provided for the current OS.
Executes different Actions depending on the that Xamarin.Forms is working on.
This example shows how to change the font of a Label on a single OS.
label.Font = Font.OfSize ("HelveticaNeue-UltraLight", NamedSize.Large));
]]>
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Obsolete("OnPlatform<> (generic) is obsolete as of version 2.3.4. Please use switch(RuntimePlatform) instead.")
T
The type of the value to be returned.
The value for iOS.
The value for Android.
The value for WinPhone.
Returns different values depending on the Xamarin.Forms is working on.
The value for the current OS.
This example shows how to use different heights for a Button on different OS.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Void
The to open.
Request the device to open the Uri.
This often navigates out of the application.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Obsolete("TargetPlatform is obsolete as of version 2.3.4. Please use RuntimePlatform instead.")
Xamarin.Forms.TargetPlatform
Gets the indicating the OS Xamarin.Forms is working on.
A that indicates the current OS.
Property
2.0.0.0
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)
Xamarin.Forms.Internals.IPlatformServices
To be added.
To be added.
To be added.
Property
2.0.0.0
System.String
Gets the kind of device that Xamarin.Forms is currently working on.
To be added.
To be added.
Method
2.0.0.0
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)
System.Void
To be added.
To be added.
To be added.
Method
2.0.0.0
System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)
System.Void
To be added.
To be added.
To be added.
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Void
The interval between invocations of the callback.
The action to run when the timer elapses.
Starts a recurring timer using the device clock capabilities.
While the callback returns , the timer will keep recurring.
Field
2.0.0.0
System.String
The string "Windows", representing the Windows operating system.
To be added.
Field
2.0.0.0
System.String
The string "WinPhone", representing the Windows Mobile operating system.
To be added.
Field
2.0.0.0
System.String
To be added.
To be added.