• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Controls.Separator类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Controls.Separator的典型用法代码示例。如果您正苦于以下问题:C# Separator类的具体用法?C# Separator怎么用?C# Separator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Separator类属于System.Windows.Controls命名空间,在下文中一共展示了Separator类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: initializeContextMenus

        private void initializeContextMenus()
        {
            MenuItem playItem = new MenuItem();
            playItem.Header = "Play";
            playItem.Click += PlaySongFromMenu_Click;

            Separator sep = new Separator();

            MenuItem removeItem = new MenuItem();
            removeItem.Header = "Remove";
            removeItem.Click += removeItem_Click;

            allMusicMenu = new ContextMenu();
            allMusicMenu.Items.Add(playItem);
            allMusicMenu.Items.Add(sep);
            allMusicMenu.Items.Add(removeItem);
            //playlist context menu

            MenuItem playlistPlayItem = new MenuItem();
            playlistPlayItem.Header = "Play";
            playlistPlayItem.Click += PlaySongFromMenu_Click;
            Separator Playlistsep = new Separator();

            MenuItem removeItemFromPlaylist = new MenuItem();
            removeItemFromPlaylist.Click += removeItemFromPlaylist_Click;
            removeItemFromPlaylist.Header = "Remove From Playlist";

            playlistMenu = new ContextMenu();
            playlistMenu.Items.Add(playlistPlayItem);
            playlistMenu.Items.Add(Playlistsep);
            playlistMenu.Items.Add(removeItemFromPlaylist);
        }
开发者ID:zachatrocity,项目名称:hTunes,代码行数:32,代码来源:MainWindow.xaml.cs


示例2: OverallStatsPopUp

                public OverallStatsPopUp(double width, double height, string content)
                        : base(width, height, content)
                {
                        _projectsNB = 0;
                        _projectsIPNB = 0;
                        _projectsDNB = 0;

                        _separator = new Separator();
                        _separator.Width = this.Width * 0.6;
                        _separator.Background = Palette2.GetColor(Palette2.THIN_GRAY);

                        SetUpProjectsPanel();
                        SetUpProjectsIPPanel();
                        SetUpDPanel();

                        SetUpPercentagePanel();
                        SetUpGraphPanel();

                        _container.Children.Add(_separator);
                        _container.Children.Add(_projectsPanel);
                        _container.Children.Add(_projectsIPPanel);
                        _container.Children.Add(_projectsDPanel);
                        _container.Children.Add(_percentagePanel);
                        _container.Children.Add(_graphPanel);


                }
开发者ID:RemyKaloustian,项目名称:Epic-Projects,代码行数:27,代码来源:OverallStatsPopUp.cs


示例3: DialogBackend

		public DialogBackend()
		{
			cmd = new DelegatedCommand<WpfDialogButton> (OnButtonClicked);

			this.leftButtonContainer.ItemsPanel = leftPanelTemplate;
			this.leftButtonContainer.ItemTemplateSelector = new DialogButtonTemplateSelector(ButtonStyle, cmd);
			this.leftButtonContainer.ItemsSource = this.leftButtons;
			this.leftButtonContainer.HorizontalAlignment = HorizontalAlignment.Left;

			this.rightButtonContainer.ItemsPanel = rightPanelTemplate;
			this.rightButtonContainer.ItemTemplateSelector = new DialogButtonTemplateSelector(ButtonStyle, cmd);
			this.rightButtonContainer.ItemsSource = this.rightButtons;
			this.rightButtonContainer.HorizontalAlignment = HorizontalAlignment.Right;

			this.rootPanel.RowDefinitions.Add (new RowDefinition { Height = new GridLength (0, GridUnitType.Auto) });
			separator = new SWC.Separator ();
			separator.Visibility = Visibility.Collapsed;
			Grid.SetRow (separator, 2);
			this.rootPanel.Children.Add (separator);

			this.rootPanel.RowDefinitions.Add (new RowDefinition { Height = new GridLength(0, GridUnitType.Auto) });

			this.buttonContainer.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto  });
			this.buttonContainer.ColumnDefinitions.Add(new ColumnDefinition ());
			this.buttonContainer.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Auto  });
			Grid.SetColumn(this.leftButtonContainer, 0);
			Grid.SetColumn(this.rightButtonContainer, 2);
			this.buttonContainer.Children.Add(this.leftButtonContainer);
			this.buttonContainer.Children.Add(this.rightButtonContainer);

			Grid.SetRow (buttonContainer, 3);
			this.rootPanel.Children.Add (buttonContainer);
			buttonContainer.Visibility = Visibility.Collapsed;
		}
