https://blog.csdn.net/Vblegend_2013/article/details/81771872

 

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

<Grid FocusManager.FocusedElement="{Binding ElementName=pwd}">
<Grid.RowDefinitions>
<RowDefinition Height="40" />
<RowDefinition />
</Grid.RowDefinitions>
<Button Style="{StaticResource CloseImageButtonStyle}" HorizontalAlignment="Right"
Margin="0,0,5,0"
IsCancel="True"
Command="{Binding CloseCommand}" />
<DockPanel Margin="45,0" Grid.RowSpan="2" VerticalAlignment="Center">
<Button
IsDefault="True"
DockPanel.Dock="Right" Margin="10,0,0,0" Style="{StaticResource NormalButtonStyle}" Content="确定"
Command="{Binding ConfirmCommand}" />

<PasswordBox
x:Name="pwd"
converter:PasswordBoxHelper.Password="{Binding Password,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Height="30" Style="{StaticResource DefaultPasswordBoxStyle}" />
</DockPanel>
</Grid>

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