CodeDocu.com

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"/>

 

WPF: Elements too wide, edge Cut off

 

 

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" />

 

 

WPF: Elements too wide, edge Cut off


Software Entwicklung Stuttgart NĂ¼rtingen
Suche Projekte C#, WPF, Windows App,ASP.Net, vb.Net, WinForms, SQL Server, Access, Excel