{"action":"created","issue":{"url":"https://api.github.com/repos/UXDivers/Gorilla-Player-Support/issues/176","repository_url":"https://api.github.com/repos/UXDivers/Gorilla-Player-Support","labels_url":"https://api.github.com/repos/UXDivers/Gorilla-Player-Support/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/UXDivers/Gorilla-Player-Support/issues/176/comments","events_url":"https://api.github.com/repos/UXDivers/Gorilla-Player-Support/issues/176/events","html_url":"https://github.com/UXDivers/Gorilla-Player-Support/issues/176","id":186677477,"number":176,"title":"Styles not loading (Resources not found) in ListView ViewCell template","user":{"login":"MrXemiu","id":4266607,"avatar_url":"https://avatars.githubusercontent.com/u/4266607?v=3","gravatar_id":"","url":"https://api.github.com/users/MrXemiu","html_url":"https://github.com/MrXemiu","followers_url":"https://api.github.com/users/MrXemiu/followers","following_url":"https://api.github.com/users/MrXemiu/following{/other_user}","gists_url":"https://api.github.com/users/MrXemiu/gists{/gist_id}","starred_url":"https://api.github.com/users/MrXemiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrXemiu/subscriptions","organizations_url":"https://api.github.com/users/MrXemiu/orgs","repos_url":"https://api.github.com/users/MrXemiu/repos","events_url":"https://api.github.com/users/MrXemiu/events{/privacy}","received_events_url":"https://api.github.com/users/MrXemiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-01T23:41:14Z","updated_at":"2016-11-02T02:35:41Z","closed_at":null,"body":"The following page cannot be displayed in Gorilla Player.  Instead an error message is presented indicating that none of the resources identified in the Style attributes of the template elements can be found.  I'm using Xlabs MVVM, so the page inherits from BaseView.  \r\n\r\nI have other pages throughout the application that inherit from BaseView, depend on StaticResources defined locally as well as in App.xaml, AND DO render in Gorilla Player.  The only difference, as far as I can tell, is that this page contains a ListView. \r\n\r\nAnyway, this is a great tool, but I'm very stuck right now.\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n\r\n<mvvm:BaseView xmlns=\"http://xamarin.com/schemas/2014/forms\"\r\n               xmlns:x=\"http://schemas.microsoft.com/winfx/2009/xaml\"\r\n               xmlns:mvvm=\"clr-namespace:XLabs.Forms.Mvvm;assembly=XLabs.Forms\"\r\n               Title=\"Survey List\"\r\n               x:Class=\"eSiteMoble.View.SurveyListPage\">\r\n  <mvvm:BaseView.Resources>\r\n    <ResourceDictionary>\r\n\r\n      <Style x:Key=\"ListItemStyle\" TargetType=\"Grid\">\r\n        <Setter Property=\"Margin\" Value=\"15, 20\" />\r\n        <Setter Property=\"VerticalOptions\" Value=\"Start\"/>\r\n        <Setter Property=\"HorizontalOptions\" Value=\"Fill\" />\r\n      </Style>\r\n\r\n      <Style x:Key=\"StatusIconStyle\" TargetType=\"Image\" BasedOn=\"{StaticResource IconStyle}\">\r\n        <Setter Property=\"HorizontalOptions\" Value=\"Start\"/>\r\n        <Setter Property=\"VerticalOptions\" Value=\"Start\" />\r\n      </Style>\r\n\r\n      <Style x:Key=\"FacilityStyle\" TargetType=\"Label\" BasedOn=\"{StaticResource Heading3}\">\r\n        <Setter Property=\"HorizontalTextAlignment\" Value=\"Start\" />\r\n        <Setter Property=\"VerticalOptions\" Value=\"Start\" />\r\n      </Style>\r\n\r\n      <Style x:Key=\"ContactIconStyle\" TargetType=\"Image\" BasedOn=\"{StaticResource IconStyle}\">\r\n        <Setter Property=\"HorizontalOptions\" Value=\"Center\"></Setter>\r\n        <Setter Property=\"VerticalOptions\" Value=\"Start\"></Setter>\r\n      </Style>\r\n\r\n      <Style x:Key=\"AddressStyle\" TargetType=\"Label\" BasedOn=\"{StaticResource LabelStyle}\">\r\n        <Setter Property=\"TextColor\" Value=\"{StaticResource LightTextColor}\" />\r\n      </Style>\r\n\r\n      <Style x:Key=\"DateStack\" TargetType=\"StackLayout\">\r\n        <Setter Property=\"HorizontalOptions\" Value=\"Center\" />\r\n        <Setter Property=\"VerticalOptions\" Value=\"Start\" />\r\n        <Setter Property=\"Orientation\" Value=\"Vertical\" />\r\n        <Setter Property=\"Spacing\" Value=\"0\" />\r\n      </Style>\r\n\r\n      <Style x:Key=\"MonthStyle\" TargetType=\"Label\" BasedOn=\"{StaticResource Heading5}\">\r\n        <Setter Property=\"HorizontalTextAlignment\" Value=\"Center\" />\r\n      </Style>\r\n\r\n      <Style x:Key=\"DateStyle\" TargetType=\"Label\" BasedOn=\"{StaticResource Heading1}\">\r\n        <Setter Property=\"HorizontalTextAlignment\" Value=\"Center\" />\r\n      </Style>\r\n\r\n    </ResourceDictionary>\r\n  </mvvm:BaseView.Resources>\r\n\r\n  <mvvm:BaseView.Content>\r\n\r\n    <ListView x:Name=\"ListFacilities\"\r\n              ItemsSource=\"{Binding WorkflowItems}\"\r\n              HasUnevenRows=\"True\"\r\n              SelectedItem=\"{Binding SelectedFacility}\"\r\n              HorizontalOptions=\"Fill\"\r\n              VerticalOptions=\"FillAndExpand\">\r\n\r\n      <ListView.ItemTemplate>\r\n        <DataTemplate>\r\n          <ViewCell>\r\n            <ViewCell.View>\r\n\r\n              <Grid Style=\"{StaticResource ListItemStyle}\">\r\n                <Grid.ColumnDefinitions>\r\n                  <ColumnDefinition Width=\".12*\" />\r\n                  <ColumnDefinition Width=\".715*\" />\r\n                  <ColumnDefinition Width=\".16*\" />\r\n                </Grid.ColumnDefinitions>\r\n                <Grid.RowDefinitions>\r\n                  <RowDefinition />\r\n                  <RowDefinition />\r\n                </Grid.RowDefinitions>\r\n\r\n                <Image Source=\"{Binding SurveyStatus, Converter={StaticResource SurveyStatusToImageSourceConverter}}\" Style=\"{StaticResource StatusIconStyle}\" Grid.Column=\"0\" Grid.Row=\"0\" Grid.RowSpan=\"2\"  />\r\n                <Label Text=\"{Binding FacilityName}\" Style=\"{StaticResource FacilityStyle}\" Grid.Column=\"1\" Grid.Row=\"0\" />\r\n\r\n                <Grid Grid.Column=\"1\" Grid.Row=\"1\" HorizontalOptions=\"Fill\" VerticalOptions=\"Start\">\r\n                  <Grid.ColumnDefinitions>\r\n                    <ColumnDefinition Width=\"10\" />\r\n                    <ColumnDefinition Width=\"*\"/>\r\n                  </Grid.ColumnDefinitions>\r\n                  <Grid.RowDefinitions>\r\n                    <RowDefinition />\r\n                    <RowDefinition />\r\n                    <RowDefinition />\r\n                  </Grid.RowDefinitions>\r\n\r\n                  <Image Source=\"icon_contact_location.png\" Style=\"{StaticResource ContactIconStyle}\" Grid.Column=\"0\" Grid.Row=\"0\"></Image>\r\n                  <Label Text=\"{Binding Address1}\" Style=\"{StaticResource AddressStyle}\" Grid.Column=\"1\" Grid.Row=\"0\" LineBreakMode=\"WordWrap\" />\r\n\r\n                  <Image Source=\"icon_contact_person.png\" Style=\"{StaticResource ContactIconStyle}\"  Grid.Column=\"0\" Grid.Row=\"1\" />\r\n                  <Label Text=\"{Binding ContactName}\" Style=\"{StaticResource LabelStyle}\" Grid.Column=\"1\" Grid.Row=\"1\"  />\r\n\r\n                  <Image Source=\"icon_contact_phone.png\" Style=\"{StaticResource ContactIconStyle}\" Grid.Column=\"0\" Grid.Row=\"2\" />\r\n                  <Label Text=\"{Binding ContactPhone}\" Style=\"{StaticResource LabelStyle}\"  Grid.Column=\"1\" Grid.Row=\"2\"  />\r\n\r\n                </Grid>\r\n\r\n                <StackLayout Style=\"{StaticResource DateStack}\" Grid.Column=\"2\" Grid.Row=\"0\" Grid.RowSpan=\"2\" >\r\n                  <Label x:Key=\"lblMonth\" Style=\"{StaticResource MonthStyle}\" Text=\"{Binding DueDate, Converter={StaticResource SurveyListMonthToStringConverter}}\" IsVisible=\"{Binding DueDate, Converter={StaticResource NullToBooleanConverter}}\"></Label>\r\n                  <Label x:Key=\"lblDate\" Style=\"{StaticResource DateStyle}\" Text=\"{Binding DueDate, StringFormat='{0:dd}'}\" IsVisible=\"{Binding DueDate, Converter={StaticResource NullToBooleanConverter}}\"></Label>\r\n                </StackLayout>\r\n\r\n\r\n              </Grid>\r\n            </ViewCell.View>\r\n          </ViewCell>\r\n        </DataTemplate>\r\n      </ListView.ItemTemplate>\r\n    </ListView>\r\n  </mvvm:BaseView.Content>\r\n</mvvm:BaseView>\r\n```\r\n\r\n<img width=\"479\" alt=\"xamarin_android_player_-__nexus_s__kitkat__\" src=\"https://cloud.githubusercontent.com/assets/4266607/19911641/5ee46434-a05a-11e6-8bc1-380aedba4137.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/UXDivers/Gorilla-Player-Support/issues/comments/257756306","html_url":"https://github.com/UXDivers/Gorilla-Player-Support/issues/176#issuecomment-257756306","issue_url":"https://api.github.com/repos/UXDivers/Gorilla-Player-Support/issues/176","id":257756306,"user":{"login":"MrXemiu","id":4266607,"avatar_url":"https://avatars.githubusercontent.com/u/4266607?v=3","gravatar_id":"","url":"https://api.github.com/users/MrXemiu","html_url":"https://github.com/MrXemiu","followers_url":"https://api.github.com/users/MrXemiu/followers","following_url":"https://api.github.com/users/MrXemiu/following{/other_user}","gists_url":"https://api.github.com/users/MrXemiu/gists{/gist_id}","starred_url":"https://api.github.com/users/MrXemiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrXemiu/subscriptions","organizations_url":"https://api.github.com/users/MrXemiu/orgs","repos_url":"https://api.github.com/users/MrXemiu/repos","events_url":"https://api.github.com/users/MrXemiu/events{/privacy}","received_events_url":"https://api.github.com/users/MrXemiu/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T02:35:41Z","updated_at":"2016-11-02T02:35:41Z","body":"I read through that thread and it wasn't helpful.  I tried changing StaticResource to DynamicResource but the error persisted.  I double changed XLabs.Forms.BaseView and there's no corresponding .xaml document associated with it.  \r\n\r\nLastly, I want to reiterate that other .xaml documents that inherit from XLabs.Forms.BaseView and make use of both global and local styles render appropriately in Gorilla Player.  I think this issue is specific to ListView ItemTemplates."}}
{"actor":{"display_login":"MrXemiu"}}