Replies: 2 comments
-
You can try nightly builds, there were minor changes in template binding related to popups. But it might not help. In general, try to use Binding instead of TemplateBinding:
or
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem Description
I want to create a custom control by
Templated Controls
. But I meet the problem that I can't successfullyTemplateBinding
theIsEnabled Property
inMenuItem
.Source Code
I will provide 5 different grammars for comparison to better illustrate the problem.
TemplatedControl1.axaml
TemplatedControl1.axaml.cs
Results
The consequence is that
demo4
anddemo5
only certainly work, but others not. Why?Help🙏
How can I correctly
TemplateBinding
theIsEnabled
inMenuItem
just like inButton
?Beta Was this translation helpful? Give feedback.
All reactions