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),new PropertyMetadata(default(IEnumerable),
OnRowsSourceChanged),x => x isnull|| x isIEnumerable<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(element isnull){thrownew System.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(element isnull){thrownew System.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: