Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot serialize a non-public type 'System.Windows.Controls.DataGridHeadersVisibilityToVisibilityConverter'. #449

Closed
MavAtLexacom opened this issue May 8, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@MavAtLexacom
Copy link

MavAtLexacom commented May 8, 2024

I was trying to type "Validation" in filterbox to narrow properties down and ended up with the following exception.

At the time, my selection control was a DataGridRowHeader with properties at default values off. I've tried reproducing it right now on the application, and it's popping up reliably.

Exception details:

System.InvalidOperationException: Cannot serialize a non-public type 'System.Windows.Controls.DataGridHeadersVisibilityToVisibilityConverter'.
   at System.Windows.Markup.Primitives.MarkupWriter.VerifyTypeIsSerializable(Type type)
   at System.Windows.Markup.Primitives.MarkupWriter.WriteItem(MarkupObject item, Scope scope)
   at System.Windows.Markup.Primitives.MarkupWriter.WriteItem(MarkupObject item, Scope scope)
   at System.Windows.Markup.Primitives.MarkupWriter.WriteItem(MarkupObject item)
   at System.Windows.Markup.Primitives.MarkupWriter.SaveAsXml(XmlWriter writer, MarkupObject item)
   at Snoop.Infrastructure.Helpers.XamlWriterHelper.GetXamlAsString(Object obj) in C:\projects\snoopwpf\Snoop.Core\Infrastructure\Helpers\XamlWriterHelper.cs:line 46
   at Snoop.Infrastructure.Helpers.XamlWriterHelper.GetXamlAsXElement(Object obj) in C:\projects\snoopwpf\Snoop.Core\Infrastructure\Helpers\XamlWriterHelper.cs:line 18
   at Snoop.Infrastructure.Helpers.BindingDisplayHelper.BuildBindingDescriptiveString(BindingBase binding, String[] propertyNames) in C:\projects\snoopwpf\Snoop.Core\Infrastructure\Helpers\BindingDisplayHelper.cs:line 34
   at Snoop.Infrastructure.Helpers.BindingDisplayHelper.BuildBindingDescriptiveString(BindingBase binding) in C:\projects\snoopwpf\Snoop.Core\Infrastructure\Helpers\BindingDisplayHelper.cs:line 14
   at Snoop.Infrastructure.PropertyInformation.get_DescriptiveValue() in C:\projects\snoopwpf\Snoop.Core\Infrastructure\PropertyInformation.cs:line 379
   at Snoop.Infrastructure.PropertyFilter.MatcherBase.Matches(PropertyInformation propertyInformation) in C:\projects\snoopwpf\Snoop.Core\Infrastructure\PropertyFilter.cs:line 265
   at Snoop.Infrastructure.PropertyFilter.ShouldShow(PropertyInformation property) in C:\projects\snoopwpf\Snoop.Core\Infrastructure\PropertyFilter.cs:line 129
   at System.Windows.Data.ListCollectionView.PrepareLocalArray()
   at System.Windows.Data.ListCollectionView.RefreshOverride()
   at System.Windows.Data.CollectionView.Refresh()
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Environment

  • Snoop 6.0.0.0
  • Windows 6.3.22635
  • .NET Framework 8.0.4
@batzen batzen added this to the 6.0.0 milestone May 8, 2024
@batzen batzen added the bug label May 8, 2024
@batzen batzen self-assigned this May 8, 2024
@batzen batzen closed this as completed in 732072c May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants