Adding Items to ListView Columns in c# WPF.

  • Thread starter Thread starter Sahana M
  • Start date Start date
S

Sahana M

Guest
Hiii,

I have one TextBox is for entering UserName and PasswordBox for Password. and 1 ADD Button to add items to ListView Control.

My Question is : Is this posible to ADD Both Username and Password to listview ?? If Possible how can i do program for that.??

Anyone knows Please Answer me..


<TextBox x:Name="Textbox_SOTAUName"
Margin="0,26,563,0" HorizontalAlignment="Stretch"
Grid.Column="1" />

<PasswordBox HorizontalAlignment="Stretch" Grid.Column="1" x:Name="Passwordbox_SPassword" ClipToBounds="False" MaxLength="8" PasswordChar="*"
VerticalAlignment="Stretch" Foreground="#FF083042" Margin="-2">

<PasswordBox.BorderBrush>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Black" Offset="0"/>
<GradientStop Color="#FFFFE9EF" Offset="1"/>
</LinearGradientBrush>
</PasswordBox.BorderBrush>
</PasswordBox>

<ListBox x:Name="ListBox_User_Pass" Margin="19,30,265,18" Visibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Auto"
Grid.ColumnSpan="2" Grid.Column="2" Grid.Row="4" RenderTransformOrigin="0.503,0.306" FontSize="13" FontWeight="Bold">
<ListBox.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform AngleX="-0.972"/>
<RotateTransform/>
<TranslateTransform X="-0.613"/>
</TransformGroup>
</ListBox.RenderTransform>

</ListBox>





Thank you,

Continue reading...
 
Back
Top