Skip to content

Fix invalid type resolution for remote control client - #2055

Merged
jeromelaban merged 1 commit into
masterfrom
dev/jela/fix-rc
Nov 9, 2019
Merged

jeromelaban merged 1 commit into
masterfrom
dev/jela/fix-rc

Conversation

@jeromelaban

Copy link
Copy Markdown
Member

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the new behavior?

Building an Uno app without the Uno.UI.RemoteControl package works.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

@gitpod-io

gitpod-io Bot commented Nov 9, 2019

Copy link
Copy Markdown

@jeromelaban jeromelaban added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Nov 9, 2019
@github-actions github-actions Bot added the area/code-generation Categorizes an issue or PR as relevant to code generation label Nov 9, 2019
@jeromelaban

Copy link
Copy Markdown
Member Author

/azp run

@jeromelaban
jeromelaban merged commit 7ee0e51 into master Nov 9, 2019
@jeromelaban
jeromelaban deleted the dev/jela/fix-rc branch November 9, 2019 18:36
@MartinZikmund

Copy link
Copy Markdown
Member

@jeromelaban Is it possible the Uno.UI.RemoteControl package didn't get updated to 2.0.512-dev.3874? I can see only 2.0.512-dev.3872 on NuGet

@jeromelaban

Copy link
Copy Markdown
Member Author

@MartinZikmund indeed, it was not pulished properly. I did the dance that's needed for signed packages to be published properly ;) Let me know if that works!