开发者ID:TheBrainTech,项目名称:xwt,代码行数:34,代码来源:DialogBackend.cs


示例4: KoncowyTest

        public KoncowyTest(List<string[]> slowa)
        {
            InitializeComponent();
            labels = new Label[15];
            textboxes = new TextBox[15];
            this.slowa = slowa;
            for (int i = 0; i < 15; i++)
            {
                labels[i] = new Label();
                textboxes[i] = new TextBox();
                labels[i].Content = slowa[i][0];
                labels[i].Margin = new Thickness(0,5,0,5);
                textboxes[i].Margin = new Thickness(0, 5, 0, 5);
                textboxes[i].MinWidth = 50;
                DockPanel dock = new DockPanel();
                dock.MinWidth = 200;
                var sep = new Separator();
                sep.MinWidth = 50;
                sep.Visibility = Visibility.Hidden;
                ;
                dock.Children.Add(labels[i]);
                dock.Children.Add(sep);
                dock.Children.Add(textboxes[i]);

                StackPanel.Children.Add(dock);
            }
        }
开发者ID:kypp,项目名称:word-recall-test,代码行数:27,代码来源:KoncowyTest.xaml.cs


示例5: AddSeparator

 public void AddSeparator(double width,ToolBar location)
 {
     Separator sp = new Separator();
     sp.Width = width;
     BrushConverter bc = new BrushConverter();
     sp.Background = (Brush)bc.ConvertFrom("Transparent");
     location.Items.Add(sp);
 }
开发者ID:SAM33,项目名称:2016-OOP-UMLEditor,代码行数:8,代码来源:ToolsPanel.xaml.cs


示例6: MenuSeparator

		public MenuSeparator()
		{
			Header = new Separator
			{
				HorizontalAlignment = HorizontalAlignment.Stretch,
				Width = 150,
				IsEnabled = false
			};
		}
开发者ID:SAD1992,项目名称:justdecompile-plugins,代码行数:9,代码来源:MenuSeparator.cs


示例7: AddSeparator

 public void AddSeparator()
 {
     Separator separator = new Separator();
     separator.Height = 9;
     childrenHeight += 9;
     separator.Margin = new Thickness(4, 0, 4, 0);
     separator.Background = new SolidColorBrush(Color.FromRgb(0, 0, 0));
     stackPanelStats.Children.Add(separator);
 }
开发者ID:trigger-death,项目名称:TriggersPC,代码行数:9,代码来源:PokedexViewer.xaml.cs


示例8: ProjectStatsPopUp

                public ProjectStatsPopUp(double width, double height, string content, string project)
                        : base(width, height, content)
                {
                        _separator = new Separator();
                        _separator.Width = this.Width * 0.6;
                        _separator.Background = Palette2.GetColor(Palette2.THIN_GRAY);


                        _brainstormingsPanel = new StatsPanel(new Selector(Constants.DatabaseValues.PROJECT_PATH).SelectBrainstormings(project).Count.ToString(), "  Brainstormings");

                        Ratio trainingsRatio = new StatsWarrior().GetTrainingsRatio(project);
                    
                        _trainingsPanel = new StatsPanel(
                                trainingsRatio.GetPercentage().ToString(),
                                " %  of trainings done (" + trainingsRatio.ToString() + ")");

                        _trainingsGraph = new GraphPanel(this.Width, trainingsRatio._done, trainingsRatio._todo);

                        Ratio assignmentsRatio = new StatsWarrior().GetAssignmentsRatio(project);

                        _assignmentsPanel = new StatsPanel(assignmentsRatio.GetPercentage().ToString("f0"),
                                " % of assignments done (" + assignmentsRatio.ToString() + ")");

                        _assignmentsGraph = new GraphPanel(this.Width, assignmentsRatio._done, assignmentsRatio._todo);

                        Ratio maintenanceRatio = new StatsWarrior().GetMaintenancesRatio(project);

                        _maintenacePanel = new StatsPanel(maintenanceRatio.GetPercentage().ToString("f0"),
                                                        " % of maintenance done (" + maintenanceRatio.ToString() + ")");

                        _maintenaceGraph = new GraphPanel(this.Width, maintenanceRatio._done, maintenanceRatio._todo);

                        Ratio projectRatio = new StatsWarrior().GetAdvancedTasksRatio(project);

                        _projectPanel = new StatsPanel(projectRatio.GetPercentage().ToString("f0"),
                                " % of " + project + " finished");

                        _projectGraph = new GraphPanel(this.Width, projectRatio._done, projectRatio._todo);

                        _container.Children.Add(_separator);
                        _container.Children.Add(_brainstormingsPanel);
                        _container.Children.Add(_trainingsPanel);
                        _container.Children.Add(_trainingsGraph);
                        _container.Children.Add(_assignmentsPanel);
                        _container.Children.Add(_assignmentsGraph);
                        _container.Children.Add(_maintenacePanel);
                        _container.Children.Add(_maintenaceGraph);
                        _container.Children.Add(_projectPanel);
                        _container.Children.Add(_projectGraph);

                }
