Skip to content

Add NumericValidationBehavior Interval Docs - #663

Closed
Brandon Minnick (TheCodeTraveler) wants to merge 0 commit into
MicrosoftDocs:mainfrom
TheCodeTraveler:Add-NumericValidationBehavior-Interval
Closed

Brandon Minnick (TheCodeTraveler) wants to merge 0 commit into
MicrosoftDocs:mainfrom
TheCodeTraveler:Add-NumericValidationBehavior-Interval

Conversation

@TheCodeTraveler

Copy link
Copy Markdown
Contributor

This pull request updates the documentation for NumericValidationBehavior in .NET MAUI Community Toolkit to introduce and explain the new Interval property, which restricts valid input to numeric multiples of a specified value. The documentation now includes detailed guidance, examples in both XAML and C#, and important notes about floating-point precision and validation behavior.

New Feature Documentation:

  • Added a section describing the new Interval property, including its purpose, usage, and behavior when set to various values. This section includes code examples in both XAML and C#.
  • Updated the properties table to include the Interval property, clarifying its type and linking to the new section for more details.

Clarifications and Best Practices:

  • Added explanatory notes about floating-point rounding tolerance, edge cases with large values, and how to avoid common pitfalls when using Interval.
  • Documented that validation failures are logged with the reason using System.Diagnostics.Trace, helping developers debug input issues.

Metadata Update:

  • Updated the ms.date metadata to reflect the latest documentation revision.

Copilot AI balanced review requested due to automatic review settings October 2, 2026 23:45
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit adb66e8:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/behaviors/numeric-validation-behavior.md ✅Succeeded View

For more details, please refer to the build report.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The documentation-only update has no blocking issues; the remaining example-completeness suggestion is minor.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Documents NumericValidationBehavior.Interval for .NET MAUI Community Toolkit users.

Changes:

  • Adds interval validation guidance and XAML/C# examples.
  • Explains rounding limitations and diagnostic tracing.
  • Updates property types and revision metadata.
File Description
docs/​maui/​behaviors/​numeric-validation-behavior.md Documents interval behavior and updates the property reference.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@TheCodeTraveler

Copy link
Copy Markdown
Contributor Author

Gerald Versluis (@jfversluis) This PR is ready to merge

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

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.

2 participants