40 lines
957 B
C#
40 lines
957 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace TradeBlotter
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for FloatingWindow.xaml
|
|
/// </summary>
|
|
public partial class FloatingWindow : Window
|
|
{
|
|
public FloatingWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void wndMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
|
{
|
|
DragMove();
|
|
}
|
|
private void wndMouseDoubleClick(object sender, MouseButtonEventArgs e)
|
|
{
|
|
Top=(SystemParameters.VirtualScreenTop+SystemParameters.VirtualScreenHeight)-Height;
|
|
Left=0;
|
|
Width=SystemParameters.VirtualScreenWidth;
|
|
Topmost=true;
|
|
}
|
|
}
|
|
}
|