开发者ID:RemyKaloustian,项目名称:Epic-Projects,代码行数:51,代码来源:ProjectStatsPopUp.cs


示例9: OpenProjectPopUp

                public OpenProjectPopUp(double width, double height, string content)
                        : base(width, height, content)
                {
                        this.Background = ThemeSelector.GetPopUpBackground();

                        _separator = new Separator();
                        _separator.Width = this.Width * 0.5;
                        _separator.Background = ThemeSelector.GetBackground();

                        _scroller = new ScrollViewer();
                        _scroller.Height = this.Height*0.6;


                        _projectsPanel = new StackPanel();
                        _projectsPanel.Orientation = Orientation.Vertical;
                        _projectsPanel.Margin = new System.Windows.Thickness(0, 30, 0, 0);

                        _projectItemList = new List<ProjectItem>();

                        List<string> projects = new ProjectMasterChief().GetProjects();

                        foreach (var item in projects)
                        {
                                ProjectItem proj = new ProjectItem(this.Height * 0.05, item, new StatsWarrior().GetAdvancedTasksRatio(item).ToString());
                                _projectItemList.Add(proj);
                                _projectsPanel.Children.Add(proj);
                                proj.MouseDown += proj_MouseDown;
                        }

                        _scroller.Content = _projectsPanel;



                        _openButton = new ValidateButton(ControlsValues.OPEN, this.Width * 0.5, this.Height * 0.07, new System.Windows.Thickness(0, 20, 0, 2), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);

                        _openButton.MouseDown += _openButton_MouseDown;
                        _openButton.IsEnabled = false;

                        _cancelButton = new CancelButton(ControlsValues.CLOSE, this.Width * 0.5, this.Height * 0.07, new System.Windows.Thickness(0, 5, 0, 30), new System.Windows.Thickness(5, 5, 5, 5), System.Windows.HorizontalAlignment.Center);

                        _cancelButton.MouseDown += _cancelButton_MouseDown;

                        _container.Children.Add(_separator);
                        _container.Children.Add(_scroller);

                        _container.Children.Add(_openButton);
                        _container.Children.Add(_cancelButton);

                }
开发者ID:RemyKaloustian,项目名称:Epic-Projects,代码行数:49,代码来源:OpenProjectPopUp.cs


示例10: Tab

        public Tab()
        {
            title = new WrapPanel();
                titleText = new Label();
                titleText.Content = "New File";
                titleText.Width = 110;
                titleText.Height = 34;
                titleText.VerticalAlignment = VerticalAlignment.Top;
                titleText.VerticalContentAlignment = VerticalAlignment.Center;
                titleText.HorizontalContentAlignment = HorizontalAlignment.Center;
                titleText.FontFamily = Tab.fontFamilySegoeUI;
                titleText.IsTabStop = true;
                Microsoft.Windows.Shell.WindowChrome.SetIsHitTestVisibleInChrome(titleText, /*isHitTestable*/true);
                title.Children.Add(titleText);

                Separator seperator = new Separator();
                seperator.Width = 5;
                seperator.Visibility = Visibility.Hidden;
                title.Children.Add(seperator);

                closeButton = new Image();
                closeButton.Width = 8;
                closeButton.Height = 8;
                BitmapImage closeImage = new BitmapImage();
                closeImage.BeginInit();
                closeImage.UriSource = new Uri("pack://application:,,,/Bend;component/Images/Close-dot.png");
                closeImage.EndInit();
                closeButton.Source = closeImage;
                closeButton.Margin = new Thickness(0, 6, 0, 0);
                Microsoft.Windows.Shell.WindowChrome.SetIsHitTestVisibleInChrome(closeButton, /*isHitTestable*/true);
                title.Children.Add(closeButton);

                Microsoft.Windows.Shell.WindowChrome.SetIsHitTestVisibleInChrome(title, /*isHitTestable*/true);

                textEditor = new TextEditor();
                textEditor.HorizontalAlignment = HorizontalAlignment.Stretch;
                textEditor.Margin = new Thickness(0);
                textEditor.VerticalAlignment = VerticalAlignment.Stretch;
                textEditor.ShowLineNumbers = true;
                textEditor.FontFamily = Tab.fontFamilyConsolas;
                textEditor.FontSize = 14;
                textEditor.PreviewMouseWheel += Tab.EditorPreviewMouseWheel;
                textEditor.PreviewKeyDown += Tab.EditorPreviewKeyDown;

                this.fileChangedWatcher = null;
                this.lastFileChangeTime = 1;
                this.LoadOptions();
        }
开发者ID:kjk,项目名称:kjkpub,代码行数:48,代码来源:Tab.cs


示例11: DialogBackend

        public DialogBackend()
        {
            cmd = new DelegatedCommand<DialogButton> (OnButtonClicked);

            this.buttonContainer.ItemsPanel = PanelTemplate;
            this.buttonContainer.ItemTemplateSelector =  new DialogButtonTemplateSelector (ButtonStyle, cmd);
            this.buttonContainer.ItemsSource = this.buttons;
            this.buttonContainer.HorizontalAlignment = HorizontalAlignment.Right;

            this.rootPanel.RowDefinitions.Add (new RowDefinition { Height = new GridLength (0, GridUnitType.Auto) });
            separator = new SWC.Separator ();
            Grid.SetRow (separator, 2);
            this.rootPanel.Children.Add (separator);

            this.rootPanel.RowDefinitions.Add (new RowDefinition { Height = new GridLength (0, GridUnitType.Auto) });
            Grid.SetRow (this.buttonContainer, 3);
            this.rootPanel.Children.Add (this.buttonContainer);
        }
开发者ID:garuma,项目名称:xwt,代码行数:18,代码来源:DialogBackend.cs


示例12: processMenuElement

 private object processMenuElement(XElement theElement, string theDefault, MenuItemClick delg)
 {
     if (theElement.Name == Common.MenuItem)
     {
         MenuItem theItem = new MenuItem();
         theItem.Header = theElement.GetAttribute("text");
         string action = theElement.GetAttribute(Common.MenuAction);
         theItem.Tag = action;
         if (action == theDefault)
         {
             theItem.FontWeight = FontWeights.Bold;
         }
         theItem.Click += new RoutedEventHandler(delg);
         /*
         theElement.GetAttribute("clientAction")
         if (Common.boolValue(theElement.GetAttribute("checked")))
             theItem.Checked = true;
         if (theItem.Action == theDefault)
             theItem.DefaultItem = true;
         */
         return theItem;
     }
     else if (theElement.Name == Common.ProcessSeparator)
     {
         Separator s = new Separator();
         return s;
     }
     else//sub menu
     {
         MenuItem theItem = new MenuItem();
         theItem.Header = theElement.Attribute("name").Value;
         foreach(XElement child in theElement.DescendantNodes() )
         {
             theItem.Items.Add(processMenuElement((XElement)child, theDefault, delg));
         }
         return theItem;
     }
 }
开发者ID:expanz,项目名称:expanz-Microsoft-XAML-SDKs,代码行数:38,代码来源:ControlHarness.WPF.cs


示例13: HumanMacroData

        //public HumanMacroData(Word.Range text, List<String> results)
        public HumanMacroData(Word.Range toShorten, int job, Separator separator, double reward, int redundancy, string title, string subtitle, string instructions, ReturnType type, TestOrReal test)
            : base(toShorten, job)
        {
            this.text = toShorten;
            this.separator = separator;
            //this.results = results;
            //patches = new List<HumanMacroPatch>();

            this.reward = reward;
            this.redundancy = redundancy;
            this.title = title;
            this.subtitle = subtitle;
            this.instructions = instructions;
            this.type = type;
            this.numberReturned = 0;
            this.test = test;

            //stages[HITData.ResultType.Macro] = new StageData(HITData.ResultType.Macro);
            macroStageData = new StageData(HITData.ResultType.Macro, job);
            stages.Add(macroStageData);
            //stages[HITData.ResultType.Macro] = new HumanMacroStage(HITData.ResultType.Macro, redundancy);

            results = new List<string>();
        }
