2025-08-23 20:52:23 +08:00
|
|
|
|
using DMS.WPF.Helper;
|
2025-08-23 16:01:30 +08:00
|
|
|
|
using DMS.WPF.ViewModels.Dialogs;
|
2025-08-23 20:52:23 +08:00
|
|
|
|
using iNKORE.UI.WPF.Modern.Controls;
|
|
|
|
|
|
using System.Windows.Controls;
|
2025-08-23 16:01:30 +08:00
|
|
|
|
|
|
|
|
|
|
namespace DMS.WPF.Views.Dialogs;
|
|
|
|
|
|
|
|
|
|
|
|
public partial class VariableDialog
|
|
|
|
|
|
{
|
2025-08-23 20:52:23 +08:00
|
|
|
|
private const int ContentAreaMaxWidth = 1000;
|
|
|
|
|
|
private const int ContentAreaMaxHeight = 800;
|
2025-08-23 16:01:30 +08:00
|
|
|
|
public VariableDialog()
|
|
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
2025-08-23 20:52:23 +08:00
|
|
|
|
this.Opened += OnOpened;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void OnOpened(ContentDialog sender, ContentDialogOpenedEventArgs args)
|
|
|
|
|
|
{
|
|
|
|
|
|
//<2F>ĶԻ<C4B6><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD><DDB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ⱥ<EFBFBD><C8BA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߶<EFBFBD>
|
|
|
|
|
|
var backgroundElementBorder = VisualTreeFinder.FindVisualChildByName<Border>(this, "BackgroundElement");
|
|
|
|
|
|
backgroundElementBorder.MaxWidth = ContentAreaMaxWidth;
|
|
|
|
|
|
backgroundElementBorder.MaxWidth = ContentAreaMaxHeight;
|
2025-08-23 16:01:30 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|