MartinZikmund added a commit that referenced this pull request Jul 2, 2026
BC26 (uno-private #2055). The interface only ever existed because native
mobile UIElement had to inherit a native view; with the native targets
dropped, DependencyObject becomes a normal base class as in WinUI.

The per-type mixin the DependencyObjectGenerator used to inject (store,
GetValue/SetValue, binder, DataContext/TemplatedParent, IWeakReference
Provider, IDependencyObjectInternal, ToString, [Bindable]) now lives once
on the DependencyObject base class. DataContextProperty and Templated
ParentProperty are registered a single time on the base (ownerType =
DependencyObject) rather than per type; the store keeps using them
unchanged (the DependencyObjectStore itself is untouched - that is a
later phase). The generator and its diagnostics/tests are removed.

Re-rooting and consumer fixes:
- IFrameworkElement no longer extends DependencyObject (an interface can
  no longer inherit the class); call sites that used IFrameworkElement as
  a DependencyObject now cast.
- Shared partials that declared ": DependencyObject" while a platform
  partial declared the real base (TextBlock) or that listed it after an
  interface (RowDefinition, ColumnDefinition, NativeListViewBase) are
  reconciled so the base class comes first / only once.
- "where T : class, DependencyObject" constraints drop the now-illegal
  class constraint.
- FlyoutBase/SetterBase OnDataContextChangedPartial and RowDefinition/
  ColumnDefinition/Brush OnPropertyChanged2 become overrides of the base
  virtuals.

Builds clean on Skia (net10.0).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V1DDwHqUPDocBBHeu1YX3Z
MartinZikmund added a commit that referenced this pull request Jul 6, 2026
BC26 (uno-private #2055). The interface only ever existed because native
mobile UIElement had to inherit a native view; with the native targets
dropped, DependencyObject becomes a normal base class as in WinUI.

The per-type mixin the DependencyObjectGenerator used to inject (store,
GetValue/SetValue, binder, DataContext/TemplatedParent, IWeakReference
Provider, IDependencyObjectInternal, ToString, [Bindable]) now lives once
on the DependencyObject base class. DataContextProperty and Templated
ParentProperty are registered a single time on the base (ownerType =
DependencyObject) rather than per type; the store keeps using them
unchanged (the DependencyObjectStore itself is untouched - that is a
later phase). The generator and its diagnostics/tests are removed.

Re-rooting and consumer fixes:
- IFrameworkElement no longer extends DependencyObject (an interface can
  no longer inherit the class); call sites that used IFrameworkElement as
  a DependencyObject now cast.
- Shared partials that declared ": DependencyObject" while a platform
  partial declared the real base (TextBlock) or that listed it after an
  interface (RowDefinition, ColumnDefinition, NativeListViewBase) are
  reconciled so the base class comes first / only once.
- "where T : class, DependencyObject" constraints drop the now-illegal
  class constraint.
- FlyoutBase/SetterBase OnDataContextChangedPartial and RowDefinition/
  ColumnDefinition/Brush OnPropertyChanged2 become overrides of the base
  virtuals.

Builds clean on Skia (net10.0).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V1DDwHqUPDocBBHeu1YX3Z
MartinZikmund added a commit that referenced this pull request Jul 7, 2026
BC26 (uno-private #2055). The interface only ever existed because native
mobile UIElement had to inherit a native view; with the native targets
dropped, DependencyObject becomes a normal base class as in WinUI.

The per-type mixin the DependencyObjectGenerator used to inject (store,
GetValue/SetValue, binder, DataContext/TemplatedParent, IWeakReference
Provider, IDependencyObjectInternal, ToString, [Bindable]) now lives once
on the DependencyObject base class. DataContextProperty and Templated
ParentProperty are registered a single time on the base (ownerType =
DependencyObject) rather than per type; the store keeps using them
unchanged (the DependencyObjectStore itself is untouched - that is a
later phase). The generator and its diagnostics/tests are removed.

Re-rooting and consumer fixes:
- IFrameworkElement no longer extends DependencyObject (an interface can
  no longer inherit the class); call sites that used IFrameworkElement as
  a DependencyObject now cast.
- Shared partials that declared ": DependencyObject" while a platform
  partial declared the real base (TextBlock) or that listed it after an
  interface (RowDefinition, ColumnDefinition, NativeListViewBase) are
  reconciled so the base class comes first / only once.
- "where T : class, DependencyObject" constraints drop the now-illegal
  class constraint.
- FlyoutBase/SetterBase OnDataContextChangedPartial and RowDefinition/
  ColumnDefinition/Brush OnPropertyChanged2 become overrides of the base
  virtuals.

Builds clean on Skia (net10.0).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V1DDwHqUPDocBBHeu1YX3Z
MartinZikmund added a commit that referenced this pull request Jul 7, 2026
BC26 (uno-private #2055). The interface only ever existed because native
mobile UIElement had to inherit a native view; with the native targets
dropped, DependencyObject becomes a normal base class as in WinUI.

The per-type mixin the DependencyObjectGenerator used to inject (store,
GetValue/SetValue, binder, DataContext/TemplatedParent, IWeakReference
Provider, IDependencyObjectInternal, ToString, [Bindable]) now lives once
on the DependencyObject base class. DataContextProperty and Templated
ParentProperty are registered a single time on the base (ownerType =
DependencyObject) rather than per type; the store keeps using them
unchanged (the DependencyObjectStore itself is untouched - that is a
later phase). The generator and its diagnostics/tests are removed.

Re-rooting and consumer fixes:
- IFrameworkElement no longer extends DependencyObject (an interface can
  no longer inherit the class); call sites that used IFrameworkElement as
  a DependencyObject now cast.
- Shared partials that declared ": DependencyObject" while a platform
  partial declared the real base (TextBlock) or that listed it after an
  interface (RowDefinition, ColumnDefinition, NativeListViewBase) are
  reconciled so the base class comes first / only once.
- "where T : class, DependencyObject" constraints drop the now-illegal
  class constraint.
- FlyoutBase/SetterBase OnDataContextChangedPartial and RowDefinition/
  ColumnDefinition/Brush OnPropertyChanged2 become overrides of the base
  virtuals.

Builds clean on Skia (net10.0).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V1DDwHqUPDocBBHeu1YX3Z
MartinZikmund added a commit that referenced this pull request Jul 8, 2026
BC26 (uno-private #2055). The interface only ever existed because native
mobile UIElement had to inherit a native view; with the native targets
dropped, DependencyObject becomes a normal base class as in WinUI.

The per-type mixin the DependencyObjectGenerator used to inject (store,
GetValue/SetValue, binder, DataContext/TemplatedParent, IWeakReference
Provider, IDependencyObjectInternal, ToString, [Bindable]) now lives once
on the DependencyObject base class. DataContextProperty and Templated
ParentProperty are registered a single time on the base (ownerType =
DependencyObject) rather than per type; the store keeps using them
unchanged (the DependencyObjectStore itself is untouched - that is a
later phase). The generator and its diagnostics/tests are removed.

Re-rooting and consumer fixes:
- IFrameworkElement no longer extends DependencyObject (an interface can
  no longer inherit the class); call sites that used IFrameworkElement as
  a DependencyObject now cast.
- Shared partials that declared ": DependencyObject" while a platform
  partial declared the real base (TextBlock) or that listed it after an
  interface (RowDefinition, ColumnDefinition, NativeListViewBase) are
  reconciled so the base class comes first / only once.
- "where T : class, DependencyObject" constraints drop the now-illegal
  class constraint.
- FlyoutBase/SetterBase OnDataContextChangedPartial and RowDefinition/
  ColumnDefinition/Brush OnPropertyChanged2 become overrides of the base
  virtuals.

Builds clean on Skia (net10.0).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01V1DDwHqUPDocBBHeu1YX3Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/code-generation Categorizes an issue or PR as relevant to code generation ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants