Skip to content

Add Timer component#113

Open
ProGraMajster wants to merge 3 commits intomodern-forms:mainfrom
ProGraMajster:feature/timer
Open

Add Timer component#113
ProGraMajster wants to merge 3 commits intomodern-forms:mainfrom
ProGraMajster:feature/timer

Conversation

@ProGraMajster
Copy link
Copy Markdown
Contributor

This PR adds a Timer component to Modern.Forms.

The implementation is based on DispatcherTimer and ensures that the Tick

Supports Start / Stop
Configurable Interval

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new Modern.Forms.Timer component intended for UI scenarios, implemented on top of Modern.WindowKit.Threading.DispatcherTimer to raise Tick on the UI thread.

Changes:

  • Added a Timer component with Tick event and Start()/Stop() control.
  • Added Enabled and Interval properties (with interval validation) and disposal logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Collaborator

@jpobst jpobst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the Copilot comment about resetting enabled in Dispose is a good idea. The rest of its suggestions are safe to ignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants