private void btnInfoPane_CheckChanged(object sender, RoutedEventArgs e) {
if (isOnLoad) {
} else if (e.RoutedEvent.Name == "Checked") {
this.rPreviewPane.Height = new GridLength(this.InfoPaneHeight);
this.rPreviewPaneSplitter.Height = new GridLength(1);
Utilities.SetRegistryValue("InfoPaneEnabled", 1);
this.IsInfoPaneEnabled = true;
} else {
this.rPreviewPane.Height = new GridLength(0);
this.rPreviewPaneSplitter.Height = new GridLength(0);
Utilities.SetRegistryValue("InfoPaneEnabled", 0);
this.IsInfoPaneEnabled = false;
}
}