Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't resolve resources #136

EmilAlipiev opened this issue Jul 11, 2016 · 4 comments

Can't resolve resources #136

EmilAlipiev opened this issue Jul 11, 2016 · 4 comments


Copy link

For the simple code below. I get error message that "Can't resolve resources: entryStyle" is it normal?

      <Style x:Key="entryStyle" TargetType="Entry">
        <Setter Property="HeightRequest" Value="50"/>
        <Setter Property="WidthRequest" Value="50"/>
        <Setter Property="Keyboard" Value="Numeric"/>
        <Setter Property="TextColor" Value="Black"/>
        <Setter Property="FontAttributes" Value="Bold"/>
        <Setter Property="FontSize" Value="Large"/>
        <Setter Property="BackgroundColor" Value="White"/>
        <Setter Property="PlaceholderColor" Value="Gray"/>

  <Entry    Style="{StaticResource  entryStyle}"   ></Entry>
Copy link

LeoHere commented Jul 12, 2016

Hi, when are you getting the "Can't resolve resources: entryStyle"? I guess that you get the error when you try to preview a ListView (or similar) that contains this ContentView within its item template, right? Or is it a different scenario?

There is a bug that happens when:

  1. you define a style within a ContentView
  2. reference it within the ContentView content as a StaticResource
  3. you preview something that use that ContentView within a DataTemplate.

Currently, the workaround is to use DynamicResource instead of StaticResource.

@LeoHere LeoHere added the bug label Jul 12, 2016
Copy link

yes exactly this is the scenario. Entry is inside listview as below

  <ListView x:Name="mylist"    Grid.Column="0" Grid.Row="1"  ItemsSource="{Binding Items}"   CachingStrategy="RecycleElement" VerticalOptions="FillAndExpand" RowHeight="50" >
              <StackLayout Orientation="Horizontal"   >
                <Label  Text="{Binding text}"  TextColor="Black"  FontAttributes="Bold" FontSize="Large" WidthRequest="30"></Label>
                <Entry StyleId="entId"  Placeholder="0"   Style="{StaticResource  entryStyle}"    Text="{Binding  count}" ></Entry>

Copy link

such a crucial thing is a bug. thats really impossible to work with gorilla. If i have to use dynamic resources, i need to build my app for gorilla player. it makes no sense. sorry

Copy link

Second this problem, it is quite a big deal really

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

3 participants