|
1 | 1 | <UserControl x:Class="GitHub.UI.Login.LoginCredentialsView"
|
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
4 |
| - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 | 5 | Style="{DynamicResource DialogUserControl}"
|
6 | 6 | xmlns:controls="clr-namespace:GitHub.UI.Controls"
|
7 |
| - xmlns:converters="clr-namespace:GitHub.UI.Converters" |
| 7 | + xmlns:sharedControls="clr-namespace:Microsoft.Git.CredentialManager.UI.Controls;assembly=Microsoft.Git.CredentialManager.UI" |
| 8 | + xmlns:sharedConverters="clr-namespace:Microsoft.Git.CredentialManager.UI.Converters;assembly=Microsoft.Git.CredentialManager.UI" |
8 | 9 | xmlns:octicons="clr-namespace:GitHub.UI.Octicons"
|
9 |
| - Background="{DynamicResource WindowPanelBrush}" |
10 |
| - Foreground="{DynamicResource WindowPanelTextBrush}" |
11 | 10 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
12 | 11 | mc:Ignorable="d"
|
13 | 12 | d:DesignWidth="414"
|
|
18 | 17 | <ResourceDictionary.MergedDictionaries>
|
19 | 18 | <ResourceDictionary Source="..\Styles.xaml" />
|
20 | 19 | </ResourceDictionary.MergedDictionaries>
|
21 |
| - <converters:NonEmptyStringToVisibleConverter x:Key="NonEmptyStringToVisibleConverter" /> |
22 |
| - <converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" /> |
23 |
| - <converters:BooleanAndVisibilityConverter x:Key="BooleanAndVisibilityConverter" /> |
| 20 | + <sharedConverters:NonEmptyStringToVisibleConverter x:Key="NonEmptyStringToVisibleConverter" /> |
| 21 | + <sharedConverters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" /> |
| 22 | + <sharedConverters:BooleanAndVisibilityConverter x:Key="BooleanAndVisibilityConverter" /> |
24 | 23 | </ResourceDictionary>
|
25 | 24 | </Control.Resources>
|
26 | 25 |
|
27 | 26 | <DockPanel Style="{DynamicResource DialogContainerDockPanel}">
|
28 | 27 | <DockPanel.Resources>
|
29 |
| - <Style TargetType="{x:Type controls:PromptTextBox}" |
30 |
| - BasedOn="{StaticResource {x:Type controls:PromptTextBox}}"> |
| 28 | + <Style TargetType="{x:Type sharedControls:PromptTextBox}" |
| 29 | + BasedOn="{StaticResource {x:Type sharedControls:PromptTextBox}}"> |
31 | 30 | <Setter Property="Margin" Value="0" />
|
32 | 31 | </Style>
|
33 | 32 | <Style TargetType="{x:Type Border}" x:Key="LoginButtonBorder">
|
34 | 33 | <Setter Property="Margin" Value="0,0,0,15" />
|
35 | 34 | <Setter Property="HorizontalAlignment" Value="Center" />
|
36 | 35 | </Style>
|
37 |
| - <Style TargetType="{x:Type controls:SecurePasswordBox}" BasedOn="{StaticResource {x:Type controls:SecurePasswordBox}}"> |
| 36 | + <Style TargetType="{x:Type sharedControls:SecurePasswordBox}" BasedOn="{StaticResource {x:Type sharedControls:SecurePasswordBox}}"> |
38 | 37 | <Setter Property="Margin" Value="0" />
|
39 | 38 | </Style>
|
40 | 39 | </DockPanel.Resources>
|
|
47 | 46 | Margin="0,0,0,10"
|
48 | 47 | Style="{DynamicResource GitHubH1TextBlock}"
|
49 | 48 | IsHitTestVisible="False"
|
50 |
| - Text="Sign in" |
| 49 | + Text="Sign in" |
51 | 50 | x:Uid="loginLabel"/>
|
52 | 51 |
|
53 | 52 | <controls:HorizontalShadowDivider Margin="0" />
|
|
83 | 82 | <StackPanel VerticalAlignment="Center" x:Name="dotComloginControlsPanel" Margin="0,0,0,30">
|
84 | 83 | <StackPanel>
|
85 | 84 | <StackPanel Visibility="{Binding IsLoginUsingUsernameAndPasswordVisible, Converter={StaticResource BooleanToVisibilityConverter}}">
|
86 |
| - <controls:PromptTextBox Text="{Binding UsernameOrEmail, UpdateSourceTrigger=PropertyChanged, Delay=300}" |
87 |
| - PromptText="Username or email" |
88 |
| - Margin="0,0,0,10" |
89 |
| - x:Uid="loginBox" |
90 |
| - x:Name="loginBox" |
91 |
| - Localization.Attributes="PromptText (Modifiable Readable Text)"/> |
| 85 | + <sharedControls:PromptTextBox Text="{Binding UsernameOrEmail, UpdateSourceTrigger=PropertyChanged, Delay=300}" |
| 86 | + PromptText="Username or email" |
| 87 | + Margin="0,0,0,10" |
| 88 | + x:Uid="loginBox" |
| 89 | + x:Name="loginBox" |
| 90 | + Localization.Attributes="PromptText (Modifiable Readable Text)"/> |
92 | 91 |
|
93 |
| - <controls:SecurePasswordBox Password="{Binding Password, UpdateSourceTrigger=PropertyChanged, Delay=300, Mode=OneWayToSource}" |
94 |
| - PromptText="Password" |
95 |
| - x:Uid="passwordBox" |
96 |
| - x:Name="passwordBox" |
97 |
| - Localization.Attributes="PromptText (Modifiable Readable Text)"/> |
| 92 | + <sharedControls:SecurePasswordBox Password="{Binding Password, UpdateSourceTrigger=PropertyChanged, Delay=300, Mode=OneWayToSource}" |
| 93 | + PromptText="Password" |
| 94 | + x:Uid="passwordBox" |
| 95 | + x:Name="passwordBox" |
| 96 | + Localization.Attributes="PromptText (Modifiable Readable Text)"/> |
98 | 97 |
|
99 | 98 | <Border Style="{StaticResource LoginButtonBorder}" Margin="0 16 0 0">
|
100 | 99 | <Button Content="Sign in"
|
|
0 commit comments