Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.86 KB | None | 0 0
  1. <Style x:Key="GoItemCellControlStyle" TargetType="{x:Type ig:CellControl}" BasedOn="{StaticResource {x:Type ig:CellControl}}">
  2. <Setter Property="Template">
  3. <Setter.Value>
  4. <ControlTemplate>
  5. <Grid>
  6. <igRibbon:MenuTool x:Name="ItemMenu" SmallImage="{StaticResource Go16}"
  7.  
  8. ItemsSource="{Binding DataContext.ShellContext.SKULGoCommands,RelativeSource={RelativeSource AncestorType={x:Type ig:XamGrid}}}">
  9. <igRibbon:MenuTool.Resources>
  10. <Style TargetType="{x:Type igRibbon:MenuToolPresenter}">
  11. <Setter Property="Visibility" Value="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type igPrim:CellsPanel}}, Converter={StaticResource VisibilityHiddenIfFalse}}"/>
  12.  
  13. </Style>
  14. </igRibbon:MenuTool.Resources>
  15. </igRibbon:MenuTool>
  16. </Grid>
  17. </ControlTemplate>
  18. </Setter.Value>
  19. </Setter>
  20. </Style>
  21.  
  22.  
  23. System.NullReferenceException
  24. Object reference not set to an instance of an object.
  25. at System.Windows.Controls.Primitives.Popup.OnWindowResize(Object sender, AutoResizedEventArgs e)
  26. at System.Windows.Interop.HwndSource.Resize(Size newSize)
  27. at System.Windows.Interop.HwndSource.OnLayoutUpdated(Object obj, EventArgs args)
  28. at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
  29. at System.Windows.ContextLayoutManager.UpdateLayout()
  30. at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
  31. at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
  32. at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
  33. at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
  34. at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
  35. at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
  36. at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
  37. System.InvalidOperationException
  38. 'Toll.ICS.UI.Commands.SKULCommand`2[Toll.ICS.UI.SKUL.Simulation,Toll.ICS.ViewModel.DataContexts.SKUL.SimulationContext]' is not a Visual or Visual3D.
  39. at MS.Internal.Media.VisualTreeUtils.AsVisual(DependencyObject element, Visual& visual, Visual3D& visual3D)
  40. at MS.Internal.Media.VisualTreeUtils.AsNonNullVisual(DependencyObject element, Visual& visual, Visual3D& visual3D)
  41. at System.Windows.Media.VisualTreeHelper.GetParent(DependencyObject reference)
  42. at Infragistics.Windows.Ribbon.RibbonToolHelper.CoerceSizingMode(DependencyObject d, Object newValue)
  43. at 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)
  44. at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
  45. at System.Windows.DependencyObject.CoerceValue(DependencyProperty dp)
  46. at Infragistics.Windows.Ribbon.XamRibbon.OnLocationChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  47. at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
  48. at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
  49. at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
  50. at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
  51. at System.Windows.DependencyObject.SetValue(DependencyPropertyKey key, Object value)
  52. at Infragistics.Windows.Ribbon.MenuToolBase.SetLocation(DependencyObject element, Object item)
  53. at Infragistics.Windows.Ribbon.MenuToolBase.PrepareContainerForItemOverride(DependencyObject element, Object item)
  54. at Infragistics.Windows.Ribbon.MenuToolBase.PrepareContainerForItemInternal(ToolMenuItem parentMenuItem, DependencyObject element, Object item)
  55. at Infragistics.Windows.Ribbon.ToolMenuItem.PrepareContainerForItemOverride(DependencyObject element, Object item)
  56. at System.Windows.Controls.ItemsControl.MS.Internal.Controls.IGeneratorHost.PrepareItemContainer(DependencyObject container, Object item)
  57. at System.Windows.Controls.ItemContainerGenerator.System.Windows.Controls.Primitives.IItemContainerGenerator.PrepareItemContainer(DependencyObject container)
  58. at System.Windows.Controls.Panel.GenerateChildren()
  59. at System.Windows.Controls.Panel.EnsureGenerator()
  60. at System.Windows.Controls.Panel.get_InternalChildren()
  61. at Infragistics.Windows.Ribbon.Internal.MenuToolPanel.MeasureOverride(Size availableSize)
  62. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  63. at System.Windows.UIElement.Measure(Size availableSize)
  64. at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
  65. at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
  66. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  67. at System.Windows.UIElement.Measure(Size availableSize)
  68. at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
  69. at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
  70. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  71. at System.Windows.UIElement.Measure(Size availableSize)
  72. at System.Windows.Controls.Border.MeasureOverride(Size constraint)
  73. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  74. at System.Windows.UIElement.Measure(Size availableSize)
  75. at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
  76. at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
  77. at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
  78. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  79. at System.Windows.UIElement.Measure(Size availableSize)
  80. at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
  81. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  82. at System.Windows.UIElement.Measure(Size availableSize)
  83. at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
  84. at Infragistics.Windows.Controls.PopupResizerDecorator.MeasureOverride(Size constraint)
  85. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  86. at System.Windows.UIElement.Measure(Size availableSize)
  87. at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
  88. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  89. at System.Windows.UIElement.Measure(Size availableSize)
  90. at System.Windows.Controls.Border.MeasureOverride(Size constraint)
  91. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  92. at System.Windows.UIElement.Measure(Size availableSize)
  93. at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
  94. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  95. at System.Windows.UIElement.Measure(Size availableSize)
  96. at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
  97. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  98. at System.Windows.UIElement.Measure(Size availableSize)
  99. at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
  100. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  101. at System.Windows.UIElement.Measure(Size availableSize)
  102. at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)
  103. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  104. at System.Windows.UIElement.Measure(Size availableSize)
  105. at System.Windows.Controls.Primitives.PopupRoot.MeasureOverride(Size constraint)
  106. at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
  107. at System.Windows.UIElement.Measure(Size availableSize)
  108. at System.Windows.Interop.HwndSource.SetLayoutSize()
  109. at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
  110. at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
  111. at System.Windows.Controls.Primitives.Popup.SetRootVisualToPopupRoot()
  112. at System.Windows.Controls.Primitives.Popup.CreateWindow(Boolean asyncCall)
  113. at System.Windows.Controls.Primitives.Popup.OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
  114. at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
  115. at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
  116. at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
  117. at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
  118. at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
  119. at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
  120. at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
  121. at System.Windows.Data.BindingExpression.ScheduleTransfer(Boolean isASubPropertyChange)
  122. at MS.Internal.Data.ClrBindingWorker.NewValueAvailable(Boolean dependencySourcesChanged, Boolean initialValue, Boolean isASubPropertyChange)
  123. at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
  124. at MS.Internal.Data.PropertyPathWorker.OnDependencyPropertyChanged(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
  125. at MS.Internal.Data.ClrBindingWorker.OnSourceInvalidation(DependencyObject d, DependencyProperty dp, Boolean isASubPropertyChange)
  126. at System.Windows.Data.BindingExpression.HandlePropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
  127. at System.Windows.Data.BindingExpressionBase.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
  128. at System.Windows.Data.BindingExpression.OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args)
  129. at System.Windows.DependentList.InvalidateDependents(DependencyObject source, DependencyPropertyChangedEventArgs sourceArgs)
  130. at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
  131. at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
  132. at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
  133. at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
  134. at MS.Internal.Data.PropertyPathWorker.SetValue(Object item, Object value)
  135. at MS.Internal.Data.ClrBindingWorker.UpdateValue(Object value)
  136. at System.Windows.Data.BindingExpression.UpdateSource(Object value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement