【问题标题】:Take an input from a combo box in Windows Mobile Applications从 Windows Mobile 应用程序中的组合框中获取输入
【发布时间】:2017-07-02 12:10:52
【问题描述】:

我在移动应用中有以下组合框

<ComboBox name="cmb_tax" Grid.Row="2" Grid.Column="1">
      <ComboBoxItem content="10%" />
      <ComboBoxItem content="20%" />
      <ComboBoxItem content="30%" />
</ComboBox>

并希望将从 this 传递的值传递给一个字符串变量。提前谢谢你。

【问题讨论】:

    标签: c# wpf visual-studio windows-phone mobile-application


    【解决方案1】:
    ((ComboBoxItem)cmb_tax.SelectedItem).Content.ToString();  
    

    【讨论】:

    • 另外如何从 获取输入并分配给变量?是不是像DateTime in=this.dp.Value;
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多