ArgumentException: 值不在预期的范围内。 --Message: 值不在预期的范围内。 StackTrace: 在 System.Windows.Media.Composition.DUCE.Channel.ReleaseOnChannel(ResourceHandle handle) 在 System.Windows.Media.Composition.DUCE.MultiChannelResource.ReleaseOnChannel(Channel channel) 在 System.Windows.Media.RenderData.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel) 在 System.Windows.UIElement.FreeContent(Channel channel) 在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel) 在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel) 在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel) 在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel) 在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel) 在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel) 在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel) 在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel) 在 System.Windows.Media.Visual.System.Windows.Media.Composition.DUCE.IResource.ReleaseOnChannel(Channel channel) 在 System.Windows.Media.CompositionTarget.SetRootVisual(Visual visual) 在 System.Windows.Media.CompositionTarget.set_RootVisual(Visual value) 在 System.Windows.Interop.HwndTarget.set_RootVisual(Visual value) 在 System.Windows.Interop.HwndTarget.Dispose() 在 System.Windows.Interop.HwndSource.Dispose(Boolean disposing) 在 System.Windows.Interop.HwndSource.OnHwndDisposed(Object sender, EventArgs args) 在 MS.Win32.HwndWrapper.Dispose(Boolean disposing, Boolean isHwndBeingDestroyed) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ArgumentException: 值不在预期的范围内。 --Message: 值不在预期的范围内。 StackTrace: