This question is locked. New answers and comments are not allowed.
Having problems with the input prompt.
Seems like the inputpromptclosedeventargs doesn´t work as it should.
The result is always Cancel and buttonindex -1.
Style textBoxStyle =new
System.Windows.Style(
typeof
(RadTextBox));
textBoxStyle.Setters.Add(
new
Setter(RadTextBox.InputScopeProperty,
"text"
));
string
messageTitle =
"Rename sensor"
;
string
message =
"Please enter the new name for the sensor"
;
RadInputPrompt.Show(messageTitle, MessageBoxButtons.OKCancel, message, InputMode.Text, textBoxStyle,
closedHandler: (args) =>
{
// ClickedButton will be null in the case when RadMessageBox is closed because the user pressed the hardware back button.
if
(args.ClickedButton ==
null
)
{
return
;
}
var test = args.Result;
if
(args.Result == DialogResult.OK)
{
//yaddaaa
}
});