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
System.NullReferenceException: 'Object reference not set to an instance of an object.'
This exception was originally thrown at this call stack:
WinUI.TableView.TableViewColumnHeader.OnApplyTemplate()
Microsoft.UI.Xaml.FrameworkElement.Microsoft.UI.Xaml.IFrameworkElementOverrides.OnApplyTemplate()
ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_OnApplyTemplate_2(nint)
WinRT.ExceptionHelpers.ThrowExceptionForHR.__Throw|38_0(int)
ABI.Microsoft.UI.Xaml.IUIElementMethods.Measure(WinRT.IObjectReference, Windows.Foundation.Size)
Microsoft.UI.Xaml.UIElement.Measure(Windows.Foundation.Size)
WinUI.TableView.TableViewHeaderRow.CalculateHeaderWidths.AnonymousMethod__4(WinUI.TableView.TableViewColumn)
System.Linq.Enumerable.SelectListIterator<TSource, TResult>.MoveNext()
System.Linq.Enumerable.Sum<TSource, TResult>(System.Collections.Generic.IEnumerable<TSource>)
WinUI.TableView.TableViewHeaderRow.CalculateHeaderWidths()
...
[Call Stack Truncated]
Expected behavior:
Binds to the entire row element, so it can be passed on to the converter.
Screenshots:
If applicable, add screenshots to help explain your problem.
Environment:
Package Version: 1.2.0
WinAppSDK Version: 1.6exp2
The text was updated successfully, but these errors were encountered:
Thank you, @dotMorten, for your feedback. While a null check can resolve this issue, a crash may occur if sorting or filtering is applied to the column. Currently, the sorting and filtering do not account for value converters from the binding. I'm considering some adjustments in the sorting and filtering logic to incorporate values converted by the converters before use. Hopefully this will be available in the next release.
Description:
Can't bind to the object itself using an empty or null property path.
Steps to Reproduce:
Create a column like this:
Throws:
Expected behavior:
Binds to the entire row element, so it can be passed on to the converter.
Screenshots:
If applicable, add screenshots to help explain your problem.
Environment:
The text was updated successfully, but these errors were encountered: