C
C#2y ago
ShabSukkar

❔ Can someone help me with a textbox problem in .net wpf c#

pls i need help
11 Replies
Shinigami
Shinigami2y ago
Please describe your problem
ShabSukkar
ShabSukkarOP2y ago
i need to get this as a result
ShabSukkar
ShabSukkarOP2y ago
and as you can see the fourth textbox has not to go all the way to width = 600 i put a maxwidth = 300 on the textbox and got this
ShabSukkar
ShabSukkarOP2y ago
so thats mine
ShabSukkar
ShabSukkarOP2y ago
<TextBox x:Name="txtPrivatetel" Grid.Column="1" Grid.Row="5" Padding="5" HorizontalAlignment="Left" VerticalAlignment="Center" MaxWidth="300"/> and thats the code or maybe i should just use a width but then the textbox wont be responsive when i make the screen bigger or smaller
ShabSukkar
ShabSukkarOP2y ago
when i use HorizontalAlignment="Stretch" its ok but then...
ShabSukkar
ShabSukkarOP2y ago
here you go
Shinigami
Shinigami2y ago
Stack Overflow
How to make all controls resize accordingly proportionally when win...
When I clicked on the maximize button the window is maximized but the controls are not resized proportionally. What is the best way to make the controls resize accordingly? I am using MVVM. Here i...
Shinigami
Shinigami2y ago
Seeing this image, i thinking the 4th text box coordinates has to be relative to the whole size isn't it? X coordinate specifically
ShabSukkar
ShabSukkarOP2y ago
and how do i do that,
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server