in my app i want to copy a phone number to clipboard then open the phone dialer ( keypad ) to paste the number there. without using PhoneCallTask to make a call
i can't use PhoneCallTask because it can't support USSD numbers for exemple to check my phone funds the number is " *100# "
the error message 'please enter service codes directly from the phone's keypad'
thanks
In XAML:
<toolkit:PhoneTextBox Text="{Binding UserInput, Mode=TwoWay}" InputScope="{Binding UserInputScope}"/>
In code behind: Make a dependency property UserInputScope then set this to
public static readonly DependencyProperty UserInputTypeProperty =
DependencyProperty.Register("UserInputType", typeof (InputScope), typeof (ManualTypeView), new PropertyMetadata(default(InputScope)));
public InputScope UserInputType
{
get { return (InputScope) GetValue(UserInputTypeProperty); }
set { SetValue(UserInputTypeProperty, value); }
}
Set UserInputType to
this.UserInputType = new InputScope
{
Names =
{
new InputScopeName
{NameValue = InputScopeNameValue.TelephoneNumber}
}
};
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.