You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
700 B
32 lines
700 B
using System; |
|
using System.Diagnostics; |
|
using System.IO; |
|
using System.Windows; |
|
using System.Windows.Controls; |
|
using System.Windows.Documents; |
|
using System.Windows.Markup; |
|
using System.Xml; |
|
|
|
namespace StandaloneDesigner |
|
{ |
|
/// <summary> |
|
/// Interaction logic for Window1.xaml |
|
/// </summary> |
|
public partial class Window1 : Window |
|
{ |
|
public Window1() |
|
{ |
|
InitializeComponent(); |
|
} |
|
|
|
void tabControlSelectionChanged(object sender, RoutedEventArgs e) |
|
{ |
|
if (e.Source != tabControl) return; |
|
if (tabControl.SelectedItem == designTab) { |
|
designSurface.LoadDesigner(new XmlTextReader(new StringReader(CodeTextBox.Text))); |
|
} else { |
|
designSurface.UnloadDesigner(); |
|
} |
|
} |
|
} |
|
}
|
|
|