private void OrganizeList(List <Step> steps)
        {
            foreach (var item in steps)
            {
                StepItem Control = new StepItem();
                Control.generateData(item);
                Border border = new Border()
                {
                    BorderBrush = Brushes.Black, BorderThickness = new Thickness(0, 1, 0, 1), Height = 1f
                };
                border.Width = this.Width - 50;

                mainList.Items.Add(Control);
                mainList.Items.Add(border);
            }
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.StepItemInfo = ((WpfApplication1.StepItem)(target));
                return;

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

            case 3:
                this.Checked = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 4:
                this.Description = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.Links = ((System.Windows.Controls.Expander)(target));
                return;

            case 6:
                this.LinkPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 7:
                this.Tips = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 8:
                this.TipsList = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.NewlinkTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.AddLinkButton = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\StepItem.xaml"
                this.AddLinkButton.Click += new System.Windows.RoutedEventHandler(this.AddLinkButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.EditModeButton = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\StepItem.xaml"
                this.EditModeButton.Click += new System.Windows.RoutedEventHandler(this.EditModeButton_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.RemoveLinkButton = ((System.Windows.Controls.Button)(target));

            #line 50 "..\..\StepItem.xaml"
                this.RemoveLinkButton.Click += new System.Windows.RoutedEventHandler(this.RemoveLinkButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }