Skip to content

[BREAKING] Adjustment of the FrameworkElement APIs to align with UWP #1251

Closed

Description

@jeromelaban

What would you like to be added

Currently, on iOS and Android, the FrameworkElement inheritance chain is incorrect for some contols, such as Image or ScrollContentPresenter. This is related to a legacy structure that was required at some point to ease the creation of controls.

This is not required anymore, and this has the effect keeping interfaces like IFrameworkElement or the fact that UIElementCollection element types are native views instead of UIElement.

This will also remove most of the code that is generated in the T4 "mixins".

Why is this needed

This will align Uno APIs to the UWP, particularly with regards to Panel methods.

For which Platform:

  • iOS
  • Android
  • WebAssembly
  • Windows

Anything else we need to know?

Activity

  1. added
    kind/enhancement
    platform/android 🤖
    platform/ios 🍎
    on Jul 17, 2019
  2. MartinZikmund commented on Jul 26, 2019

    @MartinZikmund
    Member

    Will this have an adverse effect on being able to embed native views in XAML? Will there be a workaround?

  3. jeromelaban commented on Jul 26, 2019

    @jeromelaban
    MemberAuthor

    It most likely will not, as there will be an automatic “wrapping” of native view in a some sort of “PlatformControl” that will make this scenario transparent.

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

Metadata

Metadata

Labels

kind/enhancementplatform/android 🤖platform/ios 🍎

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions