diff --git a/demo/Ursa.Demo/Pages/TagInputDemo.axaml b/demo/Ursa.Demo/Pages/TagInputDemo.axaml
index 8a4f839..822f316 100644
--- a/demo/Ursa.Demo/Pages/TagInputDemo.axaml
+++ b/demo/Ursa.Demo/Pages/TagInputDemo.axaml
@@ -12,7 +12,9 @@
+ AllowDuplicates="False"
+ Separator="-"
+ Tags="{Binding Tags}" />
_Tags ;
+ public ObservableCollection Tags
+ {
+ get { return _Tags; }
+ set { SetProperty(ref _Tags, value); }
+ }
}
\ No newline at end of file
diff --git a/src/Ursa/Controls/TagInput/TagInput.cs b/src/Ursa/Controls/TagInput/TagInput.cs
index f0f0c69..f57e7eb 100644
--- a/src/Ursa/Controls/TagInput/TagInput.cs
+++ b/src/Ursa/Controls/TagInput/TagInput.cs
@@ -49,8 +49,11 @@ public class TagInput : TemplatedControl
public TagInput()
{
_textBox = new TextBox();
- _textBox.AddHandler(InputElement.KeyDownEvent, OnTextBoxKeyDown, RoutingStrategies.Tunnel);
- Items = new AvaloniaList