.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,578 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
public class LayoutHelper<T>
{
public static readonly BindableProperty ItemSourceProperty = BindableProperty.CreateAttached("ItemSource", typeof(ObservableCollection<T>), typeof(LayoutHelper<T>), null);
....
}
In C# like:
Extensions.LayoutHelper<string>.SetItemSource(hfl, historickeys);
But how to use it in xaml:
<Setter Property="extensions:LayoutHelper<string(this throw a error)>.ItemSource" .../>