WP8: no popup available?

 ̄綄美尐妖づ 提交于 2019-12-11 02:16:46

问题


I'd like to programm a tiny popup to get some user input (a textarea, a input field and two buttons). What component could host these components? Apparently there is no Popup class?


回答1:


This is one basic popup

<Popup  Name="m_Popup"  IsOpen="False" Opened="OnPoputOpen" Closed="OnPopupClose" >
        <Grid >
            <Grid.RowDefinitions>
                <RowDefinition Height ="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>                                
            </Grid.RowDefinitions> 

            <TextBox Name="m_TextBox" Grid.Row="0"/>
            <Button Name="m_Button1" Grid.Row="1"/>
            <Button Name="m_Button2" Grid.Row="2"/>
        </Grid>
    </Popup>

You control the visibility with IsOpen. Here is a link to Popup Class

Good luck (:




回答2:


No, this is not provided in the SDK. You have to build it yourself.



来源:https://stackoverflow.com/questions/15363245/wp8-no-popup-available

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!