Skip to content

Add MM (millimeters) as a global unit option in the report designer#267

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/add-global-units-option
Draft

Add MM (millimeters) as a global unit option in the report designer#267
Copilot wants to merge 2 commits intomasterfrom
copilot/add-global-units-option

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

The designer's global units setting only offered Inches and Cm — no way to work in millimeters.

Changes

UI (DialogToolOptions)

  • Added radioButtonMm radio button to the "Options for Ruler" group box (expanded height to fit)
  • InitDesktop() selects the MM button when config contains units = mm
  • DoApply() sets MeasureUnits = "mm" when MM is selected
  • HandleDesktop() persists "mm" to config XML

Ruler drawing (DesignRuler)

  • _IsMetric now also triggers for "mm"
  • Scale factor uses DPI / 25.4 for mm vs DPI / 2.54 for cm — applied in both horizontal and vertical ruler paths

Status bar (RdlDesigner)

  • IsMetric() returns true for both "cm" and "mm"
  • New IsMm() helper distinguishes mm from cm for conversion factor selection
  • Position/dimension display applies × 25.4 for mm vs × 2.54 for cm

Resources

  • Added RdlDesigner_Status_mm string ("mm") to Strings.resx / Strings.Designer.cs

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • av-build-tel-api-v1.avaloniaui.net
    • Triggering command: /usr/share/dotnet/dotnet dotnet exec --runtimeconfig /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/runtimeconfig.json /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/Avalonia.BuildServices.Collector.dll (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Cannot set global units to MM</issue_title>
<issue_description>Is your feature request related to a problem? Please describe.
Need a posibility to set. Global Units
Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.
</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: majorsilence <656288+majorsilence@users.noreply.github.com>
Copilot AI changed the title [WIP] Add option to set global units to MM Add MM (millimeters) as a global unit option in the report designer Feb 19, 2026
Copilot AI requested a review from majorsilence February 19, 2026 13:51
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.

Cannot set global units to MM

2 participants