Based on #22597
We should be including the design-time DataContext on the Pages when we have an MVVM or MVUX model as part of the template.
This would enhance the initial experience by properly providing users with Binding Intellisense (at least on Visual Studio) and would also serve as a hint to the users on how to properly define this design-time data for subsequent Pages and ViewModels that they may create later on in the project
Example:
d:DataContext="{d:d:DataContext="{d:DesignInstance Type=local:MainViewModel}"Type=local:MainViewModel}"
Source:
https://learn.microsoft.com/en-us/visualstudio/xaml-tools/xaml-designtime-data?view=visualstudio
Based on #22597
We should be including the design-time DataContext on the Pages when we have an MVVM or MVUX model as part of the template.
This would enhance the initial experience by properly providing users with Binding Intellisense (at least on Visual Studio) and would also serve as a hint to the users on how to properly define this design-time data for subsequent Pages and ViewModels that they may create later on in the project
Example:
d:DataContext="{d:d:DataContext="{d:DesignInstance Type=local:MainViewModel}"Type=local:MainViewModel}"Source:
https://learn.microsoft.com/en-us/visualstudio/xaml-tools/xaml-designtime-data?view=visualstudio