c# - Popup in windows phone -
i using popup in windows phone, when open popup, popup opens , page behind popup element can accessible, have listbox , can scrollable.
if popup opens controls behind should non accessible , right? how can that,
here code
popup popup = new popup(); popup.height = 300; popup.width = 450; popup.verticaloffset = 250; popup.horizontaloffset = 20; notlogedinpopup control = new notlogedinpopup(); popup.child = control; popup.isopen = true; here code notlogedinpopup design, usercontrol
<usercontrol x:class="offertimeline.notlogedinpopup" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:ignorable="d" fontfamily="{staticresource phonefontfamilynormal}" fontsize="{staticresource phonefontsizenormal}" foreground="{staticresource phoneforegroundbrush}" d:designheight="300" d:designwidth="450"> <usercontrol.resources> <style x:key="buttonstyle1" targettype="button"> <setter property="background" value="transparent"/> <setter property="borderbrush" value="{staticresource phoneforegroundbrush}"/> <setter property="foreground" value="{staticresource phoneforegroundbrush}"/> <setter property="borderthickness" value="{staticresource phoneborderthickness}"/> <setter property="fontfamily" value="{staticresource phonefontfamilysemibold}"/> <setter property="fontsize" value="{staticresource phonefontsizemediumlarge}"/> <setter property="padding" value="10,3,10,5"/> <setter property="template"> <setter.value> <controltemplate targettype="button"> <grid background="transparent"> <visualstatemanager.visualstategroups> <visualstategroup x:name="commonstates"> <visualstate x:name="normal"/> <visualstate x:name="mouseover"/> <visualstate x:name="pressed"> </visualstate> <visualstate x:name="disabled"> <storyboard> <objectanimationusingkeyframes storyboard.targetproperty="foreground" storyboard.targetname="contentcontainer"> <discreteobjectkeyframe keytime="0" value="{staticresource phonedisabledbrush}"/> </objectanimationusingkeyframes> <objectanimationusingkeyframes storyboard.targetproperty="borderbrush" storyboard.targetname="buttonbackground"> <discreteobjectkeyframe keytime="0" value="{staticresource phonedisabledbrush}"/> </objectanimationusingkeyframes> <objectanimationusingkeyframes storyboard.targetproperty="background" storyboard.targetname="buttonbackground"> <discreteobjectkeyframe keytime="0" value="transparent"/> </objectanimationusingkeyframes> </storyboard> </visualstate> </visualstategroup> </visualstatemanager.visualstategroups> <border x:name="buttonbackground" borderbrush="{templatebinding borderbrush}" borderthickness="{templatebinding borderthickness}" background="{templatebinding background}" cornerradius="0" margin="{staticresource phonetouchtargetoverhang}"> <contentcontrol x:name="contentcontainer" contenttemplate="{templatebinding contenttemplate}" content="{templatebinding content}" foreground="{templatebinding foreground}" horizontalcontentalignment="{templatebinding horizontalcontentalignment}" padding="{templatebinding padding}" verticalcontentalignment="{templatebinding verticalcontentalignment}"/> </border> </grid> </controltemplate> </setter.value> </setter> </style> <grid x:name="layoutroot"> <grid.background> <imagebrush imagesource="/offertimeline;component/images/listbg.png" /> </grid.background> <image source="/offertimeline;component/images/filtertitlebg.png" margin="0,-2,0,242" name="bgimage" stretch="fill" /> <image margin="9,5,0,255" source="/offertimeline;component/images/alert_icon.png" name="alerticonimage" stretch="fill" horizontalalignment="left" width="51" /> <button style="{staticresource buttonstyle1}" borderthickness="0" margin="354,-2,13,241" name="closebtn" verticalalignment="stretch" verticalcontentalignment="stretch" manipulationcompleted="closebtn_manipulationcompleted" manipulationdelta="closebtn_manipulationdelta" manipulationstarted="closebtn_manipulationstarted"> <button.background> <imagebrush imagesource="/offertimeline;component/images/filter_close.png" /> </button.background> </button> <textblock margin="55,10,124,255" text="login required" textalignment="center" foreground="black" name="titletextbx" fontsize="24" /> <textblock height="89" horizontalalignment="left" margin="28,124,0,0" name="contenttextbx" text="please login credentials this." verticalalignment="top" width="406" foreground="gray" textwrapping="wrap" fontsize="22" textalignment="center" /> <button style="{staticresource buttonstyle1}" height="72" horizontalalignment="left" margin="131,240,0,0" name="okbtn" verticalalignment="top" width="160" borderthickness="0" borderbrush="{x:null}" click="okbtn_click" manipulationcompleted="okbtn_manipulationcompleted" manipulationdelta="okbtn_manipulationdelta" manipulationstarted="okbtn_manipulationstarted"> <button.background> <imagebrush imagesource="/offertimeline;component/images/okbtn.png" /> </button.background> </button> </grid> thank you.
Comments
Post a Comment