Skip to content

Bug: NavigationView element properties not settable via record with-expression #285

@sundaramramaswamy

Description

@sundaramramaswamy

Problem

NavigationViewElement doesn't expose SelectedTag and IsPaneOpen as record properties, so they can't be used with with {} syntax. Agents must use .Set(nv => nv.IsPaneOpen = true) which is less discoverable.

Evidence

  • settings-hub benchmark: agent tried with { SelectedTag = ..., IsPaneOpen = true } which doesn't compile

Proposed Fix

Add SelectedTag and IsPaneOpen as properties on the NavigationViewElement record, handled in the reconciler update path.

Category

Framework bug — code change + reconciler update.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions