ArgumentException: “-4”不是属性“MaxWidth”的有效值。 --Message: “-4”不是属性“MaxWidth”的有效值。 StackTrace: 在 System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) 在 System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) 在 DynamicClass.CreateActionItemButton(String buttonId, ActionItemInfo actionInfo, WindowState state) 在 DynamicClass.PopulateUI(WindowState state) 在 DynamicClass.SwitchGroup(String groupName, WindowState state) 在 DynamicClass.GroupSwitchTimer_Tick(WindowState state) 在 System.Windows.Threading.DispatcherTimer.FireTick(Object unused) 在 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)