-
Notifications
You must be signed in to change notification settings - Fork 13
Getting Started
dotnet add package DIPS.Xamarin.UI
Install-Package DIPS.Xamarin.UI
To use our UI components, you need to initialize the library to make sure the library is not removed by the linker.
In the AppDelegate.FinishedLaunching()
, add: DIPS.Xamarin.UI.iOS.Library.Initialize();
In the MainActivity.OnCreate()
, add: DIPS.Xamarin.UI.Android.Library.Initialize();
This will include everything in the library. If you want to include only what you are using, you need to
Initialize
only the components custom renderer. Example: If you only want theDatePicker
, callDatePickerImplementation.Initialize();
inAppDelegate.FinishedLaunching()
andMainActivity.OnCreate()
.
We recommend using custom namespacing to refer our UI components in XAML. This usage section will show you have to use our custom namespace. If you prefer to refer each component through its namespace, then you are free to do that. You can find the namespace for each component in its documentation.
- In your
App.xaml.cs
addDIPS.Xamarin.UI.Library.Initialize()
in the constructor.
- In the desired XAML component add the namespace with a prefix in your namespaces section:
xmlns:dxui="http://dips.xamarin.ui.com"
- You can now refer the library by doing this in your XAML:
<dxui:"component">
Each component is documented here.
No special prerequisite before using the different APIs. Each API is documented here.
- ContentControl
- DataTemplateSelectors
- Date- and TimePicker
- Modality
- Contextual Menus
- RadioButton
- TrendGraph
- Tag
- Toast