Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/307.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用SetWindowTheme()和pszSubIdList参数_C#_Listview_Themes - Fatal编程技术网

C# 使用SetWindowTheme()和pszSubIdList参数

C# 使用SetWindowTheme()和pszSubIdList参数,c#,listview,themes,C#,Listview,Themes,我正在尝试在列表视图及其标题上应用Windows File Explorer视觉样式主题。在我的代码中,ListView是派生的,Header是子类 如我们所见,ListView/Header有两个不同的主题:Explorer和ItemsView。最后一个渲染钢蓝色文本标题 当我使用SetWindowTheme(句柄,“explorer”,null)成功地为ListView设置主题时,我无法应用ItemsView版本 我希望标题显示如下: 以下内容不起作用(它呈现常规的资源管理器主题):设置窗

我正在尝试在
列表视图及其
标题上应用Windows File Explorer视觉样式主题。在我的代码中,
ListView
是派生的,
Header
是子类

如我们所见,
ListView/Header
有两个不同的主题:ExplorerItemsView。最后一个渲染钢蓝色文本标题

当我使用
SetWindowTheme(句柄,“explorer”,null)
成功地为
ListView设置主题时,我无法应用ItemsView版本

我希望
标题
显示如下:

以下内容不起作用(它呈现常规的资源管理器主题):
设置窗口主题(句柄,“itemsview”,“header”)

我如何应用这个特定主题?有可能吗