The MWC sample does that - both for the master list (landscape view) and
also the mini 'speaker list' for sessions that you can see in this
screenshot.
https://raw.github.com/xamarin/mobile-samples/master/MWC/Screenshots/iOS/Sessions_iPad.PNG

the relevant pieces of code are :
* in the SpeakersTableViewSource.cs, we DON'T deselect, so the blue
highlight will remain

if (AppDelegate.IsPhone) tableView.DeselectRow (indexPath, true);


* in SessionView.cs we set the selection to a particular row when loading

if (AppDelegate.IsPad) {

// set the highlight for whatever speaker is showing in the other column
(only iPad, obviously)

   if (speakerTable.IndexPathForSelectedRow == null)

      speakerTable.SelectRow (NSIndexPath.FromRowSection (0,0), true,
UITableViewScrollPosition.Top);

   else

      speakerTable.SelectRow (speakerTable.IndexPathForSelectedRow, true,
UITableViewScrollPosition.Top);


HTH
craig


On Sun, Jun 3, 2012 at 10:38 PM, Guido Van Hoecke <gui...@gmail.com> wrote:

> Hi,
>
> I'm working at a universal app where I use the wonderfull
> MTSplitViewController when ran on the iPad
> (Thank you René).
>
> Both Master and Detail panes use DialogViewControllers
> (Thank you Miguel).
>
> Selecting an element on the Master creates and pushes the corresponding
> DialogController onto the UINavigationController associated with the
> Detail pane.
>
> This interaction works like a charm!
>
> When I tap an element in the Master pane, the blue selection bar fades
> out, which is the normal expected behaviour. However, for a Master pane
> it would be desirable that this selection color would not diappear,
> leaving a clear trace of the selected option that corresponds to the
> current Detail pane content, as a kind of the 'Active menu choice'.
>
> I dare hope that this can be easily achieved, but I've stackoverflowed
> and googled around without success.
>
> Any ideas or suggestions?
>
> Thanks in advance,
>
>
> Guido
>
> --
> You will be surprised by a loud noise.
>
> http://vanhoecke.org ... and go2 places!
> _______________________________________________
> MonoTouch mailing list
> MonoTouch@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to