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.
Description
Some code is duplicated between
DetailsLayoutBrowser.xaml.cs,
GridViewBrowser.xaml.csand
ColumnViewBase.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
Gains
Requirements
BaseLayout.cs
Comments
No response