|
1234567891011121314151617181920212223242526272829303132 |
- using System.Windows;
- using System.Windows.Media;
-
- namespace XHWK.WKTool
- {
- /// <summary>
- /// PromptWindow.xaml 的交互逻辑
- /// </summary>
- public partial class PromptWindow
- {
- public PromptWindow()
- {
- InitializeComponent();
- }
-
- public void Initialize(string name)
- {
- TxbName.Text = name;
- }
-
- private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
- {
- System.Windows.Rect r = new System.Windows.Rect(e.NewSize);
- RectangleGeometry gm = new RectangleGeometry(
- r,
- 1,
- 1
- );
- ((UIElement)sender).Clip = gm;
- }
- }
- }
|