c# - Focus on Canvas overlapping the listbox in WP7 -
i have situation here. have page containing listbox. listbox populated items if able fetch data web service. when user doesn't have network connectivity on phone or webservice doesn't respond ok status, want show user pop-up option retry or select ok stay on same page (though sounds dumb). used canvas:
<canvas name="nonetwork" height="150" width="280" horizontalalignment="center" verticalalignment="center" background="dodgerblue" visibility="collapsed" margin="111,160,92,160" > <textblock verticalalignment="top" height="120" width="280" text="no network availabe" textalignment="center" textwrapping="wrap" foreground="white" fontsize="28" /> <button margin="30, 80" height="60" width="100" content="ok" fontsize="18" click="ok_click"/> <button margin="150, 80" height="60" width="100" content="retry" fontsize="18" click="retry_click"/> </canvas>
well of experienced guys have guessed, canvas buried inside listbox , not accessible when there no network connectivity. have blank page canvas user not able click on ok or retry. please help
please let me know if there other approach solve problem. tried popup cant navigate main page pop-up since user control page. higly appreciated
well, placed canvas below listbox , problem solved. didn't know positioning of controls in xaml have effect ...
Comments
Post a Comment