Xamarin Forms Toolkit is a open source project that aims to provide a powerfull and cross platform set of controls tailored to work with Xamarin Forms.
Call for action for all Xamarin Developers, embrace this project and share your controls and services with the community, add your own control to the toolkit.
Available controls
- Calendar Control (beta)
- ExtendedTabbedPage
- ImageButton (beta)
- ExtendedLabel (alpha)
- AutoComplete (doesn't work on android)
- HybridWebView (alpha)
Available services (Beta)
- TextToSpeech
- Device (battery info, device info)
- Phone Service (cellular network info, make phonecalls)
- Geolocator
Available Mvvm helpers (Beta)
- ViewModelBase
- RelayCommand ; RelayCommand< T >
- ViewFactory
- IOC
ViewFactory Coming soon
RelayCommand Coming soon
Add XForms.Toolkit.Controls reference to your projects , main pcl, ios, android, and wp.
Xaml :
Reference the assembly namespace
xmlns:controls="clr-namespace:XForms.Toolkit.Controls;assembly=XForms.Toolkit"
Render your control:
<controls:ImageButton Text="Twitter" BackgroundColor="#01abdf" TextColor="#ffffff" HeightRequest="75" WidthRequest="175" Image="icon_twitter" Orientation="ImageToLeft" ImageHeightRequest="50" ImageWidthRequest="50" />
Or from your codebehind:
var button = new ImageButton() {
ImageHeightRequest = 50,
ImageWidthRequest = 50,
Orientation= Orientation.ImageToLeft",
Image = "icon_twitter"
};
stacker.Children.Add (button);
TextToSpeechService
DependencyService.Get<ITextToSpeechService>().Speak(TextToSpeak);
Device
var device = Resolver.Resolve<IDevice>();
device.Display; //display information
device.Battery; //battery information
PhoneService
var device = Resolver.Resolve<IDevice>();
// not all devices have phone service, f.e. iPod and Android tablets
// so we need to check if phone service is available
if (device.PhoneService != null)
{
device.PhoneService.DialNumber("+1 (855) 926-2746");
}
At the time there's no public nuget packages , the solution includes a build action to create nuget packages.
To develop on this project, run the build.bat or build.sh file first so the required Xamarin nuget packages can be downloaded.
Coming soon..
Everbody is welcome to contribute with any kind of controls or features at this time. Since there's no oficial releases feel free to submit your playground controls even if they aren't perfect.
License MIT more about that in the LICENSE file.
Contributions:
- Michael Ridland @rid00z
- Rui Marinho @ruiespinho
- Filip De Vos @foxtricks
- ThomasLebrun
- Sami M. Kallio
- Kevin E. Ford @Bowman74
- Jason Smith @jassmith87