GridView.SetSliceProvider
SetSliceProvider(GridSliceProviderCallback<GridSlice>)
Assigns the given GridSliceProviderCallback<T> as the sole handler for any grid slice requests. As a GridView is scrolled, new list items will be pulled into view, and CrossAxisItemCount list items will be visually parented to the returned GridSlice.
Remarks
A GridView can only have a single GridSliceProviderCallback<T> at a given time, so assigning a value here will remove any existing slice providers.
Declaration
public void SetSliceProvider(GridSliceProviderCallback<GridSlice> provider)
Parameters
Type | Name | Description |
---|---|---|
GridSliceProviderCallback<GridSlice> | provider |
SetSliceProvider(GridSliceProviderCallback<GridSlice2D>)
Assigns the given GridSliceProviderCallback<T> as the sole handler for any grid slice requests. As a GridView is scrolled, new list items will be pulled into view, and CrossAxisItemCount list items will be visually parented to the returned GridSlice2D.
Remarks
A GridView can only have a single GridSliceProviderCallback<T> at a given time, so assigning a value here will remove any existing slice providers.
Declaration
public void SetSliceProvider(GridSliceProviderCallback<GridSlice2D> provider)
Parameters
Type | Name | Description |
---|---|---|
GridSliceProviderCallback<GridSlice2D> | provider |
SetSliceProvider(GridSliceProviderCallback<GridSlice3D>)
Assigns the given GridSliceProviderCallback<T> as the sole handler for any grid slice requests. As a GridView is scrolled, new list items will be pulled into view, and CrossAxisItemCount list items will be visually parented to the returned GridSlice3D.
Remarks
A GridView can only have a single GridSliceProviderCallback<T> at a given time, so assigning a value here will remove any existing slice providers.
Declaration
public void SetSliceProvider(GridSliceProviderCallback<GridSlice3D> provider)
Parameters
Type | Name | Description |
---|---|---|
GridSliceProviderCallback<GridSlice3D> | provider |