Вы можете привязать к свойству родительского окна DataContext
из UserControl
, используя RelativeSource
;
<Button Command="{Binding DataContext.GetOrderCommand, RelativeSource={RelativeSource AncestorType=Window}}" />
Open up a stylesheet and choose the validation from the drop down menu that appears on the stylesheet menu.
I was looking in tools options..
You can also set the validation options in Tools -> Options -> Text Editor -> HTML -> Validation