levitali / CompiledBindings

MIT License
279 stars 14 forks source link

x:Bind does not work in ControlTemplates #36

Open wldevries opened 7 months ago

wldevries commented 7 months ago

When using x:Bind in a ControlTemplate Without DataType specified in the Binding the error is as follows:

DataType is unknown. It must be specified when using x:Bind in a DataTemplate.

The ControlTemplate has TargetType set. It does not have a DataType property and does not accept mx:DataType from this repo.

levitali commented 7 months ago

Yes. x:Bind cannot work in ControlTemplates. I will implement checking it, to bring better error message.