aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Synchronization/Views/MainView.xaml.cs
blob: 31d50dedb3596001d72cdf5c9038e0f2c3b8edf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
generated by cgit v1.3.1 (git 2.54.0) at 2026-07-10 06:24:28 +0000
 


"w"> UserControl
    {
        public static MainView Instance;

        public MainView()
        {
            InitializeComponent();
            Instance = this;
        }

        private void txtLog_TextChanged(object sender, TextChangedEventArgs e)
        {
            Task.Factory.StartNew(() =>
            {
                Thread.Sleep(50);

                this.Dispatcher.Invoke(() =>
                {
                    txtLog.SelectionStart = txtLog.Text.Length;
                    txtLog.ScrollToEnd();
                });
            });
        }
    }
}