碰到一个神奇的崩溃,只要在窗口上晃一会鼠标就崩溃了
我写了一个C++库,并在其中启动了一个死循环回调WPF传入的函数,奇怪的是,我只要在窗口上晃一会儿鼠标,回调就崩溃了 项目地址:https://github.com/githowe/CallbackTest
开发人员技术 Windows Presentation Foundation
开发人员技术 C++
开发人员技术 C#
WPF程序里嵌入的OpenGL子进程窗口显示异常
在.Net6编写的WPF主程序(MainWindow.exe)里,采用MahApps.Microsoft.DwayneNeed组件,通过AirspaceMode="Redirect"与<WindowsFormsHost>组合方式(参见:https://blog.csdn.net/weixin_33881041/article/details/94560446)嵌入的OpenGL程序(glDemo.exe)。 1)glDemo程序选择集成显卡,启动MainWindow时嵌入的…
开发人员技术 Windows Presentation Foundation
Windows 商业版 适用于 IT 专业人员的 Windows 客户端 设备和部署 其他
I want to add buttons to Windows 11 Quick Settings through C # code
hello, I currently have a requirement to add a functional button in the action center of the system notification bar to activate the client. At this location. I hope you can help me, thank you. Also, let me share a funny thing that has nothing to do…
开发人员技术 Windows Presentation Foundation
Windows 商业版 适用于 IT 专业人员的 Windows 客户端 用户体验 其他
开发人员技术 C#
我将win10 sdk的蓝牙服务移植到WPF,无法做到快速断开和连接(快速断开后再次连接的情况下)
打开软件(我的测试程序)第一次连接Ble设备 很顺利 当我快速断开连接,并尝试重连,会出现无法找到特征等其他问题导致无法连接上Ble设备,如下图 接近20S才重新获得数据,我不清楚我的问题到底出在哪里,现附上我的demo,请大家帮忙解答下 否 public class MainWindowViewModel : BindableBase { private string _title = "Prism Application"; public string…
开发人员技术 通用 Windows 平台 (UWP)
开发人员技术 Windows Presentation Foundation
Windows 商业版 适用于 IT 专业人员的 Windows 客户端 用户体验 其他
请提供一个WPF调用.net AOT dll的正确示例
一个.net8/9的library, 暴露出一个函数功能为:接受一个指定长度,返回这个长度的字符'a'拼接的字符串. 将这个library通过aot编译成dll供WPF调用. 一个wpf的空模板项目,主页面上有一个按钮,点击后通过pinvoke调用上述的AOT dll获得长度为1万的字符串,并输出获得字符串的长度. 谢谢!
开发人员技术 Windows Presentation Foundation
开发人员技术 .NET 其他
GlyphRun in WPF doesn't seem to display dot-matrix fonts
I placed two texts on the window, but the display effects are inconsistent. How can I make Glyphs achieve the same display effect as TextBlock?
开发人员技术 Windows Presentation Foundation
开发人员技术 C#
如何使用 XAML 格式图标?
已经从 VS 图标库中复制了图标文件 Backwards.xaml 到项目目录中。如何在 XAML 中引用? <Button x:Name="btn"> <!--如何在此处引用 Resources/Backwards.xaml,使按钮中显示其图标?--> </Button> 要求: ①不把图标文件的内容直接复制到引用处。 ②部署时不出现 xaml 文件。 ③直接在 XAML 中引用,不在代码中动态设置。 追问:用以下方法可避免更改图标本身…
开发人员技术 Windows Presentation Foundation
开发人员技术 .NET 其他
使用Visual Studio 2022创建.net 6平台的新WPF应用程序,内存直接达到1GB
大家好!我换了新电脑后,使用Visual Studio 2022创建一个新WPF应用程序,内存直接达到1GB,试过很多次,都是这样,如下图: 我使用的CPU为:intel core ultra 9
开发人员技术 Windows Presentation Foundation
开发人员技术 Visual Studio 其他
开发人员技术 C#
wpf有像浏览器那样全局搜索定位的功能?
wpf有像浏览器那样全局搜索定位高亮文本的功能? 又比如点下一个,会定位下一个匹配文本,点上一个反之亦然。 如果有网格,包括定位网格内的内容定位。
开发人员技术 Windows Presentation Foundation
如何使用 WPF 打印 PDF?
我找不到WPF示例。谁能帮助我?谢谢 Note:此问题总结整理于:How to print PDF with WPF ?
开发人员技术 Windows Presentation Foundation

使用VB.NET编写WPF程序时,无法创建任何事件处理程序
我在使用vb.net创建wpf应用程序时,无法为控件添加事件处理程序。例如创建一个button,无论是双击它还是手动添加,在生成时总会报错:BC30456 “Button_Click”不是“MainWindow”的成员 补充信息: mainwindow的命名空间没搞错 同样的操作在C#里是可以正确创建事件处理程序的 我已经尝试修复vs了 代码部分没有错
开发人员技术 Windows Presentation Foundation
开发人员技术 .NET 其他
开发人员技术 VB
已经启用相关设置,安装wsl2,显示:系统找不到指定的文件
开发人员技术 Windows Presentation Foundation
Windows 部署 Windows 应用 SDK
Windows 商业版 适用于 IT 专业人员的 Windows 客户端 设备和部署 其他
Windows 商业版 Windows Server 用户体验 其他
Windows 商业版 适用于 IT 专业人员的 Windows 客户端 用户体验 其他
为什么我基于.net6创建的wpf程序抛出的异常信息没有本地化语言?
我设计了一个wpf程序来验证.net的异常抛出是否支持本地化的语言。在我搜集资料时获得信息: 如果不需要对异常消息进行特殊处理,只要按照正常方式编写和处理异常代码,.NET 框架会根据操作系统的区域设置自动本地化异常消息。 于是我编写了以下代码在win11中文系统上运行 using System; using System.Globalization; using System.Threading; using System.Windows; namespace…
开发人员技术 Windows Presentation Foundation
开发人员技术 .NET .NET 运行时
Exception Info: System.InvalidCastException: Unable to cast object of type 'System.__ComObject' to type 'ITfThreadMgr'.
在使用wpf 多次打开关闭同一窗体后,部分电脑会出现输入法报错,导致软件崩溃,请问这是什么原因造成的,使用了捕获异常的软件还是崩溃了,怎么操作能使软件不崩溃呢? TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException; Application.Current.DispatcherUnhandledException += App_DispatcherUnhandledException;(实现了 …
开发人员技术 Windows Presentation Foundation
开发人员技术 C#
WPF程序在surface pro 9 windows 11操作系统下触摸一个透明背景窗口,透明背景消失
Surface pro 9 windows 11专业版操作系统下,触摸屏触摸到WPF透明背景窗口边缘时会导致透明窗口变成“云白”颜色,而失去透明效果,需要再次触摸窗口边缘才能恢复透明状态,具体如下图: 窗体透明时的效果 触摸屏触摸窗体边缘,透明窗口变“云白”色效果 出问题时操作系统版本 1. 为了尽可能的描述问题,我对该问题目前收集的资料同步出来; 使用WPF .net framework…
开发人员技术 Windows Presentation Foundation
WPF的导航功能有哪几种比较常用的方式?
关于Windows Presentation Foundation的自定义导航栏开发导航功能问题
开发人员技术 Windows Presentation Foundation
关于wpf 的richtextbox 在修改文本时出现System.Environment.FailFast(string message)导致崩溃
wpf 的richtexbox 打包后在部分windows 10 电脑中运行, 全选richtextbox内容导致后,按下键盘某个键后直接崩溃。 Application: iTourTranslator.exe CoreCLR Version: 6.0.2223.42425 .NET Version: 6.0.22 Description: The application requested process termination through…
开发人员技术 Windows Presentation Foundation
开发人员技术 .NET 其他
开发人员技术 C#
WPF如何实现任务栏通知
使用.NET8的WPF如何基于XAML和CSharp实现具有复杂用户界面的任务栏通知,并且响应事件。可以在不停驻系统托盘的情况下发送任务栏通知吗?
开发人员技术 Windows Presentation Foundation
开发人员技术 .NET 其他
azure map的接口在新加坡用当地的sim卡为何无法调用呢
azure map的接口在新加坡用当地的sim卡为何无法调用呢