I have a usercontrol called "InputSensitiveTextBox" that inherits from Textbox. It has a property I define called "CurrentInputType", which is of type "MyControlsNamespace.SupportedInputTypes" (with values Keyboard, Mouse, Touchpad, VirtualKey). I need to have this property be set in Xaml just like I might set "HorizontalAlignment" or "ScrollbarVisibility" as such:
MyControlsNamepsace.InputSensitiveTextBox Background="Black" CurrentInputType="Keyboard"
Please advise :)