The PivotGrid Loaded event was called before the PivotGrid gets initialized which leads the event to be deal with null InternalGrid and we hereby let you know that the properties of the GroupingBar or InternalGrid can be accessed only after the PivotGrid gets initialized. We have two solutions to prevent calling the Loaded Event prior to initialization of PivotGrid.
Calling the PivotGrid Loaded Event after InitializeComponent () gets called will resolve this issue as shown in below code:
We have a Dispatcher delegate Event Handler which allows the Event to be handled after the initialization. The code snippet for the same is shown below:
Figure: A properly loaded Pivot Grid
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.