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

Demo app "Fields line up" page rasies exception #3731

Open
JorisCleVR opened this issue Nov 26, 2024 · 0 comments · May be fixed by #3757
Open

Demo app "Fields line up" page rasies exception #3731

JorisCleVR opened this issue Nov 26, 2024 · 0 comments · May be fixed by #3757
Labels
bug evaluation required Items is pending review or evaluation by the team

Comments

@JorisCleVR
Copy link
Contributor

Bug explanation

Reproduction steps:

  1. Open the Demo app
  2. Click on the "Fields line up" page
  3. The following exception is raised

System.Windows.Markup.XamlParseException
HResult=0x80131501
Message='Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.' Line number '202' and line position '10'.
Source=PresentationFramework
StackTrace:
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at MaterialDesignDemo.FieldsLineUp.InitializeComponent() in C:\Git\GitHub\MaterialDesignInXamlToolkit\src\MainDemo.Wpf\FieldsLineUp.xaml:line 1

This exception was originally thrown at this call stack:
System.Windows.Style.Seal()
System.Windows.Style.System.Windows.ISealable.Seal()
System.Windows.StyleHelper.SealIfSealable(object)
System.Windows.ResourceDictionary.SealValue(object)
System.Windows.ResourceDictionary.OnGettingValue(object, ref object, out bool)
System.Windows.ResourceDictionary.OnGettingValuePrivate(object, ref object, out bool)
System.Windows.ResourceDictionary.GetValueWithoutLock(object, out bool)
System.Windows.ResourceDictionary.GetValue(object, out bool)
System.Windows.DeferredResourceReference.GetValue(System.Windows.BaseValueSourceInternal)
System.Windows.StaticResourceExtension.TryProvideValueImpl(System.IServiceProvider, bool, bool)
...
[Call Stack Truncated]

Inner Exception 1:
InvalidOperationException: Can only base on a Style with target type that is base type 'UpDownBase'.

Version

master branch

@JorisCleVR JorisCleVR added bug evaluation required Items is pending review or evaluation by the team labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug evaluation required Items is pending review or evaluation by the team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant