diff --git a/SourceGenWPF/MainController.cs b/SourceGenWPF/MainController.cs index fad5f91..3163e4e 100644 --- a/SourceGenWPF/MainController.cs +++ b/SourceGenWPF/MainController.cs @@ -174,6 +174,8 @@ namespace SourceGenWPF { public MainController(MainWindow win) { mMainWin = win; + + ScriptManager.UseKeepAliveHack = true; } /// diff --git a/SourceGenWPF/WpfGui/EditLabel.xaml b/SourceGenWPF/WpfGui/EditLabel.xaml index fbde006..e1015aa 100644 --- a/SourceGenWPF/WpfGui/EditLabel.xaml +++ b/SourceGenWPF/WpfGui/EditLabel.xaml @@ -39,7 +39,7 @@ limitations under the License. + Text="{Binding LabelText, UpdateSourceTrigger=PropertyChanged}"/> diff --git a/SourceGenWPF/WpfGui/EditLabel.xaml.cs b/SourceGenWPF/WpfGui/EditLabel.xaml.cs index 32f8da4..1f6ee35 100644 --- a/SourceGenWPF/WpfGui/EditLabel.xaml.cs +++ b/SourceGenWPF/WpfGui/EditLabel.xaml.cs @@ -63,6 +63,7 @@ namespace SourceGenWPF.WpfGui { get { return mLabelText; } set { mLabelText = value; + LabelTextBox_TextChanged(); OnPropertyChanged(); } } @@ -116,7 +117,7 @@ namespace SourceGenWPF.WpfGui { labelTextBox.Focus(); } - private void LabelTextBox_TextChanged(object sender, RoutedEventArgs e) { + private void LabelTextBox_TextChanged() { string str = LabelText; bool valid = true; diff --git a/SourceGenWPF/WpfGui/MainWindow.xaml.cs b/SourceGenWPF/WpfGui/MainWindow.xaml.cs index 316fa32..85acbbc 100644 --- a/SourceGenWPF/WpfGui/MainWindow.xaml.cs +++ b/SourceGenWPF/WpfGui/MainWindow.xaml.cs @@ -1003,7 +1003,7 @@ namespace SourceGenWPF.WpfGui { MenuItem recents = (MenuItem)sender; recents.Items.Clear(); - Debug.WriteLine("COUNT is " + mMainCtrl.RecentProjectPaths.Count); + //Debug.WriteLine("COUNT is " + mMainCtrl.RecentProjectPaths.Count); if (mMainCtrl.RecentProjectPaths.Count == 0) { MenuItem mi = new MenuItem(); mi.Header = Res.Strings.PARENTHETICAL_NONE;