Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

WPF: Elements too wide, edge Cut off

31.12.2018 (👁4375)

WPF: Elements too wide, edge Cut off

 

Problem:

The input fields are not displayed correctly.

For at any reason, the right edge is always cut off.

 

Solution:

Under XAML WPF you should take control >. Width=123 Set the width of an element over the stretch setting of HorizonalAlignement

Unfortunately, there is no * setting, so you have to get over the alignement = stretch

 

Concerns:

XAML WPF Design

 

 

Problem:

Unfavorable attitude

 

<TextBox x:Name="tbxVorname" Grid.Row="1" Grid.Column="1"

HorizontalAlignment="Left" Width="265"/>

 

 

 

Solution:

Solved with stretch

 

<Label Content="Vorname:" Grid.Row="1" Grid.Column="0"/>

            <TextBox x:Name="tbxVorname" Grid.Row="1" Grid.Column="1"

     HorizontalAlignment="Stretch" />