You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code using an AnnotatedScrollBar does not work with PublishAOT.
My page contains a <AnnotatedScrollBar Name="annotatedScrollBar" />. At runtime an exception will be thrown when something is added to the label collection.
Exception:
System.NotSupportedException: 'ICustomProperty support used by XAML binding for type
'Microsoft.UI.Xaml.Controls.AnnotatedScrollBarLabel' (property 'Content') requires the type to marked with
'WinRT.GeneratedBindableCustomPropertyAttribute'. If this is a built-in type or a type that can't be marked,
a wrapper type should be used around it that is marked to enable this support.'
Labels is an IList<AnnotatedScrollBarLabel> and AnnotatedScrollBarLabel is sealed, so I think there is nothing I can do to make this work with AOT enabled.
Expected behavior
It should work, just like it does without AOT compilation.
NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
Windows version
Windows 11 (24H2): Build 26100
Additional context
It works without AOT and the exception above is thrown with PublishAOT enabled.
The text was updated successfully, but these errors were encountered:
Describe the bug
Code using an AnnotatedScrollBar does not work with PublishAOT.
My page contains a
<AnnotatedScrollBar Name="annotatedScrollBar" />
. At runtime an exception will be thrown when something is added to the label collection.Exception:
Code snippet to add label:
Labels is an
IList<AnnotatedScrollBarLabel>
and AnnotatedScrollBarLabel is sealed, so I think there is nothing I can do to make this work with AOT enabled.Expected behavior
It should work, just like it does without AOT compilation.
NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
Windows version
Windows 11 (24H2): Build 26100
Additional context
It works without AOT and the exception above is thrown with PublishAOT enabled.
The text was updated successfully, but these errors were encountered: