Advertisement

wpf DataGrid行样式通过条件设置(透明背景、点击一行的颜色、选中一行的颜色)

阅读量:

一.直接在XALM里面修改样式

1.界面(可以根据自己喜欢样式弄)

在这里插入图片描述
在这里插入图片描述

2.XAML标签解析与应用

复制代码
    <Window x:Class="wpfListView滚动使用.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

全部评论 (0)

还没有任何评论哟~