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
/// <summary>/// Attached properties for setting rows./// </summary>publicstaticpartialclassItemsSource{/// <summary>/// An <see cref="IEnumerable"/> of rows where each row is an <see cref="IEnumerable"/> with the values./// </summary>publicstaticreadonlyDependencyPropertyRowsSourceProperty=DependencyProperty.RegisterAttached("RowsSource",typeof(IEnumerable),typeof(ItemsSource),newPropertyMetadata(default(IEnumerable),OnRowsSourceChanged),
x =>xisnull||xisIEnumerable<IEnumerable>);/// <summary>Helper for setting <see cref="RowsSourceProperty"/> on <paramref name="element"/>.</summary>/// <param name="element"><see cref="DataGrid"/> to set <see cref="RowsSourceProperty"/> on.</param>/// <param name="value">RowsSource property value.</param>publicstaticvoidSetRowsSource(thisDataGridelement,IEnumerable?value){if(elementisnull){thrownewSystem.ArgumentNullException(nameof(element));}element.SetValue(RowsSourceProperty,value);}/// <summary>Helper for getting <see cref="RowsSourceProperty"/> from <paramref name="element"/>.</summary>/// <param name="element"><see cref="DataGrid"/> to read <see cref="RowsSourceProperty"/> from.</param>/// <returns>RowsSource property value.</returns>[AttachedPropertyBrowsableForChildren(IncludeDescendants=false)][AttachedPropertyBrowsableForType(typeof(DataGrid))]publicstaticIEnumerable?GetRowsSource(thisDataGridelement){if(elementisnull){thrownewSystem.ArgumentNullException(nameof(element));}return(IEnumerable)element.GetValue(RowsSourceProperty);}
The text was updated successfully, but these errors were encountered:
And
The text was updated successfully, but these errors were encountered: