HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

Contains some simple and commonly used WPF controls

Results 312 HandyControl issues
Sort by recently updated
recently updated
newest added

### Describe the bug 当我的comboboxitem的content为一个control时,会出现显示不完全的问题,要么是展示区显示,要么是下拉框里显示 代码如下: 请问是否支持非字符串的comboboxitem呢 ### Steps to reproduce the bug ![Snipaste_2023-11-15_16-20-21](https://github.com/HandyOrg/HandyControl/assets/71867892/b578da27-0b63-479e-a776-2da9e4307cfc) ### Expected behavior _No response_ ### Screenshots ![GIF](https://github.com/HandyOrg/HandyControl/assets/71867892/16df219f-546c-4ac8-b576-562d2bae8b84) ### NuGet package version None ### IDE _No...

:art: design defect

触发器似乎忘记处理 Title 了,导致界面整体禁用(`IsEnabled=False`)变灰后,Title 的文字仍然很显眼。 此问题包括 `ReadOnlyComboBox` 及任何支持 `hc:TitleElement.Title` 的控件。 https://github.com/HandyOrg/HandyControl/blob/babf40e59fe9e57eb185e4658ce46036610083f9/src/Shared/HandyControl_Shared/Themes/Styles/Base/TextBoxBaseStyle.xaml#L194

### Feature request type sample request ### Is your feature request related to a problem? Please describe 平时使用时,添加IP地址是用TextBox直接设置,但是没有错误检查和规范限制 ### Describe the solution you'd like 类似于winform的IPAddress的控件,支持复制粘贴,检测数字范围,输入ip地址时支持Tab跳转网段 ### Describe alternatives you've considered...

:ok_hand: accepted

when the value of these attribute updated, can refresh the control. MVVM模式下,Duration/AutoRun等的这些主要属性的更新,可以即刻刷新控件。

### Describe the bug 弹出信息框(我用的desktop类型的)之后,程序窗口做操作,比如放大缩小或者点击按钮,以及点击弹出的消息,有一定的概率抛出异常,让程序崩溃。用例子程序的概率要低一些,用我自己的程序概率要高很多,可能是因为操作有具体业务代码的缘故。 ### Steps to reproduce the bug 1.点击弹出消息框按钮,比如“成功”,可以快速点击弹出大量弹出消息 2.弹出框不消失的情况下疯狂操作窗口,比如双击标题栏放大缩小,demo程序好像是点击弹出的消息会更高的概率死亡,死亡时好像每次都有一消息在弹出,请参看截图,截图是程序崩溃时候截图 3.有一定概率崩溃 ### Expected behavior _No response_ ### Screenshots ### NuGet package version HandyControl 3.4.0 ### IDE Visual...

### Describe the bug ImageViewer、ImageBrowser显示高分辨率图片内存泄露,使用7518 x 2048分辨率1.43MB大小图片多打开关闭几次ImageView或者ImageBrowser后内存泄露,内存无法释放 ### Steps to reproduce the bug 1.将HandyControlDemo_Shared项目下ViewModel/Controls/ImageBrowserDemoViewModel.cs文件中 ``` public RelayCommand OpenImgCmd => new(() => new ImageBrowser(new Uri("pack://application:,,,/Resources/Img/1.jpg")).Show()); ``` Uri 部分替换为本地高分辨率图片; 2.使用HandyControlDemo_Net_GE45项目、.net7.0-windows环境Release模式编译项目; 3.运行Release/net7.0-windows文件夹下HandyControlDemo.exe后在【“控件”->“图片浏览器”->"点击打开图片浏览器"】多打开关闭几次后出现内存泄露。 ###...

我使用的场景是为数据上传相应图片,最后复制到项目文件夹中并写入数据库。当我再编辑这条数据时给它换个图片,该控件就没有显示上一次我给它设置的。Uri属性因为只读,所以我照搬了控件切换图片方法的代码在编辑窗体加载后重设Uri内容,UI和后台代码: ``` ``` ``` this.deviceImg.Loaded += (sender, e) => { if (!string.IsNullOrWhiteSpace(model.imageSource)) { deviceImg.SetValue(ImageSelector.UriPropertyKey, new Uri(model.imageSource)); SetValue(ImageSelector.PreviewBrushPropertyKey, new ImageBrush(BitmapFrame.Create(deviceImg.Uri, BitmapCreateOptions.IgnoreImageCache, BitmapCacheOption.None)) { Stretch = deviceImg.Stretch }); SetValue(ImageSelector.HasValuePropertyKey, true); SetCurrentValue(FrameworkElement.ToolTipProperty, "this...

:factory: enhancement

### Describe the bug 一开始创建使用后可以,经过一段时间没用后再运行出现如下情况: 托管调试助手 "PInvokeStackImbalance":“对 PInvoke 函数“HandyControl!HandyControl.Tools.Interop.InteropMethods::GetWindowPlacement”的调用导致堆栈不对称。原因可能是托管的 PInvoke 签名与非托管的目标签名不匹配。请检查 PInvoke 签名的调用约定和参数与非托管的目标签名是否匹配。” ### Steps to reproduce the bug 经过一段时间没用再运行后就会出现 ### Expected behavior _No response_ ### Screenshots ![image](https://github.com/HandyOrg/HandyControl/assets/81232339/b3bb1276-0d01-4b90-86f9-2f8661d47553) ### NuGet...

### Feature request type sample request ### Is your feature request related to a problem? Please describe I am doing a pc with chat box, chatbubble seems to wrap a...

:factory: enhancement

有些菜单只有一级菜单,没有二级菜单。 一级菜单只有点击状态。没有选中状态。字体会加粗,但是背景色不变。 ![微信截图_20231010161523](https://github.com/HandyOrg/HandyControl/assets/10347687/489c9622-9b47-47bd-895b-154264ab2eb2)