wpf PasswordBox 样式中怎么用Password的值做为触发器
<PasswordBox.Style><StyleTargetType="PasswordBox"><Style.Triggers><TriggerProperty="P...
<PasswordBox.Style>
<Style TargetType="PasswordBox">
<Style.Triggers>
<Trigger Property="Password" Value="">
<Setter Property="Background" Value="{StaticResource HelpBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
</PasswordBox.Style>
当前代码异常提示{"属性对于 Trigger 不能为 null。"} 展开
<Style TargetType="PasswordBox">
<Style.Triggers>
<Trigger Property="Password" Value="">
<Setter Property="Background" Value="{StaticResource HelpBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
</PasswordBox.Style>
当前代码异常提示{"属性对于 Trigger 不能为 null。"} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询