- Inuyasha123
- Posts: 19
- Joined:
How to keep font in fixed size
If I customize the content in the UserControl, how to keep the font from being scaled when the content exceeds the size of the control
-
sfernandez
Site Admin
- Posts: 3008
- Joined:
Re: How to keep font in fixed size
Could you please share the xaml corresponding to the UserControl to understand what is happening?
If I have to guess I imagine you have a Viewbox wrapping the contents of the UserControl. If you don't want to scale down the contents you can set the Viewbox StretchDirection="UpOnly", is that what you need?
If I have to guess I imagine you have a Viewbox wrapping the contents of the UserControl. If you don't want to scale down the contents you can set the Viewbox StretchDirection="UpOnly", is that what you need?
- Inuyasha123
- Posts: 19
- Joined:
Re: How to keep font in fixed size
Yes, you guessed it. I use a ViewBox to wrap a UserControl. The UserControl contains several Expander layouts, but when Expander expands, all fonts are automatically scaled by the Grid.
- Inuyasha123
- Posts: 19
- Joined:
Re: How to keep font in fixed size
I still have a problem. I use Noesis on Unity and use the ListBox control. When I use the mouse wheel to slide, not only the scroll bar of the ListBox is scrolling, but the Unity camera is also scrolling because I am on the Unity camera. A script that handles mouse wheel swipes is mounted. Is there any particularly good way to handle Unity and Noesis events separately?
-
sfernandez
Site Admin
- Posts: 3008
- Joined:
Re: How to keep font in fixed size
Could you please open this last question as another topic, it would be easier for other people looking for the same problem to find it that way.
Thanks for your collaboration.
Thanks for your collaboration.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 6 guests