我正在开发一个UWP应用程序.当用户点击任何控件时,如果该控件花费更长的时间来执行其任务,我想向用户显示操作需要很长时间的操作,请等待屏幕中央的图像.如何在UWP应用程序中执行此操作?
我想在这里,如果我是对的,我们的UWP正在研究单线程概念.
请给我你解决这个问题的建议.
我试图在PreviewKeyDown事件中读取文本框的当前值 但无法获取当前值.
这是我的代码,
private void txtDoscountValue_PreviewKeyDown(object sender, KeyEventArgs e)
{
try
{
if (txtDoscountValue.Text == string.Empty)
discountPercentage = 0;
else
discountPercentage = float.Parse(txtDoscountValue.Text);
CalculateCart(cartItems, discountPercentage, 0);
}
catch
{ }
}
Run Code Online (Sandbox Code Playgroud) 我想从一个页面导航到另一个页面.
如果我的目标页面构造函数定义为,
public Bills()
{
this.InitializeComponent();
}
Run Code Online (Sandbox Code Playgroud)
对于我使用的正常导航
Frame.Navigate(typeof(Billing.Bills));
Run Code Online (Sandbox Code Playgroud)
它的工作正常.假设我的目标页面构造函数包含一些参数,例如
public Bills(string strBillType, string strExchangeAmount, RootObject objRoot, string strPaymentType)
{
this.InitializeComponent();
}
Run Code Online (Sandbox Code Playgroud)
在上述情况下,我如何导航到目标页面?.