<UserControl x:Class="Perforce.View.LoginForm" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:view="clr-namespace:Perforce.View" mc:Ignorable="d" MinHeight="120" MinWidth="300"> <StackPanel> <Label Name="MessageLabel" HorizontalContentAlignment="Center" Content="{Binding Message}" Visibility="{Binding MessageVisibility}" Foreground="#FFFB0000" FontWeight="Bold" /> <Grid> <Grid.RowDefinitions> <RowDefinition Height="30"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> <RowDefinition Height="30"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="75"/> <ColumnDefinition Width="110*"/> </Grid.ColumnDefinitions> <Label Content="Location:" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="0" Grid.Column="0"/> <Label Content="Details:" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" /> <Label Content="Username:" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0"/> <Label Content="Password:" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0"/> <ComboBox Name="LocationChoice" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" Grid.Row="0" Grid.Column="1" ItemsSource="{Binding LocationItems}" SelectedItem="{Binding SelectedLocation}" DisplayMemberPath="Hostname" SelectedValuePath="P4Port" /> <TextBox Name="DetailsText" view:UIBehaviors.SelectTextOnFocus="True" Text="{Binding DetailsText}" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" Grid.Row="1" Grid.Column="1" KeyUp="Textfield_KeyUp"> <TextBox.Style> <Style TargetType="TextBox"> <Style.Triggers> <DataTrigger Binding="{Binding IsLocationSelected}" Value="True"> <Setter Property="Text" Value="{Binding ElementName=LocationChoice,Path=SelectedValue}" /> </DataTrigger> </Style.Triggers> </Style> </TextBox.Style> </TextBox> <TextBox Name="UsernameText" view:UIBehaviors.SelectTextOnFocus="True" Text="{Binding UsernameText}" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" Grid.Row="2" Grid.Column="1" KeyUp="Textfield_KeyUp" /> <PasswordBox Name="PasswordText" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" Grid.Row="3" Grid.Column="1" KeyUp="Textfield_KeyUp" /> </Grid> </StackPanel> </UserControl>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15071 | alan_petersen |
Populate -o //guest/perforce_software/piper/... //guest/alan_petersen/piper/.... |
||
//guest/perforce_software/piper/windows/main/Perforce/View/LoginForm.xaml | |||||
#1 | 11255 | alan_petersen | Rename/move file(s) | ||
//guest/perforce_software/piper/windows/Perforce/View/LoginForm.xaml | |||||
#1 | 10761 | alan_petersen |
initial drop of Piper for Windows.... this version still has _many_ bugs (er... i mean "unintended features") but I will be updating it over the next week as more stability is added. |