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()
Hello,
Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation. I also attached a screenshot from the VS 2012 designer and the applied theme.
Looking forward for your reply.
I opened yor project with Visual Studio 2012 and obtained the exception in the design view. I attached a screenshot. Maybe I have problems because I'm using spanish version of Visual Studio?
Hello Isidoro Aquilera,
We are still following this forum thread.Have you been able to take a look at your visual studio specifications?
Please feel free to let us know if you still have any questions or concerns with this matter.
Hello Isidoro,
After some research it turns out that the issue comes from the Spanish version of VS. It seems like that it doesn’t accept this syntax:
<Thickness>1,2,3,4</Thickness>
Only this one:
<Thickness>1 2 3 4</Thickness>
They are both valid, but for some reason the VS Designer in the Spanish VS2012 doesn't handle the first very well. I can suggest you edit the file by replacing the first syntax with the second one.
Hope this helps you.
I have logged this with development under ID: 119187 and I have also created a support ticket on your behalf: CAS-97387-9LV6N8 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://ko.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://ko.infragistics.com/Membership/MySupport.aspx
You can download spanish version from Microsoft site, I installed with spanish installer.
I downloaded here:
http://www.microsoft.com/visualstudio/11/en-us/downloads#professional
And selected download language spanish (Español), on the left side, (not the language pack, the complete installation in spanish, click the button "Visual Studio Professional 2012 90 day trial - Español, Install now"
Thanks
It seems like that the only difference is that your VS is in Spanish, so could you please tell how exactly did you make it Spanish, so I can test the sample on a similar environment as your, in order to investigate this further for you.
Yes I'm using last version 12.1.20121.2059