我正在尝试将textbox3中的值移动到新页面上,但是我不断收到错误消息(请参见标题) 有人知道如何解决吗?
XAML
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
CS
<TextBox x:Name="textbox1" Width="200" Height="30" Margin="251,50,349,370" Text="{Binding Content, ElementName=label1}"/>
<TextBox x:Name="textbox2" Width="200" Height="30" Margin="0,-292,30,328" Text="10"/>
<TextBox x:Name="textbox3" Width="200" Height="30" Margin="0,-500,45,281" Text="0"/>
答案 0 :(得分:0)
您需要引用文本属性,而不是文本框本身。
尝试更改此内容:
TotalHere.TotalNumbers = Convert.ToDouble(textbox3);
收件人:
TotalHere.TotalNumbers = Convert.ToDouble(textbox3.Text);