Skip to content

Merge IFrameworkElement and IView and Remove IPage - #1875

Merged
mattleibow merged 18 commits into
release/6.0.1xx-preview7from
dev/merge-ife-iv
Aug 3, 2021
Merged

mattleibow merged 18 commits into
release/6.0.1xx-preview7from
dev/merge-ife-iv

Conversation

@mattleibow

@mattleibow mattleibow commented Jul 30, 2021 •

Copy link
Copy Markdown
Member

Description of Change

All usages of IFrameworkElement we also IView.

Previously VisualElement was IFrameworkElement. There were 2 cases of VisualElement, Page and View, but Page is IPage, which in turn is IView...

There is nothing on IFrameworkElement except Margin, but since IPage is IView, that was already defined as a Margin.Zero. And this it not too bad. Someone might come along and decide that a split page window might want margins. Who knows.

Additions made

  • Merged IFrameworkElement into IView
  • Added Thickness Margin { get; } to IView
  • Added ITitledElement for all elements that have an additional title property for pages/windows/chrome
  • Added IContentView for all views that actually are actually displaying another view
  • Removed IPage and use IView

@mattleibow mattleibow added this to the 6.0.100-preview.7 milestone Jul 30, 2021
@mattleibow
mattleibow requested review from Clancey, PureWeen and hartez and removed request for Clancey, PureWeen and hartez July 30, 2021 03:34
Comment on lines -197 to -199
#region IView

protected PropertyMapper propertyMapper;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved these 2 regions into the View.Impl.cs file as that is where this should be.

Comment on lines -15 to +11
public partial class View : VisualElement, IView, IViewController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView
public partial class View : VisualElement, IViewController, IGestureController, IGestureRecognizers

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to the View.Impl.cs file

double IView.Width => WidthRequest;
double IView.Height => HeightRequest;

Thickness IView.Margin => Thickness.Zero;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only addition. We override it on View and we had this value on Page.

@mattleibow mattleibow changed the title Merge IFrameworkElement and IView Merge IFrameworkElement and IView and Remove IPage Aug 2, 2021
rookiejava added a commit to rookiejava/maui that referenced this pull request Nov 22, 2021
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Nov 23, 2021
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Dec 6, 2021
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Dec 7, 2021
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Dec 13, 2021
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Dec 14, 2021
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Dec 20, 2021
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Dec 27, 2021
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Jan 3, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Jan 17, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Jan 19, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Jan 21, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Jan 27, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 4, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 8, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 10, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 21, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 23, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 25, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Feb 28, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 2, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 2, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 3, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 4, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 7, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 8, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 8, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 9, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 10, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
rookiejava added a commit to rookiejava/maui that referenced this pull request Mar 10, 2022
- Merge IFrameworkElement and IView and Remove IPage (dotnet#1875)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants