About 56,200 results
Open links in new tab
  1. TextBlock Overview - WPF | Microsoft Learn

    May 7, 2025 · The TextBlock control provides flexible text support for WPF applications. The element is targeted primarily toward basic UI scenarios that do not require more than one paragraph of text.

  2. The TextBlock control - The complete WPF tutorial

    The TextBlock control allows you to very easily put text into your application and even format it in a variety of ways. This article will introduce you to the control and show you some of its tricks.

  3. WPF Textblock, linebreak in Text attribute - Stack Overflow

    May 8, 2009 · This is how I did: I subclassed the TextBlock to make the InlineCollection bindable and wrote a Converter between the string and an InlineCollection (or actually a generic list of Inlines.)

  4. WPF TextBlock - C# Corner

    This tutorial and code examples demonstrates how to use a WPF TextBlock control in a WPF app and set its font style, text formatting, alignment, text decorations and other properties in XAML and C#.

  5. TextBlock Class (System.Windows.Controls) | Microsoft Learn

    TextBlock is designed to be lightweight, and is geared specifically at integrating small portions of flow content into a user interface (UI). TextBlock is optimized for single-line display, and provides good …

  6. WPF - Textblock - Online Tutorials Library

    Given below are the most commonly used methods of TextBlock. Lets create a new WPF project with WPFTextBlockControl. Drag a text block from the toolbox. Change the background color of the text …

  7. Mastering TextBlocks in C# WPF Applications - Web Dev Tutor

    Aug 21, 2024 · Understanding how to effectively work with TextBlocks can enhance the visual appeal and functionality of your application. In this blog post, we will explore various aspects of utilizing …

  8. Any way to make a WPF textblock selectable? - Stack Overflow

    Sep 26, 2008 · After hours of digging around and reading the WPF source code, I instead discovered a way of enabling the native WPF text selection for TextBlock controls (or really any other controls).

  9. WPF Information Controls - TextBlock Basics

    In this article we will look at the basics of TextBlocks, seeing how to add and format text. In the next instalment of the tutorial we will examine the ability to add manual line breaks and include multiple …

  10. TextBlock Class (Windows.UI.Xaml.Controls) - Windows apps

    The WinUI 2 Gallery app includes interactive examples of most WinUI 2 controls, features, and functionality. Get the app from the Microsoft Store or get the source code on GitHub. This example …