Menu
  • HOME
  • TAGS

Custom EntryElement alignment changes on redraw / refresh

ios,monotouch,xamarin,monotouch.dialog

For the record, here is the response I got on another forum for this question: The behaviour is due to not using the cell reuse in you RightAlignEntryElement Your GetCell method should look something like: public override UITableViewCell GetCell(UITableView tv) { var cell = tv.DequeueReusableCell (CellKey) as UITableViewCell; if (cell...

Pushing a DialogViewController onto a ViewController onto NavigationController stack gives 2 pages

c#,ios,monotouch,xamarin,monotouch.dialog

I fixed it in the following way: I created a custom class for my TableViewController (containing a TableView with static cells): partial class MainMenuTableViewController : UITableViewController { public MainMenuTableViewController (IntPtr handle) : base (handle) { } public override void ViewDidLoad () { base.ViewDidLoad (); this.TableView.Delegate = new MainMenuTableViewDelegate (this); //this...

Xamarin.Forms Listview with 2 line label?

xamarin,xamarin.forms,monotouch.dialog

You might want to customize ListView: <ListView x:Name="ListMenu" ItemsSource="{Binding _YourItems_}" > <ListView.ItemTemplate> <DataTemplate> <ViewCell> <ViewCell.View> <StackLayout Orientation="Horizontal"> <Label Text="{Binding _YourText_}" TextColor="Black" /> </StackLayout> </ViewCell.View> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView> even if text not fit one line, it will wrap automatically....

Monotouch Dialog - Multi line RootElement

monotouch,xamarin,multiline,monotouch.dialog,dialogviewcontroller

Found a workaround that seems to do the trick Add this to the DialogViewController: public override void ViewWillLayoutSubviews() { if (TableView != null && TableView.VisibleCells.Any()) { foreach (var cell in TableView.VisibleCells) { cell.SizeToFit(); } } base.ViewWillLayoutSubviews(); } UPDATED: The above solution did not work with multiple elements, as the heights...

Can't update hot tuna ios dialog support to version 3.5

monotouch,xamarin,mvvmcross,monotouch.dialog

The issue is you are still targeting the old 32 bit only iOS api (the MonoTouch.dll). All apps being written for the store must support 64 bit and 32 bit (Xamarin.ios.dll). You can I believe get a build of mvvmcross 3.5 that will support the old apis, but I'd look...