You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Decoy : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private string _value;
public string Value
{
get => _value;
set
{
if (_value != value)
{
_value = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Value)));
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Result)));
}
}
}
public string Result => Value;
}
Describe the bug
using an element property as an argument for function binding inside template binding (testTextBox.Text in the following example)
the generated g.cs file has an unexpected generated code
.
correcting the generated code for
TryGet_testTextBox
val = bindings.obj4;
toval = obj4;
and
TryGet_
val = this;
toval = this.dataRoot;
is the expected code. which works fine after testing
Steps to reproduce the bug
use an element name in function binding inside a datatemplate
Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.2: 1.6.241106002
Windows version
No response
Additional context
the only work around i found is to avoid the function binding
for the mentioned example above,
min repro project link
The text was updated successfully, but these errors were encountered: