Emil
Emil

Reputation: 6903

unhandled exception error when using Fontsize, FontAttributes and HorizontalOptions

Code below is breaking for some reason but when I remove FontSize="Large" FontAttributes="Bold" HorizontalOptions="Center", it works fine. It throws an unhandled exception and i cant deploy to the emulator. why?

  <ContentPage.Content>
    <ListView x:Name="GrouppedList"
           ItemsSource="{Binding Rss.channel.item}">
      <ListView.ItemTemplate>
        <DataTemplate>
          <TextCell Text="{Binding title}" Detail="{Binding description}"   FontSize="Large" FontAttributes="Bold"
         HorizontalOptions="Center" />             
        </DataTemplate>
      </ListView.ItemTemplate>
    </ListView>
  </ContentPage.Content>

Upvotes: 2

Views: 94

Answers (1)

Adam
Adam

Reputation: 16199

FontAttributes, FontSize and HorizontalOptions are not properties of a TextCell. If you want to customize it further you will need to go to a ViewCell.

Upvotes: 2

Related Questions