0
点赞
收藏
分享

微信扫一扫

.NET6中WPF项目添加System.Windows.Forms引用

Silence潇湘夜雨 2024-11-11 阅读 39
wpf
  [RelayCommand]
  private void LostFocus()
  {
      GrowlTool.ShowError("123");
  }
<TextBox
    MinWidth="100"
    hc:BorderElement.CornerRadius="0"
    IsReadOnly="{Binding ElementName=CalModeComboBox, Path=SelectedIndex, Converter={StaticResource CalModeToBoolConverter}}"
    Style="{StaticResource TextBoxBaseBaseStyle}"
    Text="{Binding Curve.CrtFactor[0], StringFormat=0.###}"
    TextAlignment="Center">
    <hc:Interaction.Triggers>
        <hc:EventTrigger EventName="LostFocus">
            <hc:InvokeCommandAction Command="{Binding LostFocusCommand}" />
        </hc:EventTrigger>
    </hc:Interaction.Triggers>
</TextBox>
举报

相关推荐

0 条评论