1,084 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
2
answers
113
views
Korean Text word breaking problem in WinUI project
Korean text gets cut off in the middle of a word. The whole word should go to the next line.
<TextBlock
x:Name="IconButtonName"
Width="66"
Margin="2,2"
...
-1
votes
1
answer
74
views
How to have a summary-like textbox [closed]
I want to have a textbox with the following logic:
Meaning, some text and the dots until reaching a predetermined width and a number. I am aware that since I am not using a monospaced character the ...
0
votes
1
answer
62
views
How to apply background color to text in a TextBlock without affecting the entire TextBlock or using Run elements
I'm working with a TextBlock in WPF and need to apply a background color only to the text content without affecting the entire TextBlock. I don't want to use Run or Inline elements because this ...
1
vote
1
answer
188
views
On button hover, textblock needs to display some text in c#
I have a button. On mouse hovering on the button, a textblock used in my project should display some value. Button is defined in the library and that library I am using in my project. In my project I ...
0
votes
1
answer
44
views
C# Textblock inline, how to access different elements?
I am using Textblock.Inlines to add a picture and text to a header element. Without going too deep into the code, this is a short example.
TextBlock tbHeader = new TextBlock();
Image headerImage = new ...
0
votes
1
answer
34
views
Windows.UI.Xaml.Controls.TextBlock.DoubleTapped event not fired
In a Xamarin.Forms project for Android and UWP, I want to define an effect for long press (Android) and double click (on UWP). I did all I found for this purpose, defining an appropriate RoutingEffect ...
0
votes
0
answers
71
views
WPF Custom Label
I have created a custom style for Labels in my application, this works fine and I apply a Template to achieve the other set styles that I need, again this works fine.
STYLE DEFINITIONS:
<Style ...
0
votes
2
answers
68
views
GroupBox Border doesn´t match the Header
I use a TextBlock within my GroupBox.Header to split my text across multiple lines. However, this means that the border is no longer exactly aligned with the text. The text extends beyond the GroupBox ...
0
votes
1
answer
156
views
How to Focus on a TextBlock in XAML WPF with keyboard (for example with tab) in a Grid view?
I have a textblock which has a binding path with a converter, but I am unable to operate that with tab button. Textblock has an Onclick property which opens another page. I want to open that screen ...
0
votes
1
answer
182
views
How to set the tab character width in a TextBlock?
I want to reduce the width of the tab character in a TextBlock. The tabs are the equivalent of about 8 characters. I want to reduce to approximately 4 spaces.
TextBlock textBlock = new TextBlock
...
0
votes
1
answer
61
views
Problem Creating png image of TextBlock using RenderTargetBitmap in WPF
When using RenderTargetBitmap to generate a PNG file from a TextBlock that is a child of a Canvas, the text is stretched to match the width of the TextBlock. The TextBlock has a TextAlignment set to '...
0
votes
1
answer
86
views
The text in TextBlock doesn't change
I have two programs: client (using WPF) and server (console app). The server can work with two threads. Client sends to server '1' or '2', then the server sends '3' or '4' to it. Client gets the ...
0
votes
2
answers
61
views
Textbox and Textblock won't line up
I'm currently practicing xaml. I was going to make a simple menus with textbox and textblock.
When I drag textblock or textbox to the canvas, it is look ok. But it is way off after I run the program. ...
-2
votes
1
answer
78
views
Why is the border of my textblock not a border?
I have just created this TextBlock in my XAML file:
<TextBlock Text="blabla"> <Border BorderBrush="Black" BorderThickness="1" /> </TextBlock>
I was ...
2
votes
0
answers
301
views
How to create neon text (text glow effect) effect in WinUI 3?
I would like to understand how you can create such an effect, in which the text in the TextBlock / RichTextBlock elements will glow like neon, or at least just glow. To achieve this effect, I need to ...