The protected executable launched. The main window appeared. Nothing crashed.
Then I typed into a text box-and the view model never received the value.
That kind of failure is easy to miss if “the app starts” is your only post-obfuscation test. WPF bindings connect markup to code at runtime, so a build can look healthy while parts of the UI have quietly lost their connection.
A binding depends on names
Consider this XAML:
<TextBox Text = "{Binding CustomerName, UpdateSourceTrigger=PropertyChanged}" />
Enter fullscreen mode
Exit fullscreen mode
WPF looks for a property named CustomerName on the binding source, usually the object assigned to the view’s DataContext .
The XAML compiler converts markup into BAML-compiled WPF markup stored in the assembly’s resources.…