Skip to content

[BUG] WPF - ViewModelViewHost and RoutedViewHost not displaying DefaultContent #2815

@AliveDevil

Description

@AliveDevil

Describe the bug
ViewModelViewHost and RoutedViewHost do not display default content on WPF platform for not set ViewModel or not-performed initial navigation.

Steps To Reproduce
Add ViewModelViewHost or RoutedViewHost to Window, add default content, do not set anything else.

Expected behavior
I expect the default content to be shown for RoutedViewHost and ViewModelViewHost when no viewmodel is set or navigation has been performed.

Screenshots
Instead of the screenshot here is a minimal repro - both working, and not working.
rx-repro.zip

Environment

  • OS: Windows
  • Version: 14.1.1, basically 9.8.9
  • Platform: WPF

Additional context
For ViewModelViewHost this broke from 9.8.1 to 9.8.9
In case of RoutedViewHost: This is broken since atleast release 8.0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions