mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
28 lines
762 B
C#
28 lines
762 B
C#
using Avalonia;
|
|
using Avalonia.Controls;
|
|
|
|
namespace Remotely.Desktop.UI.Views;
|
|
|
|
public partial class FileTransferWindow : Window
|
|
{
|
|
public FileTransferWindow()
|
|
{
|
|
InitializeComponent();
|
|
Opened += FileTransferWindow_Opened;
|
|
}
|
|
|
|
public IFileTransferWindowViewModel? ViewModel => DataContext as IFileTransferWindowViewModel;
|
|
|
|
private void FileTransferWindow_Opened(object? sender, EventArgs e)
|
|
{
|
|
Topmost = false;
|
|
|
|
if (Screens.Primary is not null)
|
|
{
|
|
var left = Screens.Primary.WorkingArea.Right - FrameSize?.Width ?? Width;
|
|
var top = Screens.Primary.WorkingArea.Bottom - FrameSize?.Height ?? Height;
|
|
Position = new PixelPoint((int)left, (int)top);
|
|
}
|
|
}
|
|
}
|