lepoco / lepoco/wpfui

Binding the control associated to the NavigationItems (instead of PageType)

Open
#596 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe

As far as I know, after checking the docs and the demo source code, binding the control that will be shown in the frame after navigating to the select item is not available. As I understand, the only way to set what will be shown, is set the PageType to a control derived from UIPage. I cannot use this approach as I am trying to follow MVVM, and this way I am unable to control the viewmodel of this page.

If I am wrong, please informe me!

Greetings

Describe the solution you'd like

Implement a way to bind the content associated with the NavigationItem from a viewmodel (similar to a ContentControl)

Describe alternatives you've considered

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by tracing how NavigationItem selects a PageType and how navigation content is created, then review the existing MVVM and ContentControl patterns. Done means a viewmodel can bind the content associated with a NavigationItem instead of supplying a UIPage-derived PageType.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.