RadRichTextBox rendering problem when TextOptions.TextFormattingMode is set to “Display”
In Silverlight 5 you may make your application look better by changing the way fonts are rendered. You make this change by applying some additional setting in your App.xaml.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<!-- Control the way glyphs are generated. You can set either *Ideal* (nicer for larger fonts) or *Display* (nicer for small ones) --> <TextFormattingMode x:Key="NormalTextFormattingMode">Display</TextFormattingMode> <!-- Allows to disable text optimization - recommended setting is *Fixed* (improved readability) than *Animated* (optimized for animations) --> <TextHintingMode x:Key="NormalTextHintingMode">Fixed</TextHintingMode> <!-- Controls font antialiasing setting. You can set: *Allased* (turns off antialiasig), *ClearType*, *Grayscale* (anialiases font using grayscale), *Auto* (tries to guess the best setting for you) --> <TextRenderingMode x:Key="NormalTextRenderingMode">ClearType</TextRenderingMode> <Style TargetType="TextBlock"> <Setter Property="TextOptions.TextFormattingMode" Value="{StaticResource NormalTextFormattingMode}" /> <Setter Property="TextOptions.TextHintingMode" Value="{StaticResource NormalTextHintingMode}" /> <Setter Property="TextOptions.TextRenderingMode" Value="{StaticResource NormalTextRenderingMode}" /> </Style> |
The whole instruction regarding this topic was described here.
Problems with debugging in Silverlight
Ostatnio zdarzylo sie u nas w firmie, ze jedna osoba (pracujaca na Windows 8) nagle przestala moc debuggowac aplikacje w Silverlight'cie - co dziwne na pozostalych komputerach (z Windows 7) wszystko dzialalo w porzadku.
Jeden problem - ze miala problemy z uruchomieniem aplikacji (Visual Studio rzucal info "Unable to start program http://localhost...aspx") pod IE, drugi - ze nie byla w stanie debuggowac aplikacji, nawet jesli ta byla np uruchomiona na innej przegladarce.
Probowalismy wszystkich znanych nam rozwiazan, sprawdzajac co moze byc nie tak ... oraz rozne inne (czasami dziwne) rozwiazania zaproponowane w Internecie... jednak bez rezultatu.
Skonczylo sie na ticket'cie w Microsofcie i tu musze przyznac chlopaki z Microsoftu z Münich spisali sie naprawde fajnie i nastepnego dnia mielismy juz rozwiazanie na ten problem. Powod? W sumie zabawny... co ciekawe dziala rowniez na Windows 7 ale o tym ponizej.