How do I stop a WPF Datagridtemplatecolumn from exiting edit mode?
问题 I'm writing an MVVM WPF app with a datagrid of values which needs to be editable. The meaning of the value varies depending on other data, so I've written a usercontrol for editing them with a template that varies depending on the type of value. i.e. it may appear as a textbox, a combobox, or one of several other inhouse controls that link to databases to retrieve possible values. This is the xaml I've used. <DataGridTemplateColumn Header="Value"> <DataGridTemplateColumn.CellTemplate>