Interaction logic for UserControl1.xaml
Inheritance: System.Windows.Controls.UserControl
        public SubscriptionKeyPage(SampleScenarios sampleScenarios)
        {
            InitializeComponent();
            _sampleScenarios = sampleScenarios;

            DataContext     = this;
            SubscriptionKey = GetSubscriptionKeyFromIsolatedStorage();
        }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this._scenariosControl = ((SampleUserControlLibrary.SampleScenarios)(target));
         return;
     }
     this._contentLoaded = true;
 }
示例#3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._scenariosControl = ((SampleUserControlLibrary.SampleScenarios)(target));

            #line 8 "..\..\MainWindow.xaml"
                this._scenariosControl.Loaded += new System.Windows.RoutedEventHandler(this._scenariosControl_Loaded);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SampleScenariosUserControl = ((SampleUserControlLibrary.SampleScenarios)(target));
                return;

            case 2:
                this.SampleNameLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:

            #line 31 "..\..\SampleUserControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SubscriptionManagementButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this._scenarioListBox = ((System.Windows.Controls.ListBox)(target));

            #line 33 "..\..\SampleUserControl.xaml"
                this._scenarioListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ScenarioChanged);

            #line default
            #line hidden
                return;

            case 5:
                this._scenarioFrame = ((System.Windows.Controls.Frame)(target));
                return;

            case 6:
                this._logTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this._disclaimerTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }