Simple custom Content View - not visible

PetrNymsaPetrNymsa USMember ✭✭
edited April 2018 in Visual Studio

I am quitly new to Xamarin development and i am trying to use Live Player, which is great tool, but sometimes it does not work.
I created simple custom ContentView (TransactionEventControl) which looks like this:

<StackLayout HorizontalOptions="Center" VerticalOptions="Center" Spacing="0" HeightRequest="50">
          <Label Text="T1[Pm]" HorizontalOptions="Center" HorizontalTextAlignment="Center" />
          <BoxView HeightRequest="1" WidthRequest="20" HorizontalOptions="Center" VerticalOptions="Center"  />
          <Label Text="8.4" HorizontalTextAlignment="Center" HorizontalOptions="Center" />
          <Label Text="15:40:32" HorizontalOptions="Center" />

Test page looks like this

            <controls:TransactionEventControl />

Within Live Player, only blank screen is displayed. With normal deploy to device / simulator, everything work.

Moreover, I tried simple .cs contentView

public class FooControl : ContentView
        public FooControl ()
            Content = new StackLayout {
                Children = {
                    new Label { Text = "Welcome to Xamarin.Forms!" }

Result is the same. Within application I use also SkiaSharp and this work just fine. Where could be problem?

// edit
Xamarin.Forms version:
Live Player version (Android) : 1.5.176 (676)
Android: 7.0

Thank you for your advice.

Sign In or Register to comment.