You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UI Data Converters package is designed for making the conversion of data objects to a different type in native applications for Windows, Android, iOS, macOS, Linux, and the web easier.
9
+
10
+
## Converting boolean values to a string (and back) with the BooleanToStringValueConverter
11
+
12
+
The `MADE.UI.Data.Converters.BooleanToStringValueConverter` provides a way to convert a boolean value to a string and back with a bound data source in a XAML view.
Instances of the converter can be set up with varying values for the `TrueValue` and `FalseValue` properties that will represent the value shown when the boolean is true and false, respectively. The default values are `Yes` and `No`.
29
+
30
+
**Note**, when converting back from the string value to a boolean when used in a `TwoWay` binding, the `TrueValue` and `FalseValue` properties are used to determine which value is considered true and false. If the string value does not match, an exception will be thrown.
31
+
32
+
## Displaying a byte array as an image with the ByteArrayToImageSourceValueConverter
33
+
34
+
The `MADE.UI.Data.Converters.ByteArrayToImageSourceValueConverter` provides a way to convert a bound byte array containing the details of an image to an image source that can be bound to an `Image` XAML element.
## Formatting a DateTime value with the DateTimeToStringValueConverter
48
+
49
+
The `MADE.UI.Data.Converters.DateTimeToStringValueConverter` converts a given `DateTime` object into a string using the provided format in the binding `ConverterParameter` property.
**Note**, the converter supports any of the standard and custom formats supported by the `DateTime.ToString()` method. You can [find more information on these in the Microsoft documentation](https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings).
The UI package is a base library for building out great user experiences for applications built for Windows, Android, iOS, and the web.
34
+
The UI package is a base library for building out great user experiences for applications built for Windows, Android, iOS, and the web.
33
35
34
36
Taking advantage of the Uno Platform, the UI packages provide extensible features such as:
35
37
@@ -67,7 +69,7 @@ The control works in a similar way to the `ComboBox` element in the Windows SDK,
67
69
68
70
#### UI.Controls.FilePicker
69
71
70
-
The UI Controls FilePicker library contains a cross-platform UI element that provides a web-like `<input type="file" />` equivalent for native applications.
72
+
The UI Controls FilePicker library contains a cross-platform UI element that provides a web-like `<input type="file" />` equivalent for native applications.
71
73
72
74
The control provides the capability to select one or multiple files of given types and show them within the UI.
73
75
@@ -77,6 +79,18 @@ The control provides the capability to select one or multiple files of given typ
77
79
78
80
</span>
79
81
82
+
#### UI.Controls.RichEditToolbar
83
+
84
+
The UI Controls RichEditToolbar library contains a cross-platform UI element that provides customizable and extensible collection of buttons that activate rich text features in an associated RichEditBox.
85
+
86
+
Think the InkToolbar equivalent for RichEditBox controls!
The UI Controls Validator library contains a cross-platform UI element that provides validation capabilities over any input element.
@@ -89,6 +103,16 @@ Taking advantage of the Data Validation library, you can simply and easily setup
89
103
90
104
</span>
91
105
106
+
#### UI.Data.Converters
107
+
108
+
The UI Data Converters package is designed for making the conversion of data objects to a different type in native applications for Windows, Android, iOS, macOS, Linux, and the web easier.
0 commit comments