Coder Social home page Coder Social logo

listframes2's Introduction

ListFrames2

Description

On iOS the Slots are not rendered (or invisible?). Displays a blank open space where the Slots should have been rendered.

UI Structure

Xamarin Forms 
  Content Page
    StackLayout
      ListView
        ItemTemplate 
          DataTemplate
            StackLayout
              Label
              Label
              TimeSlotsWrapLayout (Layout<View>)
                BindingProperty (TimeSlotsSourceProperty TimeSlots)
                  Frame (Random number of Frames - Slots)
                    Label 

Not using groups

Code @ https://github.com/gregmercer/ListFrames2

Stack Trace

na

Steps to Reproduce

  • When App opens the FramesPage gets OnAppearing. Shows page with UI structure heirarchy shown above.
  • Tab to second page - OtherPage.
  • Tab back to Frames page.

Actual Behavior

  • Scroll. Notice Slots are not being rendered (or invisible?).

Expected Behavior

  • The Slots should be displaying correctly for each ListView row.

Some findings:

Running with local build of Xamarin Forms I've found that if I changed the

RendererPool.cs UpdateNewElement method to have the following new testing code it

seemed to cause the Slots to render correctly:

public void UpdateNewElement(VisualElement newElement)

    ...

      if (oldChildren.Count == newChildren.Count)
      {
        for (var i = 0; i < oldChildren.Count; i++)
        {
          if (oldChildren[i].GetType() != newChildren[i].GetType())
          {
            sameChildrenTypes = false;
            break;
          }
        }
      }
      else
        sameChildrenTypes = false;

<testing code added>

      if (sameChildrenTypes) 
      {
          if (newElement is StackLayout)
          {
              //sameChildrenTypes = false;
              ClearRenderers(_parent);
              FillChildrenWithRenderers(newElement);
              return;
          }
      }

</testing code added>

Basic Information

Version with issue: - Include="Xamarin.Forms" Version="2.5.0" a356efc Last known good version: - New issue

IDE: - Visual Studio

Platform Target Frameworks: iOS: Renders incorectly, or invisible. Android: Works fine

Nuget Packages: Xamarin Forms

Affected Devices: IOS emulator and iPhone 6 (real device)

Screenshots image

listframes2's People

Contributors

gregmercer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.