public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Mercury.Silverlight;component/Workspace/Workspace.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.ApplicationTitleBarBorder = ((System.Windows.Controls.Border)(this.FindName("ApplicationTitleBarBorder"))); this.ApplicationTitleBar = ((System.Windows.Controls.Grid)(this.FindName("ApplicationTitleBar"))); this.ApplicationMenu = ((Telerik.Windows.Controls.RadMenu)(this.FindName("ApplicationMenu"))); this.ApplicationButtonImage = ((System.Windows.Controls.Image)(this.FindName("ApplicationButtonImage"))); this.ApplicationTitle = ((System.Windows.Controls.HyperlinkButton)(this.FindName("ApplicationTitle"))); this.ApplicationLinkHome = ((Telerik.Windows.Controls.RadButton)(this.FindName("ApplicationLinkHome"))); this.ApplicationLinkSearch = ((Telerik.Windows.Controls.RadButton)(this.FindName("ApplicationLinkSearch"))); this.ApplicationLinkLogOff = ((Telerik.Windows.Controls.RadButton)(this.FindName("ApplicationLinkLogOff"))); this.ApplicationSwitchWindows = ((Telerik.Windows.Controls.RadRibbonSplitButton)(this.FindName("ApplicationSwitchWindows"))); this.ApplicationSwitchWindowsContextMenu = ((Telerik.Windows.Controls.RadContextMenu)(this.FindName("ApplicationSwitchWindowsContextMenu"))); this.ApplicationSwitchWindowsContextMenuWorkspaceSeparator = ((Telerik.Windows.Controls.RadMenuItem)(this.FindName("ApplicationSwitchWindowsContextMenuWorkspaceSeparator"))); this.Work = ((Mercury.Silverlight.Workspace.Work)(this.FindName("Work"))); this.ActiveWindowContent = ((System.Windows.Controls.Border)(this.FindName("ActiveWindowContent"))); this.StatusBarContent = ((System.Windows.Controls.Border)(this.FindName("StatusBarContent"))); this.ApplicationStatusBarGrid = ((System.Windows.Controls.Grid)(this.FindName("ApplicationStatusBarGrid"))); this.ApplicationStatusText = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationStatusText"))); this.ApplicationStatusProgressBar = ((Telerik.Windows.Controls.RadProgressBar)(this.FindName("ApplicationStatusProgressBar"))); this.WindowPreview = ((Mercury.Silverlight.Workspace.SwitchWindowPreview)(this.FindName("WindowPreview"))); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ParentWindow = ((Excel.MainWindow)(target)); return; case 2: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 3: this.ribbonView = ((Telerik.Windows.Controls.RadRibbonView)(target)); return; case 4: this.PasteButton = ((Telerik.Windows.Controls.RadRibbonSplitButton)(target)); return; case 5: this.FontStylesGroup = ((Telerik.Windows.Controls.RadButtonGroup)(target)); return; case 6: this.MergeAndCenterButton = ((Telerik.Windows.Controls.RadRibbonSplitButton)(target)); return; case 7: this.AccountingNumberFormatButton = ((Telerik.Windows.Controls.RadRibbonSplitButton)(target)); return; case 8: this.InsertCellsButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 9: this.DeleteCellsButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 10: this.FormatButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 11: this.FillButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 12: this.ClearButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 13: this.ThemeGallery = ((Telerik.Windows.Controls.Spreadsheet.Controls.ThemeGallery)(target)); return; case 14: this.ColorGallery = ((Telerik.Windows.Controls.Spreadsheet.Controls.ColorGallery)(target)); return; case 15: this.FontGallery = ((Telerik.Windows.Controls.Spreadsheet.Controls.FontGallery)(target)); return; case 16: this.PrintAreaButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 17: this.BreaksButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 18: this.AutoSumButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 19: this.RecentlyUsed = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 20: this.Financial = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 21: this.Logical = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 22: this.Text = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 23: this.DateAndTime = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 24: this.LookupAndReference = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 25: this.MathAndTrig = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 26: this.MoreFunctionsButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 27: this.FreezePanesButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 28: this.BringForwardButton = ((Telerik.Windows.Controls.RadRibbonSplitButton)(target)); return; case 29: this.SendBackwardButton = ((Telerik.Windows.Controls.RadRibbonSplitButton)(target)); return; case 30: this.RotateButton = ((Telerik.Windows.Controls.RadRibbonDropDownButton)(target)); return; case 31: this.PictureTools = ((Telerik.Windows.Controls.RadRibbonContextualGroup)(target)); return; case 32: this.radSpreadsheet = ((Telerik.Windows.Controls.RadSpreadsheet)(target)); return; } this._contentLoaded = true; }