Created
July 14, 2012 05:38
-
-
Save jz5/3109547 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports GridApp.Data | |
Public Class MyGridView | |
Inherits GridView | |
Protected Overrides Sub PrepareContainerForItemOverride(element As DependencyObject, item As Object) | |
Dim viewModel = DirectCast(item, SampleDataCommon) | |
element.SetValue(VariableSizedWrapGrid.ColumnSpanProperty, viewModel.ColumnSpan) | |
element.SetValue(VariableSizedWrapGrid.RowSpanProperty, viewModel.RowSpan) | |
MyBase.PrepareContainerForItemOverride(element, item) | |
End Sub | |
End Class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment