XamlCompiler error WMC1118,TwoWay binding target must be a dependency property
See original GitHub issue <local:FolderPicker Grid.Row="0" HeaderText="Save Folder" Folder="{x:Bind Attributes.(local:WebUrlRetrieveData.Folder),Mode=TwoWay}"></local:FolderPicker>
XamlCompiler error WMC1118: TwoWay binding target ‘Folder’ must be a dependency property
idl
[default_interface]
runtimeclass FolderPicker : Microsoft.UI.Xaml.Controls.Control
{
FolderPicker();
String HeaderText;
String Folder;
Microsoft.UI.Xaml.DependencyProperty Folder2;
}
i don’t know why it throws such an error.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
WPF usercontrol Twoway binding Dependency Property
Bind the TextBox.Text property in the UserControl to its SampleProperty like this: <TextBox Text="{Binding SampleProperty, ...
Read more >Dependency properties overview - UWP applications
A dependency property represents or supports a specific feature of the programming model for defining a Windows Runtime app with XAML for UI...
Read more >DependencyProperty not working in derived UserControl
When binding a DependencyProperty will never hit the setter. That's why you have the OnMyPropertyChanged handler. In other words your setter ...
Read more >Two-way binding inside a XAML User Control - Jerry Nixon
A data binding source source CAN be a CLR-type property. A data binding target MUST be a dependency property. This is an immutable...
Read more >Bind dependency property in custom column not working
Hello, I try to set a dependency property in a gridviews custom column, based on GridViewBoundColumnBase, with binding to another field of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@shelllet the dependency property needs to be written in a certain way. You can look at details here - https://docs.microsoft.com/en-us/windows/uwp/xaml-platform/custom-dependency-properties#dependency-property-name-conventions
it’s my fault, I didn’t notice:
folder
andfolderproperty
must exist at the same time. thank you!