This question is locked. New answers and comments are not allowed.
Hi, how can I get the text entered in the textbox in a variable of type string in c# ?
<
ControlTemplate
x:Key
=
"searchTemplate"
TargetType
=
"teleSpec:RadMessageBoxControl"
>
<
Border
Padding
=
"12"
Background
=
"{StaticResource PhoneChromeBrush}"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
ContentControl
x:Name
=
"PART_Title"
HorizontalContentAlignment
=
"Left"
FontSize
=
"{StaticResource PhoneFontSizeLarge}"
FontFamily
=
"{StaticResource PhoneFontFamilySemiBold}"
Margin
=
"{StaticResource PhoneMargin}"
/>
<
StackPanel
Grid.Row
=
"1"
Orientation
=
"Horizontal"
>
<
Image
Source
=
"SomeImage.png"
Margin
=
"12, 12, 0, 24"
/>
<
telerikPrimitives:RadTextBox
Watermark
=
"Text here"
x:Name
=
"txtSearch"
Margin
=
"5,6,0,11"
Width
=
"427"
/>
<
ContentControl
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Top"
x:Name
=
"PART_Message"
Margin
=
"12, 12, 12, 24"
/>
</
StackPanel
>
<
CheckBox
x:Name
=
"PART_CheckBox"
Grid.Row
=
"2"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Bottom"
/>
<
ContentControl
Grid.Row
=
"3"
x:Name
=
"PART_ButtonsContainer"
HorizontalContentAlignment
=
"Stretch"
>
<
ContentControl.ContentTemplate
>
<
DataTemplate
>
<
StackPanel
x:Name
=
"PART_ButtonsPanel"
Orientation
=
"Horizontal"
></
StackPanel
>
</
DataTemplate
>
</
ContentControl.ContentTemplate
>
</
ContentControl
>
</
Grid
>
</
Border
>
</
ControlTemplate
>