<DataGridTemplateColumn Header="设备状态" IsReadOnly="True" Width="150">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<!--<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#007EFF" FontSize="16">
<Hyperlink Foreground="Blue" TextDecorations="None">
<TextBlock Tag="{Binding MonitorNoOfCheckItem}" Text="查看" FontSize="16" Cursor="Hand"/>
</Hyperlink>
</TextBlock>-->
<Button Content="查看" BorderThickness="0" Name="BtnView" Tag="{Binding MointorNo}" Background="Transparent" Foreground="#007EFF" Command="{Binding DataContext.CmdShowItemValues,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl}}" CommandParameter="{Binding ElementName=BtnView,Path=Tag}"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>

相关文章:

  • 2021-04-07
  • 2022-01-17
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
猜你喜欢
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
相关资源
相似解决方案