I can define开发者_运维知识库 a style as follows in Silverlight 4: <Style x:Name=\"Subtitle\" TargetType=\"TextBlock\">
I have MyClass class. I declare <Style TargetType=\"local:MyClass\"></Style> no pr开发者_开发问答oblems.
Do ControlTemplates in WPF require a TargetType? I am restyling some controls, 开发者_运维知识库and notice that the comboboxitem, listiviewitem and listboxitem all have the same template:
In theory, this code should set the new lock status to the users and get that written to the database: