mirror of
https://github.com/KeyKeeperApp/KeyKeeper.git
synced 2026-04-22 15:36:29 +03:00
Задать ограничения размеров окна #3
This commit is contained in:
@@ -12,6 +12,9 @@ public class AboutWindow : Window
|
||||
this.Width = 600;
|
||||
this.Height = 400;
|
||||
|
||||
this.MinWidth = 450;
|
||||
this.MinHeight = 250;
|
||||
|
||||
this.Background = new SolidColorBrush(Color.Parse("#2328c4"));
|
||||
|
||||
var AboutKeyKeeper = new TextBlock
|
||||
|
||||
@@ -8,6 +8,8 @@ public class SettingsWindow : Window
|
||||
public SettingsWindow()
|
||||
{
|
||||
this.Title = "Settings";
|
||||
this.MinWidth = 500;
|
||||
this.MinHeight = 400;
|
||||
this.Width = 400;
|
||||
this.Height = 300;
|
||||
var textBlock = new TextBlock
|
||||
|
||||
@@ -16,6 +16,8 @@ namespace KeyKeeper.Views
|
||||
public CreateVaultFileWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
MinWidth = 450;
|
||||
MinHeight = 350;
|
||||
#if DEBUG
|
||||
this.AttachDevTools();
|
||||
#endif
|
||||
|
||||
@@ -16,6 +16,10 @@ public partial class EntryEditWindow : Window
|
||||
public EntryEditWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
MinWidth = 500;
|
||||
MinHeight = 400;
|
||||
|
||||
if (PasswordEdit != null)
|
||||
{
|
||||
PasswordEdit.TextChanged += PasswordTextChanged;
|
||||
|
||||
@@ -8,6 +8,8 @@ public partial class ErrorDialog : Window
|
||||
public ErrorDialog(string message)
|
||||
{
|
||||
InitializeComponent();
|
||||
MinWidth = 400;
|
||||
MinHeight = 200;
|
||||
MessageText.Text = message;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ namespace KeyKeeper.Views
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.MinWidth = 550;
|
||||
this.MinHeight = 350;
|
||||
}
|
||||
|
||||
private async void CreateNewVault_Click(object sender, RoutedEventArgs e)
|
||||
@@ -80,8 +82,7 @@ namespace KeyKeeper.Views
|
||||
{
|
||||
WindowStartupLocation = WindowStartupLocation.CenterScreen
|
||||
};
|
||||
|
||||
repositoryWindow.Closed += (s, e) => this.Show();
|
||||
repositoryWindow.Closed += (s, e) => this.Close();
|
||||
repositoryWindow.Show();
|
||||
this.Hide();
|
||||
}
|
||||
|
||||
@@ -18,6 +18,10 @@ public partial class RepositoryWindow : Window
|
||||
public RepositoryWindow(RepositoryWindowViewModel model)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
MinWidth = 650;
|
||||
MinHeight = 500;
|
||||
|
||||
DataContext = model;
|
||||
model.ShowErrorPopup = async (string message) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user