A Circle Button Menu Control for Xamarin.Forms
- CI NuGet Feed: https://ci.appveyor.com/nuget/CircleButtonMenu
CircleButtonMenu is available for use in the following supported platforms.
Platform | Supported | Version |
---|---|---|
Xamarin.Android | Yes | API 23 + |
Xamarin.iOS | Yes | iOS 10 + |
Add the namespace in the xmlns:
xmlns:controls="clr-namespace:CircleButtonMenu.Abstractions;assembly=CircleButtonMenu.Abstractions"
Add the control:
<controls:CircleButtonMenu FillColor="Black"
StrokeColor="Red"
OpenImageSource="plus"
CloseImageSource="minus"
ItemsSource="{Binding Controls}"
IndexSelected="{Binding ControlSelected}" />
View Model:
public IEnumerable<string> Controls = new [] { "resource1", "resource2" };
public ICommand ControlSelected = new Command(() => /* do something */ );
Property | Description | Default Value |
---|---|---|
FillColor | Gets or Sets the fill color for the circle. | Color.Black |
StrokeColor | Gets or Sets the circle border color | Color.Black |
OpenImageSource | Gets or Sets the open menu ImageSource |
null |
CloseImageSource | Gets or Sets the close menu ImageSource |
null |
ItemsSource | Gets or Sets the menu buttons | null |
IndexSelected | Gets or Sets the command for IndexSelected | null |
Created By: @Andrew_Hoefling
- Twitter: @Andrew_Hoefling
- Blog: andrewhoefling.com
The MIT License (MIT) see License File