-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for d:DesignInstance when using d:DataContext in designer #2445
Comments
For those who came across this issue while looking for a way to set a design-time <UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="clr-namespace:AssemblyName.DesignTime;assembly=AssemblyName"
x:Class="AssemblyName.Views.LoginView">
<Design.DataContext>
<d:DesignTimeLoginViewModel />
</Design.DataContext>
</UserControl> See also: https://avaloniaui.net/docs/quickstart/vs-designer#design-time-properties Should be quite easy to add support for |
Docs have moved to https://docs.avaloniaui.net/docs/getting-started/ide-support#design-time-properties FYI |
Somewhat related: Whenever I use |
Yes thank you, that issue is exactly what I am having. This is just the issue that showed up when I googled the problem :P I have commented and will continue discussion there. |
Error:
Repro:
The text was updated successfully, but these errors were encountered: