<UserControl x:Class="Elections.Server.Handler.Views.LoginView"_x000D_
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"_x000D_
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"_x000D_
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" _x000D_
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"_x000D_
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"_x000D_
xmlns:cal="http://www.caliburnproject.org"_x000D_
mc:Ignorable="d" _x000D_
Height="531" Width="1096">_x000D_
<ContentControl>_x000D_
<ContentControl.Background>_x000D_
<ImageBrush/>_x000D_
</ContentControl.Background>_x000D_
<Grid >_x000D_
<Border BorderBrush="#FFABADB3" BorderThickness="1" HorizontalAlignment="Left" Height="23" Margin="900,100,0,0" VerticalAlignment="Top" Width="160">_x000D_
<TextBox TextWrapping="Wrap"/>_x000D_
</Border>_x000D_
<Border BorderBrush="#FFABADB3" BorderThickness="1" HorizontalAlignment="Left" Height="23" Margin="900,150,0,0" VerticalAlignment="Top" Width="160">_x000D_
<PasswordBox x:Name="PasswordBox"/>_x000D_
</Border>_x000D_
<Button Content="Login" HorizontalAlignment="Left" Margin="985,200,0,0" VerticalAlignment="Top" Width="75">_x000D_
<i:Interaction.Triggers>_x000D_
<i:EventTrigger EventName="Click">_x000D_
<cal:ActionMessage MethodName="Login">_x000D_
<cal:Parameter Value="{Binding ElementName=PasswordBox}" />_x000D_
</cal:ActionMessage>_x000D_
</i:EventTrigger>_x000D_
</i:Interaction.Triggers>_x000D_
</Button>_x000D_
_x000D_
</Grid>_x000D_
</ContentControl>_x000D_
</UserControl>
_x000D_
using System;_x000D_
using System.Windows;_x000D_
using System.Windows.Controls;_x000D_
using Caliburn.Micro;_x000D_
_x000D_
namespace Elections.Server.Handler.ViewModels_x000D_
{_x000D_
public class LoginViewModel : PropertyChangedBase_x000D_
{_x000D_
MainViewModel _mainViewModel;_x000D_
public void SetMain(MainViewModel mainViewModel)_x000D_
{_x000D_
_mainViewModel = mainViewModel;_x000D_
}_x000D_
_x000D_
public void Login(Object password)_x000D_
{_x000D_
var pass = (PasswordBox) password;_x000D_
MessageBox.Show(pass.Password);_x000D_
_x000D_
//_mainViewModel.ScreenView = _mainViewModel.ControlPanelView;_x000D_
//_mainViewModel.TitleWindow = "Panel de Control";_x000D_
//HandlerBootstrapper.Title(_mainViewModel.TitleWindow);_x000D_
}_x000D_
}_x000D_
}
_x000D_
;) easy!