You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1011 B
35 lines
1011 B
using BBWY.Controls;
|
|
using System;
|
|
using System.Windows;
|
|
|
|
namespace BBWY.Client.Views
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for MainWindow.xaml
|
|
/// </summary>
|
|
public partial class MainWindow : BWindow
|
|
{
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
this.Width = SystemParameters.WorkArea.Size.Width * 0.8;
|
|
this.Height = SystemParameters.WorkArea.Size.Height * 0.7;
|
|
this.Loaded += MainWindow_Loaded;
|
|
}
|
|
|
|
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
GalaSoft.MvvmLight.Messaging.Messenger.Default.Register<string>(this, "ActiveMainWindow", (x) =>
|
|
{
|
|
var a = this.Activate();
|
|
Console.WriteLine(a);
|
|
});
|
|
}
|
|
|
|
private void frame_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
|
|
{
|
|
if (frame.CanGoBack)
|
|
frame.RemoveBackEntry();
|
|
}
|
|
}
|
|
}
|
|
|