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
I wrote a simple attached property "AutoScrollOnSelect" in my "control classlib". The main application (WinUI 3 unpackaged app )that wants to use it can't find it :
2>D:\sources\ced\ev2557\cln\dotnet\DashCed\Pages\PagePannes.xaml(149,22): XamlCompiler error WMC0010: Unknown attachable member 'DataGridExtension.AutoScrollOnSelect' on element 'DataGrid'
Steps to reproduce the bug
Create a WinUI3 Classlib that can contains UI classes.
Create the attachedProperty
`using CommunityToolkit.WinUI.UI.Controls;
using Microsoft.UI.Xaml;
using System.Linq;
} 3. In WinUI3 app, inside a page, use the property: xmlns:dgext="using:CGI.WinUI.Controls.Extensions"<dg:DataGrid ItemsSource="{Binding Path=Interruptions}"
AutoGenerateColumns="False"
Grid.Row="1" IsReadOnly="True"
SelectionMode="Single"
RowDetailsVisibilityMode="VisibleWhenSelected"
RowDetailsTemplate="{StaticResource PanneDataTemplate}"
dgext:DataGridExtension.AutoScrollOnSelect="True" <!- HERE!!!!!!!!!!!! -->
SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}">`
Expected behavior
Attached property to be found, and program to compile.
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.4.3: 1.4.231115000
Windows version
Windows 10 (1809): Build 17763
Additional context
Interesting, the same attached property when moved into the main Application assembly works perfectly. It is really the fact that it's located inside another assembly that seems to be the problem.
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I wrote a simple attached property "AutoScrollOnSelect" in my "control classlib". The main application (WinUI 3 unpackaged app )that wants to use it can't find it :
2>D:\sources\ced\ev2557\cln\dotnet\DashCed\Pages\PagePannes.xaml(149,22): XamlCompiler error WMC0010: Unknown attachable member 'DataGridExtension.AutoScrollOnSelect' on element 'DataGrid'
Steps to reproduce the bug
`using CommunityToolkit.WinUI.UI.Controls;
using Microsoft.UI.Xaml;
using System.Linq;
namespace CGI.Ced.WinUI.Controls.Extensions;
public class DataGridExtension
{
}
<dg:DataGrid ItemsSource="{Binding Path=Interruptions}"
3. In WinUI3 app, inside a page, use the property:
xmlns:dgext="using:CGI.WinUI.Controls.Extensions"AutoGenerateColumns="False"
Grid.Row="1" IsReadOnly="True"
SelectionMode="Single"
RowDetailsVisibilityMode="VisibleWhenSelected"
RowDetailsTemplate="{StaticResource PanneDataTemplate}"
dgext:DataGridExtension.AutoScrollOnSelect="True" <!- HERE!!!!!!!!!!!! -->
SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}">`
Expected behavior
Attached property to be found, and program to compile.
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.4.3: 1.4.231115000
Windows version
Windows 10 (1809): Build 17763
Additional context
Interesting, the same attached property when moved into the main Application assembly works perfectly. It is really the fact that it's located inside another assembly that seems to be the problem.
No response
The text was updated successfully, but these errors were encountered: