public KeyChangerPage() { InitializeComponent(); RWFile.ReadFile(); ItemList.ItemsSource = KeyChangeManager.Instance.KeyChangeItemCollection; Window mainwin = Application.Current.MainWindow; ItemList.Height = mainwin.ActualHeight - 180; ItemList.Width = mainwin.ActualWidth - 100; }
private void Button_Save(object sender, RoutedEventArgs e) { RWFile.WriteFile(); }