This question is locked. New answers and comments are not allowed.
Hello,
I'm trying to use InputPrompt with three buttons in one line. I created own DataTemplate for this purpose, but it seems that buttons regards its content have minimum width - so that only two buttons can be placed horizontally. Is it possible to change buttons width so that there can be more buttons in one line?
I've used such a code:
<
DataTemplate
x:Key
=
"ButtonsTemplate"
>
<
StackPanel
x:Name
=
"PART_ButtonsPanel"
Orientation
=
"Horizontal"
/>
</
DataTemplate
>
DataTemplate buttonsTemplate = (DataTemplate)
this
.Resources[
"ButtonsTemplate"
];
InputPromptClosedEventArgs result = await RadInputPrompt.ShowAsync(buttonsTemplate: buttonsTemplate, title:
"My Title"
, buttonsContent:
new
string
[] {
"OK"
,
"Not OK"
,
"Cancel"
},
message:
"My message"
, isCheckBoxChecked:
true
, checkBoxContent:
"Please check this checkbox"
, inputMode: InputMode.Text,
vibrate:
false
, horizontalAlignment: System.Windows.HorizontalAlignment.Stretch, verticalAlignment: System.Windows.VerticalAlignment.Top);