Skip to content

Code Quality: Duplication in DetailsLayoutBrowser, ColumnViewBase and GridViewBrowser #10305

@QuaintMako

Description

@QuaintMako

Description

Some code is duplicated between DetailsLayoutBrowser.xaml.cs, GridViewBrowser.xaml.csandColumnViewBase.xaml.cs`. Sometimes it's entire methods, sometimes it's only partial bits.

These classes are already inheriting from BaseLayout.cs. The duplicated code may be better hoisted inside this class.

Concerned code

  • BaseLayout.cs
  • ColumnViewBase.xaml.cs
  • DetailsLayoutBrowser.xaml.cs
  • GridViewBrowser.xaml.cs

Gains

  • Better maintainability.
  • No need to do the same modifications thrice when we want to add a functionality to the three views.

Requirements

  • Hoist the duplicated code into BaseLayout.cs

Comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    🔖 Ready to build

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions