You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using version 3.2.0 inconjuction with DevExpress Wpf controls. When we call TryClose from a Screen it throws a "Ambiguous match found" exception. Stack trace below:
Ambiguous match found.
at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
at System.Type.GetMethod(String name)
at Caliburn.Micro.XamlPlatformProvider.GetViewCloseAction(Object viewModel, ICollection1 views, Nullable1 dialogResult)
at Caliburn.Micro.Screen.TryClose(Nullable`1 dialogResult)
It looks like the issue is in the XamlPlatformProvider.cs in the method GetViewCloseAction. Caliburn micro does a GetMethod("Close"), however DevExpress ThemedWindow has an overloaded Close method aswell as the base Window class. Would it be possible to change this GetMethod() line of code to return GetMethods("Close") and choose the method with no parameters?
Would greatly appreciate an update.
Thanks.
The text was updated successfully, but these errors were encountered:
Hello,
We are using version 3.2.0 inconjuction with DevExpress Wpf controls. When we call TryClose from a Screen it throws a "Ambiguous match found" exception. Stack trace below:
Ambiguous match found.
at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
at System.Type.GetMethod(String name)
at Caliburn.Micro.XamlPlatformProvider.GetViewCloseAction(Object viewModel, ICollection
1 views, Nullable
1 dialogResult)at Caliburn.Micro.Screen.TryClose(Nullable`1 dialogResult)
It looks like the issue is in the XamlPlatformProvider.cs in the method GetViewCloseAction. Caliburn micro does a GetMethod("Close"), however DevExpress ThemedWindow has an overloaded Close method aswell as the base Window class. Would it be possible to change this GetMethod() line of code to return GetMethods("Close") and choose the method with no parameters?
Would greatly appreciate an update.
Thanks.
The text was updated successfully, but these errors were encountered: