HandyOrg / HandyOrg/HandyControl

[Feature request] 请求公开窗体的菜单按钮以绑定dialog对话框

Open
#1,175 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
7.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

请求公开窗体的 最小化,最大化,关闭等按钮。

在dialog进行异步操作等待时用户可直接关闭窗口,造成一些不必要的操作继续被执行。需将dialog与窗体按钮进行绑定。

目前解决办法: if (this.GetTemplateChild("ButtonClose") is System.Windows.Controls.Button button)

button.SetBinding(IsEnabledProperty, new Binding() { Source = AdornerDecorator.Child,Path= new PropertyPath("IsEnabled") });

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the dialog control's ButtonClose template element and the AdornerDecorator.Child binding shown in the issue. Trace how the dialog exposes its window controls and determine the API needed to bind minimize, maximize, and close buttons during asynchronous operations. Done means these buttons can be bound to the dialog state without accessing template children directly.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.