Why does MarkupExtension return itself instead of ProvideValue? #25061
Unanswered
CodingOctocat
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using DevExpress Early Access Preview (v24.2) for MAUI, which provides the
dx:Ioc
MarkupExtension, so that's how I can use it:However, in Code-Behind, I can't put
BindingContext as MainViewModel
, throw runtime error: InvalidCastException: BindingContext is IocExtension, can not cast to MainViewModel. What is the reason for this?Beta Was this translation helpful? Give feedback.
All reactions