Hello,
Welcome to our Microsoft Q&A platform!
I tested your code in a basic demo and faced the same issue. It's caused by the limit of TemplateBinding
, check this link. To fix this issue, try using Binding
instead.
<ControlTemplate x:Key="_template">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="25" />
<RowDefinition Height="35" />
<RowDefinition Height="{TemplateBinding IsShowing, Converter={StaticResource _converter}}" />
</Grid.RowDefinitions>
...
</Grid>
</ControlTemplate>
Best Regards,
Jarvan Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.