Update SearchBar.cs
This commit is contained in:
1 parent
411541d578
commit
56cccc2809
1 file changed
+1
@@ -47,6 +47,7 @@ namespace HandyControl.Controls
|
|||||||
_textBox = GetTemplateChild(ElementTextBox) as WatermarkTextBox;
|
_textBox = GetTemplateChild(ElementTextBox) as WatermarkTextBox;
|
||||||
if (_textBox != null)
|
if (_textBox != null)
|
||||||
{
|
{
|
||||||
|
_textBox.Text = Text;
|
||||||
SetBinding(TextProperty, new Binding(TextProperty.Name)
|
SetBinding(TextProperty, new Binding(TextProperty.Name)
|
||||||
{
|
{
|
||||||
Source = _textBox,
|
Source = _textBox,
|
||||||
|
|||||||
Reference in new issue
Block a user