Exemple #1
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightDemo;component/MainPage.xaml", System.UriKind.Relative));
     this.accordionStyle        = ((System.Windows.Style)(this.FindName("accordionStyle")));
     this.tabContentBorderBrush = ((System.Windows.Media.LinearGradientBrush)(this.FindName("tabContentBorderBrush")));
     this.LayoutRoot            = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.sideBar            = ((System.Windows.Controls.Border)(this.FindName("sideBar")));
     this.ListScroller       = ((System.Windows.Controls.ScrollViewer)(this.FindName("ListScroller")));
     this.ListOfSamples      = ((System.Windows.Controls.StackPanel)(this.FindName("ListOfSamples")));
     this.expand             = ((System.Windows.Controls.Accordion)(this.FindName("expand")));
     this.gridSplitter       = ((System.Windows.Controls.GridSplitter)(this.FindName("gridSplitter")));
     this.tabPanel           = ((System.Windows.Controls.TabControl)(this.FindName("tabPanel")));
     this.tabSample          = ((System.Windows.Controls.TabItem)(this.FindName("tabSample")));
     this.mapFrameBorder     = ((System.Windows.Controls.Border)(this.FindName("mapFrameBorder")));
     this.ContentFrame       = ((System.Windows.Controls.Frame)(this.FindName("ContentFrame")));
     this.tabXaml            = ((System.Windows.Controls.TabItem)(this.FindName("tabXaml")));
     this.tabXamlScrollView  = ((System.Windows.Controls.ScrollViewer)(this.FindName("tabXamlScrollView")));
     this.txtXaml            = ((JeffWilcox.SyntaxHighlighting.SyntaxHighlightingTextBlock)(this.FindName("txtXaml")));
     this.tabSrc             = ((System.Windows.Controls.TabItem)(this.FindName("tabSrc")));
     this.tabSrcScrollView   = ((System.Windows.Controls.ScrollViewer)(this.FindName("tabSrcScrollView")));
     this.txtSrc             = ((JeffWilcox.SyntaxHighlighting.SyntaxHighlightingTextBlock)(this.FindName("txtSrc")));
     this.tabSrcVB           = ((System.Windows.Controls.TabItem)(this.FindName("tabSrcVB")));
     this.tabSrcScrollViewVB = ((System.Windows.Controls.ScrollViewer)(this.FindName("tabSrcScrollViewVB")));
     this.txtSrcExplain      = ((System.Windows.Controls.TextBox)(this.FindName("txtSrcExplain")));
     this.SampleCaption      = ((System.Windows.Controls.TextBlock)(this.FindName("SampleCaption")));
 }
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/iServerJava6R_SampleCode;component/MainPage.xaml", System.UriKind.Relative));
     this.accordionStyle = ((System.Windows.Style)(this.FindName("accordionStyle")));
     this.tabContentBorderBrush = ((System.Windows.Media.LinearGradientBrush)(this.FindName("tabContentBorderBrush")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.sideBar = ((System.Windows.Controls.Border)(this.FindName("sideBar")));
     this.ListScroller = ((System.Windows.Controls.ScrollViewer)(this.FindName("ListScroller")));
     this.ListOfSamples = ((System.Windows.Controls.StackPanel)(this.FindName("ListOfSamples")));
     this.expand = ((System.Windows.Controls.Accordion)(this.FindName("expand")));
     this.gridSplitter = ((System.Windows.Controls.GridSplitter)(this.FindName("gridSplitter")));
     this.tabPanel = ((System.Windows.Controls.TabControl)(this.FindName("tabPanel")));
     this.tabSample = ((System.Windows.Controls.TabItem)(this.FindName("tabSample")));
     this.mapFrameBorder = ((System.Windows.Controls.Border)(this.FindName("mapFrameBorder")));
     this.ContentFrame = ((System.Windows.Controls.Frame)(this.FindName("ContentFrame")));
     this.tabXaml = ((System.Windows.Controls.TabItem)(this.FindName("tabXaml")));
     this.tabXamlScrollView = ((System.Windows.Controls.ScrollViewer)(this.FindName("tabXamlScrollView")));
     this.txtXaml = ((JeffWilcox.SyntaxHighlighting.SyntaxHighlightingTextBlock)(this.FindName("txtXaml")));
     this.tabSrc = ((System.Windows.Controls.TabItem)(this.FindName("tabSrc")));
     this.tabSrcScrollView = ((System.Windows.Controls.ScrollViewer)(this.FindName("tabSrcScrollView")));
     this.txtSrc = ((JeffWilcox.SyntaxHighlighting.SyntaxHighlightingTextBlock)(this.FindName("txtSrc")));
     this.tabSrcVB = ((System.Windows.Controls.TabItem)(this.FindName("tabSrcVB")));
     this.tabSrcScrollViewVB = ((System.Windows.Controls.ScrollViewer)(this.FindName("tabSrcScrollViewVB")));
     this.txtSrcExplain = ((System.Windows.Controls.TextBox)(this.FindName("txtSrcExplain")));
     this.SampleCaption = ((System.Windows.Controls.TextBlock)(this.FindName("SampleCaption")));
     this.copyToClipboard = ((System.Windows.Controls.Button)(this.FindName("copyToClipboard")));
 }