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,
Unfortunately, we haven't tried using our stuff with MVVM Cross as of yet. If we do get a chance, we'll definitely share our findings.
However, in the mean time, if you find any issues or anything that's missing from us that is preventing you from using our stuff with this project, please let us know and we'll look in to it right away.
-SteveZ
Please, feel free to contact us for any additional information about our products that you might require.
Regards,
Dimitar Atanasov
Senior Software Engineer
Infragistics
Thanks for the Quick reply! That seemed to fix it. Now, if I add more items (10) than fit on the screen, the items just get re-sized to fit, instead of creating a horizontal scroll. I imagine it has something to do with how I am initializing the ColumnWidth. In objective C the IGColumnWidth is initialized with a width. I can't seem to figure out how to do this in Monotouch.
Sorry! Just found IGColumnWidth.CreateNumericColumnWidth.
Hello Blake,
Have you been able to resolve you issue? If you need any further assistance, please let us know.
Sincerely,
Tsanna
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
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.
Ammar