Nadekai
I need to make this textbox not move
<Window x:Class="Password_manager.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Password_manager"
mc:Ignorable="d"
Title="MainWindow" Height="300" Width="400">
<Grid>
<Label Margin="25">Select account</Label>
<ComboBox Name="AccountBox" Width="140" Height="30" Margin="25,48,0,0" HorizontalAlignment="Left" VerticalAlignment="Top">
</ComboBox>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Height="40">
<Run Text="Password: "/>
<Run Text="{Binding ElementName=AccountBox, Path=SelectedItem}"/>
</TextBlock>
<TextBlock x:Name="AccountPassword" Width="300" Height="40" FontSize="30"/>
</StackPanel>
<Button Width="120" Height="20" Margin="20,190,255,75" Click="Button_Click">Create New Account</Button>
</Grid> </Window>
</Grid> </Window>
32 replies