Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我有一个充满几个文本块的 nx3 网格,我想知道是否有一种相对简单的方法可以在所有文本块上应用相同的比例变换,以便它们最终具有相同的字体。
不知道该怎么做,但我在想也许。Viewbox 所有的文本框到它们的网格槽。选择应用的最小比例因子。将 scaletransform 应用于所有文本块。
无论如何,有没有其他方法可以获得可以应用于文本的最大比例变换,同时将其保持在其网格槽内?
仅具有字体大小选项并使用网格拆分器可能更容易,但自动伸缩性听起来不错
Viewbox 所有的文本框到它们的网格槽。
听起来可行,您可以使用ItemsControl带有Gridas 面板的 a 并将其Viewbox放入ItemTemplate. 您需要将其绑定到包含文本和行/列信息的对象集合,以便您Grid.Row可以Column在ItemContainerStyle.
ItemsControl
Grid
Viewbox
ItemTemplate
Grid.Row
Column
ItemContainerStyle