Replies: 13 comments
-
是不是忘记指定host id了? |
Beta Was this translation helpful? Give feedback.
-
我看DEMO里面并没有指定host id,直接就是OverlayDialog.ShowCustomModal<DialogWithAction, DialogWithActionViewModel, bool>(new DialogWithActionViewModel()); |
Beta Was this translation helpful? Give feedback.
-
没有ID就意味着我在使用放在MainView的那个无ID host。你这个case我不确定是不是放了那个host。 |
Beta Was this translation helpful? Give feedback.
-
确实是MainView,我在MainView加上就好了,name是host,这个是默认的ID吗? |
Beta Was this translation helpful? Give feedback.
-
DialogHost有一个属性叫做HostId,这个是在ShowDialog时候需要指定的东西,如果这个没设置,他的Id就是null |
Beta Was this translation helpful? Give feedback.
-
要不你把这个demo上传github我看看是什么情况 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
InitializeComponent也不提示错误吗? |
Beta Was this translation helpful? Give feedback.
-
有可能就是因为你的plugin没有reference ursa |
Beta Was this translation helpful? Give feedback.
-
我试着把AVALONIA降到11.0.7 InitializeComponent 就正常了,反之升级到11.0.10就不行。 |
Beta Was this translation helpful? Give feedback.
-
所以我可以认为这个问题解决了吗 |
Beta Was this translation helpful? Give feedback.
-
也算是解决了吧,估计后面的版本可能是因为哪个引用造成的。 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions