Skip to content

Moving Sidebar items context menu options from sidebar class to items classes #8498

@oleklukasiewicz

Description

@oleklukasiewicz

What's the Problem?

In the SidebarControl.xaml.cs file, all the right-tap methods have a lot of variables specific to the current item (IsLocationItem, ShowProperties etc. ) that often repeat or are based on comparing item text, which decreases its flexibility and increases the size of the class code.

Solution/Idea

We could move these variables from sidebar methods to items directly.
After that every item will store text, icon ect. but also which context menu options will be shown in context menu.

Alternatives

N/A

Priorities

Capability Priority
This proposal will allow developers to make future changes to sidebar items easier Should
This proposal will allow to reduce code behind size Must

Files Version

No response

Windows Version

No response

Comments

No response

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions