This is a migrated thread and some comments may be shown as answers.

Listview issue - listview not set to instance of object

0 Answers 70 Views
ListView
This is a migrated thread and some comments may be shown as answers.
wil
Top achievements
Rank 1
wil asked on 10 Mar 2017, 01:48 AM

I have the UI for Xamarin R3 2016 and i get not set to instance of object when I have below code in xaml.  This is a bug since it works when I remove this code below.  How can I go about this issue?

 

thanks 

Wil

 

<ContentPage.Resources>
     <ResourceDictionary> 
       <Style TargetType="Button" x:Key="ButtonStyle">
         <Style.Setters>
           <Setter Property="WidthRequest" Value="50"/>
           <Setter Property="BorderRadius" Value="0"/>
           <Setter Property="BackgroundColor" Value="Transparent"/>
           <Setter Property="VerticalOptions" Value="Fill"/>
           <Setter Property="HorizontalOptions" Value="Fill"/>
         </Style.Setters>
       </Style>  
     </ResourceDictionary>
    </ContentPage.Resources>

No answers yet. Maybe you can help?

Tags
ListView
Asked by
wil
Top achievements
Rank 1
Share this question
or