Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

formatted-text

FormattedText.FormttedText is obsolete. Use the PixelsPerDip override

April 9, 2024 by Tarik

Try this: FormattedText formattedText = new FormattedText(text, CultureInfo.GetCultureInfo(“en-us”), FlowDirection.LeftToRight, new Typeface(“Verdana”), 16, Brushes.Black, VisualTreeHelper.GetDpi(this).PixelsPerDip);

Categories c# Tags c++, formatted-text, wpf Leave a comment

How to code and print a character string formatted with line breaks?

December 5, 2023 by Tarik
Categories r Tags formatted-text, line-breaks, newline, r, string Leave a comment

Set superscript and subscript in formatted text in wpf

May 31, 2023 by Tarik

You use Typography.Variants: <TextBlock> <Run>Normal Text</Run> <Run Typography.Variants=”Superscript”>Superscript Text</Run> <Run Typography.Variants=”Subscript”>Subscript Text</Run> </TextBlock>

Categories wpf Tags formatted-text, subscript, superscript, wpf, wpf-controls Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa