Shape Should render
Shape is not rendering
Shape is rendering Xamarin Shell only by InitializeComponent()
Create Shape from Code Behind and insert it into layout OnAppearing()
public partial class HomePage : ContentPage
{
Int16 init = 0;
public HomePage()
{
InitializeComponent();
BindingContext = new Empower.ViewModel.HomePageModel();
// var point = new Point(0,0);
// pancakecolors.BackgroundGradientStartPoint = point;
// pancakecolors.BackgroundGradientEndPoint = new Point(1, 1);
init = 1;
}
protected override void OnAppearing()
{
if (init == 0)
{
Ellipse _elpseShape = new Ellipse();
_elpseShape.Fill = Brush.White;
_elpseShape.HorizontalOptions = LayoutOptions.Center;
_elpseShape.VerticalOptions = LayoutOptions.Center;
_elpseShape.WidthRequest = 80;
_elpseShape.HeightRequest = 80;
grdmyaccount.Children.RemoveAt(0);
grdmyaccount.Children.Insert(0, _elpseShape);
}
init = 0;
}
}
Attached reproduction sample
Issue11924.zip
I have the same problem with Path at even times a page with appears
var page = (page with Path);
Navigation.PushAsync(page); //it appears;
Navigation.PopAsync();
Navigation.PushAsync(page); //it does not appear
Navigation.PopAsync();
Navigation.PushAsync(page); //it appears again
and so on
+1 experiencing the same issue with tabs in Shell.
I too am hitting this same issue and am on 5.0-pre3. Only occurs following navigation, initial drawing is fine.
Most helpful comment
+1 experiencing the same issue with tabs in Shell.