/// <summary> /// The GetHeaderLabel. /// </summary> /// <param name="gridcolumn">The gridcolumn<see cref="XFGridColumn"/>.</param> /// <returns>The <see cref="Label"/>.</returns> private Label GetHeaderLabel(XFGridColumn gridcolumn) { var propLabel = new HeaderLabel { BackgroundColor = HeaderColor, Text = gridcolumn.PropertyName, FontAttributes = FontAttributes.Bold, ColumnObj = gridcolumn }; ApplyHeaderTextStyle(propLabel); var sortGesture = new TapGestureRecognizer { CommandParameter = gridcolumn }; sortGesture.Tapped -= SortGesture_Tapped; sortGesture.Tapped += SortGesture_Tapped; propLabel.GestureRecognizers.Add(sortGesture); return(propLabel); }