问题
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