Skip to content

ProgressRing initialization error #1356

@davsys

Description

@davsys

Describe the bug

I can't use ProgressRing after updating NuGet package version 4.0.1.
UI throws an exception when initializing ProgressRing.

Exception details:


System.Windows.Markup.XamlParseException
HResult=0x80131501
Message=''Wpf.Ui.Controls.ProgressRing' 초기화에서 예외가 throw되었습니다.' 줄 번호 '26' 및 줄 위치 '26'
Source=PresentationFramework
StackTrace:
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
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 Wpf.Ui.Gallery.Views.Pages.StatusAndInfo.ProgressRingPage.InitializeComponent() in C:\Projects\Ref\WPF-UI\src\Wpf.Ui.Gallery\Views\Pages\StatusAndInfo\ProgressRingPage.xaml:line 1

This exception was originally thrown at this call stack:
[External Code]
Wpf.Ui.Controls.Arc.Arc() in Arc.cs

Inner Exception 1:
TypeInitializationException: The type initializer for 'Wpf.Ui.Controls.Arc' threw an exception.

Inner Exception 2:
ArgumentException: 메타데이터 재정의 및 기본 메타데이터는 같은 형식이거나 파생 형식이어야 합니다.

To Reproduce

  1. Fetch latest source code.
  2. Run 'WPF UI Gallery' on debug mode.
  3. Enter ProgressRing Page.

Expected behavior

ProgressRing appears on UI.

Screenshots

Image

OS version

Windows 11

.NET version

.NET 9.0

WPF-UI NuGet version

4.0.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions