2025-08-23 20:52:23 +08:00
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
using DMS.WPF.Helper;
|
2025-06-12 13:15:55 +08:00
|
|
|
|
using iNKORE.UI.WPF.Modern.Controls;
|
|
|
|
|
|
|
2025-07-19 09:25:01 +08:00
|
|
|
|
namespace DMS.WPF.Views.Dialogs;
|
2025-06-12 13:15:55 +08:00
|
|
|
|
|
2025-08-23 20:52:23 +08:00
|
|
|
|
public partial class DeviceDialog : ContentDialog
|
2025-06-12 13:15:55 +08:00
|
|
|
|
{
|
2025-08-23 20:52:23 +08:00
|
|
|
|
private const int ContentAreaMaxWidth = 1000;
|
|
|
|
|
|
private const int ContentAreaMaxHeight = 800;
|
|
|
|
|
|
|
2025-07-27 21:08:58 +08:00
|
|
|
|
public DeviceDialog()
|
2025-06-12 13:15:55 +08:00
|
|
|
|
{
|
|
|
|
|
|
InitializeComponent();
|
2025-08-23 20:52:23 +08:00
|
|
|
|
this.Opened += OnOpened;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void OnOpened(ContentDialog sender, ContentDialogOpenedEventArgs args)
|
|
|
|
|
|
{
|
2025-09-04 17:29:24 +08:00
|
|
|
|
//<2F>ĶԻ<C4B6><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD><DDB5><EFBFBD><EFBFBD><EFBFBD>Ⱥ<EFBFBD><C8BA><EFBFBD><EFBFBD>߶<EFBFBD>
|
2025-08-23 20:52:23 +08:00
|
|
|
|
var backgroundElementBorder = VisualTreeFinder.FindVisualChildByName<Border>(this, "BackgroundElement");
|
|
|
|
|
|
backgroundElementBorder.MaxWidth = ContentAreaMaxWidth;
|
|
|
|
|
|
backgroundElementBorder.MaxWidth = ContentAreaMaxHeight;
|
2025-07-05 01:31:44 +08:00
|
|
|
|
|
2025-06-12 13:15:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-06-23 17:01:06 +08:00
|
|
|
|
}
|