AspectRatio.ConvertToAspectRatio(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converter to take a string aspect ration like "16:9" and convert it to an AspectRatio struct. Used automatically by XAML.
public static Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio ConvertToAspectRatio (string rawString);
static member ConvertToAspectRatio : string -> Microsoft.Toolkit.Uwp.UI.Controls.AspectRatio
Public Shared Function ConvertToAspectRatio (rawString As String) As AspectRatio
Parameters
- rawString
- String
The string to be converted in format "Width:Height" or a decimal value.
Returns
The AspectRatio struct representing that ratio.