2016-03-04 43 views
0

我有这样的XAML代码在我的应用程序的窗口之一:(C#)网格的弹出出现在按钮点击

<phone:PanoramaItem x:Name="panoramaItemSend" Header="{Binding LocalizedResources.send, Source={StaticResource LocalizedStrings}}" > 
      <StackPanel Margin="12,0,0,0"> 
       <TextBlock Text="{Binding LocalizedResources.recipientEmail, Source={StaticResource LocalizedStrings}}" /> 
       <TextBox InputScope="EmailUserName" Text="{Binding SendModel.Email, Mode=TwoWay}" Margin="-12,0,0,0" TabIndex="100" GotFocus="TextBox_GotFocus" LostFocus="TextBox_LostFocus" MaxLength="256" Height="105" TextWrapping="Wrap"> 
        <i:Interaction.Behaviors> 
         <prismInteractivity:UpdateTextBindingOnPropertyChanged/> 
        </i:Interaction.Behaviors> 
       </TextBox> 

       <TextBlock Text="{Binding LocalizedResources.amount, Source={StaticResource LocalizedStrings}}" /> 
       <TextBox x:Name="txtSendAmount" InputScope="Number" Text="{Binding SendModel.Amount, Mode=TwoWay}" Margin="-12,0,0,0" GotFocus="TextBox_GotFocus" LostFocus="TextBox_LostFocus" TabIndex="101" MaxLength="20" TextChanged="TextBox_TextChanged" > 
        <i:Interaction.Behaviors> 
         <prismInteractivity:UpdateTextBindingOnPropertyChanged/> 
        </i:Interaction.Behaviors> 
       </TextBox> 
       <TextBlock Text="{Binding SendModel.AmountFiatStr}" Margin="0,-15,0,5" Foreground="Gainsboro"/> 


       <TextBlock Text="{Binding LocalizedResources.label, Source={StaticResource LocalizedStrings}}" /> 
       <TextBox Text="{Binding SendModel.Label, Mode=TwoWay}" Margin="-12,0,0,0" TabIndex="102" GotFocus="TextBox_GotFocus" LostFocus="TextBox_LostFocus" MaxLength="256"> 
        <i:Interaction.Behaviors> 
         <prismInteractivity:UpdateTextBindingOnPropertyChanged/> 
        </i:Interaction.Behaviors> 
       </TextBox> 

       <TextBlock Text="{Binding LocalizedResources.message, Source={StaticResource LocalizedStrings}}" /> 
       <TextBox Text="{Binding SendModel.Message, Mode=TwoWay}" Margin="-12,0,0,0" TabIndex="103" GotFocus="TextBox_GotFocus" LostFocus="TextBox_LostFocus" MaxLength="256"> 
        <i:Interaction.Behaviors> 
         <prismInteractivity:UpdateTextBindingOnPropertyChanged/> 
        </i:Interaction.Behaviors> 
       </TextBox> 
       <Button x:Name="btnSend" Content="{Binding LocalizedResources.send, Source={StaticResource LocalizedStrings}}" Style="{StaticResource OrangeButton}" Tap="btnSend_Tap" TabIndex="104"/> 
      </StackPanel> 

我想创建一个弹出时,我触发btnSend的点击处理程序 - btnSendTap 我的弹出式应该有这样的网格饱,我已经知道如何以编程方式添加的帐户:

<Grid Margin="15,0,0,21"> 
        <Grid.RowDefinitions> 
         <RowDefinition /> 
         <RowDefinition /> 
        </Grid.RowDefinitions> 
        <StackPanel x:Name="AccountsInfo" Grid.Row="0"> 
        </StackPanel> 
        <StackPanel Grid.Row="1"> 
         <local:RateChart x:Name="rateChart" Height="324" Margin="-12,25,0,0" Width="417" /> 
        </StackPanel> 
       </Grid> 

回答

0

看一看的PopUp控制。

希望你在找什么。 :)

+1

谢谢:)这是我正在寻找 –