C# 无法强制转换类型为';MS.Internal.InternalTransform';输入';System.Windows.Media.Transform';
当我试图使用Caliburn Micro的WindowManager显示对话框时,就会发生这种情况 奇怪的是,它并不总是发生。只是有时候,好像时间在其中起了作用,这对我来说毫无意义 WindowManager内部类DialogHost中的以下方法发生异常:C# 无法强制转换类型为';MS.Internal.InternalTransform';输入';System.Windows.Media.Transform';,c#,windows-phone-8,caliburn.micro,C#,Windows Phone 8,Caliburn.micro,当我试图使用Caliburn Micro的WindowManager显示对话框时,就会发生这种情况 奇怪的是,它并不总是发生。只是有时候,好像时间在其中起了作用,这对我来说毫无意义 WindowManager内部类DialogHost中的以下方法发生异常: void ArrangePlacement() { maskingLayer.Dispatcher.BeginInvoke(() => {
void ArrangePlacement()
{
maskingLayer.Dispatcher.BeginInvoke(() =>
{
var placement = new ElementPlacement
{
Transform = (Transform)currentPage.TransformToVisual(null),
Orientation = currentPage.Orientation,
Size = new Size(currentPage.ActualWidth, currentPage.ActualHeight)
};
elementPlacementAnimator.AnimateTo(placement);
});
}
我应该补充一点,它不是,因为我的Caliburn Micro版本是1.5.1,它已经有了这个补丁 这原来是Caliburn的问题,现在已经解决了
最后我自己修复了它,并在Caliburn的board:aa上发布了一个补丁,该补丁在Caliburn中修复: