База знаний

Шаг 1 – попробуйте найти ответ:

Ошибка при использовании 4 мониторов
Автор Alexey TSLab на 08 March 2017 21:29

ошибка в microsoft NET Framework

System.InvalidOperationException: Невозможно показать окно, если для ShowActivated установлено значение False, а для WindowState — значение Maximized.
в System.Windows.Window.VerifyConsistencyWithShowActivated()
в System.Windows.Window.CoerceVisibility(DependencyObject d, Object value)

Microsoft как правило исправляет такие ошибки в будущих версиях Framework и Windows
Ошибка к программе не относится, исправлять нечего.

 

Пример ошибки, выводимой в окно windows:

System.InvalidOperationException: Невозможно показать окно, если для ShowActivated установлено значение False, а для WindowState — значение Maximized.
в System.Windows.Window.VerifyConsistencyWithShowActivated()
в System.Windows.Window.CoerceVisibility(DependencyObject d, Object value)
в System.Windows.DependencyObject.ProcessCoerceValue(DependencyProperty dp, PropertyMetadata metadata, EntryIndex& entryIndex, Int32& targetIndex, EffectiveValueEntry& newEntry, EffectiveValueEntry& oldEntry, Object& oldValue, Object baseValue, Object controlValue, CoerceValueCallback coerceValueCallback, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, Boolean skipBaseValueChecks)
в System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
в System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
в System.Windows.Window.UpdateVisibilityProperty(Visibility value)
в System.Windows.Window.WmShowWindow(IntPtr wParam, IntPtr lParam)
в System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
в System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
в 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)

 

(0 голос(а))
Эта статья полезна
Эта статья бесполезна