зеркало из https://github.com/DeGsoft/maui-linux.git
18 строки
440 B
C#
18 строки
440 B
C#
using System.ComponentModel;
|
|
|
|
namespace Xamarin.Forms.Internals
|
|
{
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public static class DataTemplateExtensions
|
|
{
|
|
public static object CreateContent(this DataTemplate self, object item, BindableObject container)
|
|
{
|
|
var selector = self as DataTemplateSelector;
|
|
if (selector != null)
|
|
{
|
|
self = selector.SelectTemplate(item, container);
|
|
}
|
|
return self.CreateContent();
|
|
}
|
|
}
|
|
} |