Hi,
I’m trying to wrap the Scichart surface in XF. I’ve used native views as recommended in documentation and there is no problem when the SciChartSurface is the only element in a ContentPage, but when the surface is placed inside a layout or merged with any other element, then is not rendering.
Do you know why is this happening and how can I merge XF controls and SciChartSurface(s) in a ContentPage or any Layout?
1: This is rendering without problem
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:SciChartForms"
xmlns:localAndroid="clr-namespace:SciChartForms.Droid"
x:Class="SciChartForms.MainPage">
<localAndroid:Stripchart />
</ContentPage>
2: This is not rendering:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:SciChartForms"
xmlns:localAndroid="clr-namespace:SciChartForms.Droid"
x:Class="SciChartForms.MainPage">
<StackLayout Margin="20">
<Button Text="adafsd"/>
<localAndroid:Stripchart/>
</StackLayout>
</ContentPage>
Thanks in advance!
PS: I’ve also tried with custom renderer obtaining the same result.
- S C asked 6 years ago
- last active 6 years ago