Is it possible to embed the TKRadialGauge into Xamarin forms? I see several examples on getting native controls into Xamarin forms, I just can't seem to figure out the namespace and other details for XAML and Binding.
Any help is appreciated.
1 Answer, 1 is accepted
0
Lance | Manager Technical Support
Telerik team
answered on 08 Oct 2018, 09:16 PM
Hi Brian,
The TKRadialGauge has been discontinued. The TKRadialGauge remains in the native assemblies for backwards support, new development with it is not recommended and we've not officially supported or tested XF embedding.
For a radial gauge control, see the UI for Xamarin's RadRadialGauge, this has superseded the discontinued TKRadialGauge control.
We've redeveloped the new Gauge from the ground up, you can achieve a similar appearance and positioning of the TKRadialGauge using the RadRadialGuage. For example, see RadialGauge Positioning. I highly recommend taking a look at all the examples of the Gauge control in the SDKExamples browser and QSF demo applications.
Ultimately, if you would like to move forward with TKRadialGauge, there is no XAML as this is purely a Xamarin.iOS control. You'll need to define it with in #if __IOS__ statements and instantiate it in code, then add to your Xamarin.Forms views using Xamarin's ToView() method. For example:
var view = radialGauge.ToView();
view.HeightRequest = 200;
view.WidthRequest = 200;
view.VerticalOptions = LayoutOptions.Start;
this.LayoutRoot.Children.Add(view);
Here's a complete example of embedding the TKRadialGauge in Xamarin.Forms:
Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items