forked from BornToBeRoot/NETworkManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGroupDialog.xaml.cs
More file actions
40 lines (31 loc) · 1 KB
/
Copy pathGroupDialog.xaml.cs
File metadata and controls
40 lines (31 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace NETworkManager.Views;
public partial class GroupDialog
{
public GroupDialog()
{
InitializeComponent();
}
private void UserControl_Loaded(object sender, System.Windows.RoutedEventArgs e)
{
// Need to be in loaded event, focusmanger won't work...
TextBoxName.Focus();
}
// Set name as hostname (if empty or identical)
private string _oldName = string.Empty;
private void TextBoxName_OnGotFocus(object sender, System.Windows.RoutedEventArgs e)
{
//_oldName = TextBoxName.Text;
}
private void TextBoxName_OnTextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
{
/*
if (_oldName == TextBoxHost.Text)
TextBoxHost.Text = TextBoxName.Text;
_oldName = TextBoxName.Text;
*/
}
private void ScrollViewer_ManipulationBoundaryFeedback(object sender, System.Windows.Input.ManipulationBoundaryFeedbackEventArgs e)
{
e.Handled = true;
}
}