viewbox

TextBlock inside a Viewbox - strange rendering

大憨熊 提交于 2021-02-06 22:11:45
问题 This is a question regarding a very simple construction - I have the following XAML: <Viewbox Height="100" Stretch="Uniform"> <TextBlock FontFamily="Georgia">My Cool Text</TextBlock> </Viewbox> This is quite simple to understand. Yet when I start the program I get strange blurry text (there are no bitmap effects anywhere in my project). (left side - the designer view in VS2010, right side - the running application) Does anyone have ANY suggestions about why this is happening?? 回答1: While

TextBlock inside a Viewbox - strange rendering

廉价感情. 提交于 2021-02-06 22:06:14
问题 This is a question regarding a very simple construction - I have the following XAML: <Viewbox Height="100" Stretch="Uniform"> <TextBlock FontFamily="Georgia">My Cool Text</TextBlock> </Viewbox> This is quite simple to understand. Yet when I start the program I get strange blurry text (there are no bitmap effects anywhere in my project). (left side - the designer view in VS2010, right side - the running application) Does anyone have ANY suggestions about why this is happening?? 回答1: While

TextBlock inside a Viewbox - strange rendering

一曲冷凌霜 提交于 2021-02-06 22:01:43
问题 This is a question regarding a very simple construction - I have the following XAML: <Viewbox Height="100" Stretch="Uniform"> <TextBlock FontFamily="Georgia">My Cool Text</TextBlock> </Viewbox> This is quite simple to understand. Yet when I start the program I get strange blurry text (there are no bitmap effects anywhere in my project). (left side - the designer view in VS2010, right side - the running application) Does anyone have ANY suggestions about why this is happening?? 回答1: While

TextBlock inside a Viewbox - strange rendering

六月ゝ 毕业季﹏ 提交于 2021-02-06 22:01:42
问题 This is a question regarding a very simple construction - I have the following XAML: <Viewbox Height="100" Stretch="Uniform"> <TextBlock FontFamily="Georgia">My Cool Text</TextBlock> </Viewbox> This is quite simple to understand. Yet when I start the program I get strange blurry text (there are no bitmap effects anywhere in my project). (left side - the designer view in VS2010, right side - the running application) Does anyone have ANY suggestions about why this is happening?? 回答1: While

Textblock in Viewbox not multiline

柔情痞子 提交于 2021-02-05 07:59:05
问题 I'm having a bit of a trouble with the autosizing of a text. I read somewhere that if I wanted to achieve that, i need to put my textblock in a viewbox . The problem with that is this way the text isn't split into multiple lines. For example "very very very long text" is almost unreadable, but "simpletext" looks just fine. <Viewbox Grid.Row="1" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="4" StretchDirection="DownOnly"> <TextBlock Text="{Binding FieldName}" VerticalAlignment="Center"

Why doesn't an HTML anchor tag wrap a scalable SVG <object>?

孤人 提交于 2021-01-27 07:10:20
问题 I have created a scalable SVG object, using the preserveAspectRatio and viewBox attributes in the SVG file itself: <svg … width="800" height="800" preserveAspectRatio="xMinYMin meet" viewBox="0 0 800 800" … In the HTML, I reference the SVG file using the <object> tag and wrap it an <a> tag (I want to do this so that I can style it later): <a> <object type="image/svg+xml" data="smiley.svg"> </object> </a> I style the <object> tag with some CSS to make it 50% wide, and no wider than 100%:

Why doesn't an HTML anchor tag wrap a scalable SVG <object>?

心不动则不痛 提交于 2021-01-27 07:10:19
问题 I have created a scalable SVG object, using the preserveAspectRatio and viewBox attributes in the SVG file itself: <svg … width="800" height="800" preserveAspectRatio="xMinYMin meet" viewBox="0 0 800 800" … In the HTML, I reference the SVG file using the <object> tag and wrap it an <a> tag (I want to do this so that I can style it later): <a> <object type="image/svg+xml" data="smiley.svg"> </object> </a> I style the <object> tag with some CSS to make it 50% wide, and no wider than 100%:

ViewBox Stretch blurs the controls

痴心易碎 提交于 2020-01-26 02:50:26
问题 ToolTip with numbers is a child UserControl, which is added to Canvas. Canvas is a child of the ViewBox. In order to scale the contents of the Canvas resizing control. The problem is that ToolTip getting blurred. ToolTip itself consists only of vector elements (without pictures) How to make ViewBox scale without these artifacts? Layout Rounding does not help 来源: https://stackoverflow.com/questions/14957794/viewbox-stretch-blurs-the-controls