我在将一个控件绑定到另一个控件时遇到问题。为什么?

问题描述 投票:0回答:1
c# xaml data-binding maui code-behind
1个回答
0
投票

在绑定源中指定对复选框的引用:

<Entry x:Name="dbPasswd"
       Grid.Row="2"
       Margin="20,0,20,0"
       IsPassword="{Binding IsChecked, Source={x:Reference chkShowPasswd}, Converter={StaticResource InvertedBoolConverter}}"
       Placeholder="Enter Database Password"
       TextColor="White" />
© www.soinside.com 2019 - 2024. All rights reserved.