Databinding to public members with forceren enabled - Allow renaming of XAML/BAML references #48
Labels
bug
Something isn't working
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Is your feature request related to a problem? Please describe.
If you have XAML Databinding to public members and use ForceRen (because lets assume your project is not a public library so renaming public methods is acceptable) then this will obviously break databinding.
Describe the solution you'd like
I've hacked a solution which extracts all databinding out of the XAML and makes a list of member names. It then adds these names to the list of items to not rename. My solution is very ugly but it works,
This would be great to see added as it allows a high level of obfuscation such as:
But it also doesn't break XAML databinding. I have a very large project and this approach hasn't failed so far.
To do this properly you would rename the XAML however where I hacked my solution in it seemed like quite a bit of work to make it also rename the XAML, instead I just disabled renaming of these members instead.
here is my function which extracts databinding from .cs files
here is my code which extracts a list of databinding elements from BAML
The text was updated successfully, but these errors were encountered: