Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Monotouch.Dialog: navigation controls needed around HtmlElement

$
0
0

HtmlElement does not appear to be useful in its current form. (Variation of this question also posted to StackExchange: http://stackoverflow.com/questions/21174203/monotouch-dialog-how-can-a-navigation-control-surround-an-htmlelement)

I'm trying to do something very simple: ensure that when an HtmlElment is tapped that it opens a view that contains a back nav. Out of the box this does not happen, even with the DialogViewController properly constructed. E.g.,

    var dvc = new DialogViewController(Root, true); //second parameter needs to be true to push the Html views onto the stack

Instead, the corresponding web page for code like so:

var Root = new RootElement("ConnectionView") 
{
new Section("Sales") 
{ 
        new HtmlElement("Discover more about foo",
                        "http://foo.com")
    }   
}

var dvc = new DialogViewController(Root, true);

Ends up opening in a full-screen mode (even appearing behind the status bar). This is not really a surprise when looking at the originating code in the Selected() method of HtmlElement:

    web = new UIWebView(UIScreen.MainScreen.Bounds)

Hence, my question is what is the best approach to ensure that some form of navigation control appears when an HtmlElement is used?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>