Does anyone have experience with binding Infragistics controls using MvvmCross? I think a simple example to start out with might be the SingleRow example below. Any suggestions on binding the datasource or other properties using MvvmCross?
[Register("SingleRowView")] public class SingleRowView : MvxView { public IGGridView GridView; private IGGridViewImageColumnDefinition _col; public IGGridViewSingleRowSingleFieldDataSourceHelper Ds; public SingleRowView() { Initialize(); } public SingleRowView(RectangleF bounds) : base(bounds) { Initialize(); } void Initialize() { BackgroundColor = UIColor.Black; GridView = new IGGridView(new RectangleF(0f,0f, Frame.Size.Width, 100f), IGGridViewStyle.IGGridViewStyleDefault) { AutoresizingMask = UIViewAutoresizing.FlexibleBottomMargin | UIViewAutoresizing.FlexibleTopMargin | UIViewAutoresizing.FlexibleWidth, SelectionType = IGGridViewSelectionType.IGGridViewSelectionTypeCell, HeaderHeight = 0f, EmptyRows = false, RowSeparatorHeight = 0, AllowHorizontalBounce = true, AlwaysBounceVertical = false, RowHeight = 100f, ColumnWidth = new IGColumnWidth(), Theme = new IGGridViewLightTheme() }; _col = new IGGridViewImageColumnDefinition(@"Image", IGGridViewImageColumnDefinitionPropertyType .IGGridViewImageColumnDefinitionPropertyTypeImage); Ds = new IGGridViewSingleRowSingleFieldDataSourceHelper(_col); GridView.DataSource = Ds; } }
Hi Blake,
I am glad that our support is helpful, after all we want your experience with NucliOS to be a delightful one.
Thanks for sharing your blog.
Regards,
Ammar
Team Infragistics,
I sure do appreciate all of the help and support you guys provide. Fantastic! I was able to get MvvmCross to work nicely with infragistics nucliOS controls by setting up custom binding. I wrote a blog post demonstrating this! In case anyone else stumbles across this forum, you can find the blog post here.
Thanks!
Blake
Hello Blake,
Have you been able to resolve you issue? If you need any further assistance, please let us know.
Sincerely,
Tsanna
Sorry! Just found IGColumnWidth.CreateNumericColumnWidth.
Great, glad it helped!
For ColumnWidth, we had to expose them as static methods.
So the code you're looking for, should look like this.
ColumnWidth = IGColumnWidth.CreateNumericColumnWidth(100)
-SteveZ