Switch UI to WPF
This commit is contained in:
19
LoginScreen.xaml
Normal file
19
LoginScreen.xaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<Window
|
||||||
|
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:local="clr-namespace:LAPS"
|
||||||
|
Title="LAPS" Height="200" Width="400" ResizeMode="NoResize">
|
||||||
|
<Grid FocusManager.FocusedElement="{Binding ElementName=UsernameTextbox}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="400*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Label Content="Identifiant" HorizontalAlignment="Left" Margin="55,27,0,0" VerticalAlignment="Top"/>
|
||||||
|
<Label x:Name="UserNameHelp" Content="admin-uid" HorizontalAlignment="Right" Margin="0,27,42,0" VerticalAlignment="Top" Width="220" Height="23" Foreground="#A5909090"/>
|
||||||
|
<TextBox x:Name="UsernameTextbox" HorizontalAlignment="Right" Margin="0,30,40,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="220" Height="20" Background="Transparent"/>
|
||||||
|
<Label Content="Mot de passe" HorizontalAlignment="Left" Margin="38,64,0,0" VerticalAlignment="Top"/>
|
||||||
|
<PasswordBox x:Name="PasswordBox" HorizontalAlignment="Right" Margin="0,67,40,0" VerticalAlignment="Top" Width="220" Height="20"/>
|
||||||
|
<Button x:Name="ValidateButton" IsDefault="True" Content="OK" HorizontalAlignment="Right" Margin="42,108,40,0" VerticalAlignment="Top" Height="27" Width="72" Grid.Column="1"/>
|
||||||
|
<Label x:Name="errorLabel" Content="Error Label" HorizontalAlignment="Left" Margin="38,109,0,0" VerticalAlignment="Top" Width="220" Foreground="Red" Visibility="Hidden"/>
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
||||||
24
SearchScreen.xaml
Normal file
24
SearchScreen.xaml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<Window
|
||||||
|
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:local="clr-namespace:LAPS" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
||||||
|
Title="LAPS" Height="300" Width="450" ResizeMode="NoResize">
|
||||||
|
<Grid FocusManager.FocusedElement="{Binding ElementName=computerNameTextbox}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="450*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Label Content="Nom de l'ordinateur" HorizontalAlignment="Left" Margin="42,37,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.5,-0.024"/>
|
||||||
|
<TextBox x:Name="computerNameTextbox" HorizontalAlignment="Left" Margin="173,41,0,0" TextWrapping="NoWrap" Text="" VerticalAlignment="Top" Width="169"/>
|
||||||
|
<Image x:Name="searchBtn" HorizontalAlignment="Left" Height="15" Margin="352,41,0,0" VerticalAlignment="Top" Width="16" RenderTransformOrigin="89.583,46.589"/>
|
||||||
|
<Label x:Name="expirationLabel" Content="Date d'expiration" HorizontalAlignment="Left" Margin="42,83,0,0" VerticalAlignment="Top" Visibility="Hidden" RenderTransformOrigin="0.5,-0.024"/>
|
||||||
|
<xctk:DateTimePicker x:Name="expirationTimeSelector" HorizontalAlignment="Left" Margin="173,85,0,0" Visibility="Hidden" VerticalAlignment="Top" Width="169" AllowSpin="False" ButtonSpinnerHeight="0" Format="Custom" Minimum="1970-01-01" FormatString="dd/MM/yyyy - HH:mm:ss" ShowButtonSpinner="False" TimePickerAllowSpin="False" TimePickerShowButtonSpinner="False" Text="" AutoCloseCalendarOnTimeSelection="True" TextAlignment="Left" TimeFormat="LongTime"/>
|
||||||
|
<Label x:Name="lapsAccountLabel" Content="Compte LAPS : " HorizontalAlignment="Left" Margin="170,115,0,0" VerticalAlignment="Top" Visibility="Hidden" RenderTransformOrigin="0.5,-0.024"/>
|
||||||
|
<Label x:Name="lapsPasswordLabel" Content="Mot de passe LAPS" HorizontalAlignment="Left" Margin="42,133,0,0" VerticalAlignment="Top" Visibility="Hidden" RenderTransformOrigin="0.5,-0.024"/>
|
||||||
|
<TextBox x:Name="LAPSTextbox" FontFamily="Consolas" FontSize="15" Text="P@ssw0rdO1234iJljL" TextWrapping="NoWrap" HorizontalAlignment="Left" Margin="173,137,0,0" Visibility="Hidden" VerticalAlignment="Top" Width="169" IsReadOnly="True" Background="#FFE4E4E4"/>
|
||||||
|
<Image x:Name="copyBtn" HorizontalAlignment="Left" Height="15" Margin="352,139,0,0" VerticalAlignment="Top" Width="16" Visibility="Hidden"/>
|
||||||
|
<TextBlock x:Name="errorText" Width="200" TextWrapping="Wrap" Text="Erreur : ????" HorizontalAlignment="Left" Margin="42,162,0,0" VerticalAlignment="Top" Visibility="Hidden" RenderTransformOrigin="0.5,-0.024"/>
|
||||||
|
<Button x:Name="updateBtn" Content="Mettre à jour" HorizontalAlignment="Left" Margin="258,181,0,0" VerticalAlignment="Top" Visibility="Hidden" Height="27" Width="84"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
||||||
BIN
Xceed.Wpf.AvalonDock.Themes.Aero.dll
Normal file
BIN
Xceed.Wpf.AvalonDock.Themes.Aero.dll
Normal file
Binary file not shown.
BIN
Xceed.Wpf.AvalonDock.Themes.Metro.dll
Normal file
BIN
Xceed.Wpf.AvalonDock.Themes.Metro.dll
Normal file
Binary file not shown.
BIN
Xceed.Wpf.AvalonDock.Themes.VS2010.dll
Normal file
BIN
Xceed.Wpf.AvalonDock.Themes.VS2010.dll
Normal file
Binary file not shown.
BIN
Xceed.Wpf.AvalonDock.dll
Normal file
BIN
Xceed.Wpf.AvalonDock.dll
Normal file
Binary file not shown.
BIN
Xceed.Wpf.Toolkit.dll
Normal file
BIN
Xceed.Wpf.Toolkit.dll
Normal file
Binary file not shown.
BIN
search.png
Normal file
BIN
search.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 309 B |
Reference in New Issue
Block a user