开发者ID:tummykung,项目名称:soylent,代码行数:25,代码来源:HumanMacroData.cs


示例14: switch

 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.txtArrivo = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 2:
     this.datepickerArrivo = ((System.Windows.Controls.DatePicker)(target));
     
     #line 9 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.datepickerArrivo.SelectedDateChanged += new System.EventHandler<System.Windows.Controls.SelectionChangedEventArgs>(this.datepickerArrivo_SelectedDateChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.txtPartenza = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 4:
     this.datepickerPartenza = ((System.Windows.Controls.DatePicker)(target));
     
     #line 11 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.datepickerPartenza.SelectedDateChanged += new System.EventHandler<System.Windows.Controls.SelectionChangedEventArgs>(this.datepickerPartenza_SelectedDateChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.txtNotti = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this.txtboxNotti = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.separator1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 8:
     this.btnSearch = ((System.Windows.Controls.Button)(target));
     
     #line 15 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.btnSearch.Click += new System.Windows.RoutedEventHandler(this.btnSearch_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.dataGridCamere = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 10:
     this.btnAdd = ((System.Windows.Controls.Button)(target));
     
     #line 39 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.btnAdd_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.btnSub = ((System.Windows.Controls.Button)(target));
     
     #line 40 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.btnSub.Click += new System.Windows.RoutedEventHandler(this.btnSub_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.btnPrenota = ((System.Windows.Controls.Button)(target));
     
     #line 41 "..\..\..\VerificaDisponibilitaWindow.xaml"
     this.btnPrenota.Click += new System.Windows.RoutedEventHandler(this.btnPrenota_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
开发者ID:eddiez,项目名称:soggiorni,代码行数:78,代码来源:VerificaDisponibilitaWindow.g.i.cs


示例15: switch

 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.rootGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 3:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.datePicker1 = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 7:
     this.datePicker2 = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 8:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.label6 = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.comboBox1 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 11:
     this.comboBox2 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 12:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 49 "..\..\..\..\..\View\Reports\BusinessPartnerContractOrder.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.Button1Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.comboBox3 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 14:
     this.separator1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 15:
     this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 16:
     this.lbTitle = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
开发者ID:jesusblessf6,项目名称:senlan2,代码行数:60,代码来源:BusinessPartnerContractOrder.g.i.cs


示例16: switch

 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.rootGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.lbTitle = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 4:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.datePicker1 = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 6:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.datePicker2 = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 8:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.comboBox1 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 10:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.comboBox2 = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 12:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 53 "..\..\..\..\..\View\Reports\HedgeGroupPNL.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.Query);
     
     #line default
     #line hidden
     return;
     case 13:
     this.separator1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 14:
     this.pagingControl1 = ((Utility.Controls.PagingControl)(target));
     return;
     case 15:
     this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target));
     
     #line 58 "..\..\..\..\..\View\Reports\HedgeGroupPNL.xaml"
     this.dataGrid1.LoadingRow += new System.EventHandler<System.Windows.Controls.DataGridRowEventArgs>(this.OnLoadingRow);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
开发者ID:jesusblessf6,项目名称:senlan2,代码行数:63,代码来源:HedgeGroupPNL.g.cs


示例17: switch

 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.label11 = ((System.Windows.Controls.Label)(target));
     return;
     case 2:
     this.label12 = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.CurrentCharge = ((System.Windows.Controls.Label)(target));
     return;
     case 4:
     this.LastCharged = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.separator3 = ((System.Windows.Controls.Separator)(target));
     return;
     case 6:
     this.label17 = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.label8 = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.AccountBalance = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.BatteryAnimation = ((ClientApp.Controls.BatteryRecharging)(target));
     return;
     }
     this._contentLoaded = true;
 }
开发者ID:afrog33k,项目名称:eAd,代码行数:33,代码来源:BatteryInfo.g.i.cs


示例18: AddSeparator

 public void AddSeparator(MenuBarType type, Separator separatorObj, int index = -1)
 {
     AddItemToMenu(type, separatorObj, index);
 }
