Tim Leung's Blog

Overview of Article

The following article explains a method for entering passwords using masked textboxes in LightSwitch.


The data used in this example will be very basic. We’ll simply create a Customer table with ‘Customer Name’ and ‘Password’ fields.

Fig 1 Illustration of Customer table


Here are the steps required to create a our screen.

  1. Create a ‘New Data Screen’ based on the customer table. By default, a TextBox is created for the password field. Use the dropdown box to change this control from a TextBox into a Custom Control.
    Fig 2 Select ‘Custom Control’
  2. On the properties pane for the Password control, click on ‘change’ hyperlink. The following dialog now appears. Expand the System.Windows.Controls node and select PasswordBox
    Fig 3 Select PasswordBox from System.Windows.Controls
  3. We now need some code to save the contents of the PasswordBox into the password field of our Customer entity. We’ll do this…

Ver la entrada original 250 palabras más



Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión /  Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s

A %d blogueros les gusta esto: