Re-template RadialGauge to remove ViewBox (was: Setting RadialGauge Height and Width scales the text (Value and Unit)) #3917
Replies: 11 comments
-
Given the nature of the control, I don't think it'd be possible to keep the text of the value and unit at the configured text size. Maybe changing the design so that both the value and the unit are outside of the gauge, we could make them respect the text size regardless of the gauge scaling. Does this image reproduce the issue correctly? BTW, I couldn't get VS to recognize the header property, even with the packages from the 3.0.0 version. How did you use it? |
Beta Was this translation helpful? Give feedback.
-
@Bmartin2013 Yes, the image is representative. The issue I have using the control as it is, is that 200x200 is too big for us and when I reduce the size to 150x150 the number becomes small, and does not go well with other controls.
Maybe, putting the text in the center and bringing it out of the About |
Beta Was this translation helpful? Give feedback.
-
After looking into it, I think that changing the text layout could be a breaking change. Instead, we could add a property to the control in order to hide the default text, giving you the freedom to handle the text layout anyway you want. What do you think? |
Beta Was this translation helpful? Give feedback.
-
This control needs to be rewritten IMO, the entire layout depends on a single ViewBox that is causing these issues and needs to be removed. It's a breaking change, but I think it's for the better. Let's keep this issue open for tracking. Opening up to the community. (P.S. In the meantime, you could re-template the control in your app directly and remove any properties not needed) |
Beta Was this translation helpful? Give feedback.
-
If this needs to be rewriten, @JerryNixon 's Speedometer Sample should be a good start |
Beta Was this translation helpful? Give feedback.
-
@Bmartin2013 @nmetulev @avknaidu While we are at refactoring/rewriting I think following should be consider .
This is precisely I am trying to do. I am taking above as requirements and working on it. One thing that I don't understand is the UI automation. See this related question on stack. |
Beta Was this translation helpful? Give feedback.
-
Whilst there is a consideration for re-thinking this Radial Gauge control, perhaps there should be some thought to having a default design which fits with the Microsoft Design Language, and Fluent design principles. |
Beta Was this translation helpful? Give feedback.
-
If we are going to redesign this control we should keep in mind high contrast accessibility, as currently, the control has issues with it. |
Beta Was this translation helpful? Give feedback.
-
I'm definitely in favor of a more fluent default look and feel. After all, the current version was specifically designed for Windows 8. As far as templating concerns: it's easy to pull the text boxes out of the view box and override their font size (just did it: it still looks sharp at a size of 80). We could do this change in the toolkit, and add two more properties to the control: ValueFontSize and UnitFontSize. Initializing default colors from theme resources (including high contrast) is also something we could do. All default colors are hard-coded now. |
Beta Was this translation helpful? Give feedback.
-
Whats the current status? |
Beta Was this translation helpful? Give feedback.
-
Transferring this to the discussion as it requires more clarity. |
Beta Was this translation helpful? Give feedback.
-
I'm submitting a bug
Current behavior
When setting the Height and Width of RadialGauge to say 100,
Expected behavior
Value
andUnit
size should not change. Maybe it should also be possible to independently set font size for them if so desired.Minimal reproduction of the problem with instructions
Environment
Beta Was this translation helpful? Give feedback.
All reactions