开发者ID:rafatahmed,项目名称:Dynamo,代码行数:4,代码来源:ViewLoadedParams.cs


示例19: StatusBarItems

        public StatusBarItems()
        {
            m_StatusDisplay = new List<StatusBarItem>();

            StatusBarItem item = new StatusBarItem();

            StackPanel panel = new StackPanel();

            TextBlock blck = new TextBlock();
            Binding textBinding = new Binding("ImageCursorCoordX") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageCursorCoordX;
            blck.Width = 50;
            panel.Children.Add(blck);
       
            Separator separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageCursorCoordY") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageCursorCoordY;
            blck.Width = 50;
            panel.Children.Add(blck);
            
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageCursorPixelVal") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageCursorPixelVal;
            blck.Width = 80;
            panel.Children.Add(blck);
           
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageCursorBoardVal") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageCursorBoardVal;
            blck.Width = 50;
            panel.Children.Add(blck);
           
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageCursorDetectorVal") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageCursorDetectorVal;
            blck.Width = 45;
            panel.Children.Add(blck);
            
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageWidth") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageWidth;
            blck.Width = 75;
            panel.Children.Add(blck);
           
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ImageHeight") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ImageHeight;
            blck.Width = 75;
            panel.Children.Add(blck);
            
            separator = new Separator();
            panel.Children.Add(separator);
            
            blck = new TextBlock();
            textBinding = new Binding("ZoomFactor") { Source = this, };
            textBinding.Mode = BindingMode.OneWay;
            blck.SetBinding(TextBlock.TextProperty, textBinding);
            blck.DataContext = ZoomFactor;
            blck.Width = 75;
            panel.Children.Add(blck);           

            panel.Orientation = Orientation.Horizontal;
            item.Content = panel;
            item.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Right;
            m_StatusDisplay.Add(item);
        }
开发者ID:BdGL3,项目名称:CXPortal,代码行数:98,代码来源:StatusBarItems.cs


示例20: TextBoxBaseContextMenuOpening

        private static void TextBoxBaseContextMenuOpening(object sender, ContextMenuEventArgs e)
        {
            var tbBase = (TextBoxBase)sender;
            var textBox = tbBase as TextBox;
            var richTextBox = tbBase as RichTextBox;

            tbBase.ContextMenu = GetDefaultTextBoxBaseContextMenu();

            var cmdIndex = 0;
            var spellingError = textBox != null
                ? textBox.GetSpellingError(textBox.CaretIndex)
                : (richTextBox != null
                    ? richTextBox.GetSpellingError(richTextBox.CaretPosition)
                    : null);
            if (spellingError != null) {
                var suggestions = spellingError.Suggestions;
                if (suggestions.Any()) {
                    foreach (var suggestion in suggestions) {
                        var mi = new MenuItem();
                        mi.Header = suggestion;
                        mi.FontWeight = FontWeights.Bold;
                        mi.Command = EditingCommands.CorrectSpellingError;
                        mi.CommandParameter = suggestion;
                        mi.CommandTarget = tbBase;
                        mi.SetResourceReference(FrameworkElement.StyleProperty, "MetroMenuItem");
                        tbBase.ContextMenu.Items.Insert(cmdIndex, mi);
                        cmdIndex++;
                    }
                    // add a separator
                    tbBase.ContextMenu.Items.Insert(cmdIndex, new Separator());
                    cmdIndex++;
                }
                var ignoreAllMI = new MenuItem();
                ignoreAllMI.Header = "Ignore All";
                ignoreAllMI.Command = EditingCommands.IgnoreSpellingError;
                ignoreAllMI.CommandTarget = tbBase;
                ignoreAllMI.SetResourceReference(FrameworkElement.StyleProperty, "MetroMenuItem");
                tbBase.ContextMenu.Items.Insert(cmdIndex, ignoreAllMI);
                cmdIndex++;
                // add another separator
                var separatorMenuItem2 = new Separator();
                tbBase.ContextMenu.Items.Insert(cmdIndex, separatorMenuItem2);
            }
        }
开发者ID:rawbenny,项目名称:MahApps.Metro,代码行数:44,代码来源:TextboxHelper.cs



注:本文中的System.Windows.Controls.Separator类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Controls.Slider类代码示例发布时间:2022-05-26
下一篇:
C# Controls.SelectionChangedEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap