Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
770
Setting IGTheme in xamGrid crases WPF designer
posted

When I set IGTheme for xamGrid, including

IG.xamGrid.xaml resource dictionary in resources of my application, grid is themed ok, but WPF designer crashes for every window of my application. (Removing the line removes the exception in designer)

I'm using Visual Studio 2012 RC. The exception in designer is:

Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteException

'{DependencyProperty.UnsetValue}' no es un valor válido para la propiedad 'System.Windows.Controls.Control.Template' en Setter.

   en System.Windows.Setter.Seal()   en System.Windows.SetterBaseCollection.Seal()   en System.Windows.Style.Seal()   en System.Windows.Style.System.Windows.ISealable.Seal()   en System.Windows.StyleHelper.SealIfSealable(Object value)   en System.Windows.ResourceDictionary.SealValue(Object value)   en System.Windows.ResourceDictionary.SealValues()   en System.Windows.ResourceDictionary.AddOwner(DispatcherObject owner)   en System.Windows.ResourceDictionary.PropagateParentOwners(ResourceDictionary mergedDictionary)   en System.Windows.ResourceDictionary.OnMergedDictionariesChanged(Object sender, NotifyCollectionChangedEventArgs e)   en System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)   en System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)   en System.Windows.ResourceDictionaryCollection.InsertItem(Int32 index, ResourceDictionary item)   en System.Collections.ObjectModel.Collection`1.Add(T item)   en Microsoft.Expression.DesignSurface.View.WPFSceneView.WpfResourceHost.TrySetApplicationResources()   en Microsoft.Expression.DesignSurface.View.WPFSceneView.WpfResourceHost.EndInstanceBuilding()   en Microsoft.Expression.DesignSurface.View.WPFSceneView.CrossDocumentUpdateToken.System.IDisposable.Dispose()   en Microsoft.Expression.Platform.InstanceBuilders.ViewNodeManager.UpdateInstances(IAttachViewRoot siteRoot, IList`1 contextNodes, CancellationToken cancelToken)   en Microsoft.Expression.DesignSurface.View.XamlSceneView.UpdateInstancesInternal()   en Microsoft.Expression.DesignSurface.View.XamlSceneView.UpdateInternal(Boolean updateInstances, Boolean updateReferences)   en Microsoft.Expression.DesignSurface.View.WPFSceneView.UpdateInternal(Boolean updateInstances, Boolean updateReferences)   en Microsoft.Expression.DesignSurface.View.XamlSceneView.UpdateFromDamage(ViewStateBits viewStateBits, DocumentNodeChangeList damage, SceneUpdateTypeFlags updateFlags)   en Microsoft.Expression.DesignSurface.ViewModel.SceneViewModel.UpdateView(SceneUpdateTypeFlags flags)   en Microsoft.Expression.DesignSurface.ViewModel.SceneViewModel.SceneDocument_EditTransactionCompleting(Object sender, EventArgs e)   en System.EventHandler`1.Invoke(Object sender, TEventArgs e)   en Microsoft.Expression.DesignSurface.Documents.SceneDocument.OnCompletingEditTransaction(Boolean designSurfaceAware, SceneEditTransaction transaction)   en Microsoft.Expression.DesignSurface.Pipeline.SceneEditTransaction.Commit(Boolean notifyDocument)   en Microsoft.Expression.DesignSurface.DesignerUndoService.CommitPlaceholderTextUndoUnit(Boolean shouldBroadcast)   en Microsoft.Expression.DesignSurface.View.SceneView.CommitTextEdits(Boolean forceUpdateIfWarnings)   en Microsoft.Expression.DesignSurface.View.SceneView.SynchronizeTextEdits()   en Microsoft.Expression.DesignSurface.View.SceneView.StopTimerAndCommitTextEdits()   en Microsoft.Expression.DesignSurface.View.SceneView.TextCommitTimeoutTimer_Tick(Object sender, EventArgs e)   en System.Windows.Threading.DispatcherTimer.FireTick(Object unused)   en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)   en MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)   en System.Windows.Threading.DispatcherOperation.InvokeImpl()   en System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)   en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)   en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)   en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)   en System.Windows.Threading.DispatcherOperation.Invoke()   en System.Windows.Threading.Dispatcher.ProcessQueue()   en System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)   en MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)   en MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)   en System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)   en MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)   en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)   en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)   en MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)   en System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)   en System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)   en System.Windows.Threading.Dispatcher.Run()   en System.Windows.Application.RunDispatcher(Object ignore)   en System.Windows.Application.RunInternal(Window window)   en System.Windows.Application.Run(Window window)   en System.Windows.Application.Run()   en Microsoft.Expression.DesignHost.Isolation.IsolationProcess.RunApplication()   en Microsoft.Expression.DesignHost.Isolation.IsolationProcess.<>c__DisplayClass2.<Main>b__0()   en System.Threading.ThreadHelper.ThreadStart_Context(Object state)   en System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)   en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)   en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)   en System.Threading.ThreadHelper.ThreadStart()

Parents Reply Children