本文整理汇总了C#中System.Windows.Controls.RowDefinition类的典型用法代码示例。如果您正苦于以下问题:C# RowDefinition类的具体用法?C# RowDefinition怎么用?C# RowDefinition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RowDefinition类属于System.Windows.Controls命名空间,在下文中一共展示了RowDefinition类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: AttachControl
public override bool AttachControl(FilterPropertiesControl control)
{
Control = control;
Grid grid = new Grid();
int rowIndex = 0;
CheckBox distinctEdgesCheckBox = new CheckBox();
TextBlock textBlock = new TextBlock {Text = AppResources.DistinctEdges};
distinctEdgesCheckBox.Content = textBlock;
distinctEdgesCheckBox.IsChecked = _cartoonFilter.DistinctEdges;
distinctEdgesCheckBox.Checked += distinctEdgesCheckBox_Checked;
distinctEdgesCheckBox.Unchecked += distinctEdgesCheckBox_Unchecked;
Grid.SetRow(distinctEdgesCheckBox, rowIndex++);
for (int i = 0; i < rowIndex; ++i)
{
RowDefinition rd = new RowDefinition();
grid.RowDefinitions.Add(rd);
}
grid.Children.Add(distinctEdgesCheckBox);
control.ControlsContainer.Children.Add(grid);
return true;
}
开发者ID:KayNag,项目名称:LumiaImagingSDKSample,代码行数:27,代码来源:MarvelFilter.cs
示例2: AttachControl
public override bool AttachControl(FilterPropertiesControl control)
{
Control = control;
Grid grid = new Grid();
int rowIndex = 0;
TextBlock brightnessText = new TextBlock();
brightnessText.Text = "Threshold";
Grid.SetRow(brightnessText, rowIndex++);
Slider brightnessSlider = new Slider();
brightnessSlider.Minimum = 0.0;
brightnessSlider.Maximum = 1.0;
brightnessSlider.Value = _colorSwapFilter.Threshold;
brightnessSlider.ValueChanged += brightnessSlider_ValueChanged;
Grid.SetRow(brightnessSlider, rowIndex++);
for (int i = 0; i < rowIndex; ++i)
{
RowDefinition rd = new RowDefinition();
grid.RowDefinitions.Add(rd);
}
grid.Children.Add(brightnessText);
grid.Children.Add(brightnessSlider);
control.ControlsContainer.Children.Add(grid);
return true;
}
开发者ID:sachin4203,项目名称:ClassicPhotoEditor,代码行数:32,代码来源:MynewFilter3.cs
示例3: ShowGrid
public Grid ShowGrid()
{
Grid grid = new Grid();
for (var i = 0; i < tileLayer.Count; i++)
{
RowDefinition row = new RowDefinition();
grid.RowDefinitions.Add(row);
for (var j = 0; j < tileLayer[i].Count; j++)
{
ColumnDefinition col = new ColumnDefinition();
grid.ColumnDefinitions.Add(col);
List<Tile> sublist = tileLayer[i];
Tile temp = sublist[j];
Image img = new Image();
img.Source = temp.BackgroundImage;
img.SetValue(Grid.ColumnProperty, j);
img.SetValue(Grid.RowProperty, i);
img.Stretch = Stretch.UniformToFill;
grid.Children.Add(img);
}
}
return grid;
}
开发者ID:JeroenEgelmeers,项目名称:Sokoban,代码行数:29,代码来源:GameLayer.cs
示例4: GetNewKeymapGrid
public static Grid GetNewKeymapGrid(int numRows, int numCols, Keymap[,] keymaps)
{
var keymapGrid = new Grid();
keymapGrid.Children.Clear();
var rows = new RowDefinition[numRows];
var columns = new ColumnDefinition[numCols];
for (var i = 0; i < numRows; i++)
{
rows[i] = new RowDefinition();
keymapGrid.RowDefinitions.Add(rows[i]);
}
for (var i = 0; i < numCols; i++)
{
columns[i] = new ColumnDefinition();
keymapGrid.ColumnDefinitions.Add(columns[i]);
}
for (var i = 0; i < numRows; i++)
{
for (var j = 0; j < numCols; j++)
{
var button = new Button();
keymaps[i, j].Button = button;
Grid.SetRow(button, i);
Grid.SetColumn(button, j);
keymapGrid.Children.Add(button);
}
}
return keymapGrid;
}
开发者ID:jreardon,项目名称:KeymapGenerator,代码行数:34,代码来源:KeymapGrid.cs
示例5: AttachControl
public override bool AttachControl(FilterPropertiesControl control)
{
Control = control;
var grid = new Grid();
int rowIndex = 0;
TextBlock levelText = new TextBlock()
{
Text = "Level"
};
Grid.SetRow(levelText, rowIndex++);
Slider levelSlider = new Slider() { Minimum = 0.0, Maximum = 1.0, Value = _filter.Level};
levelSlider.ValueChanged += levelSlider_ValueChanged;
Grid.SetRow(levelSlider, rowIndex++);
for (int i = 0; i < rowIndex; ++i)
{
RowDefinition rd = new RowDefinition();
grid.RowDefinitions.Add(rd);
}
grid.Children.Add(levelText);
grid.Children.Add(levelSlider);
control.ControlsContainer.Children.Add(grid);
return true;
}
开发者ID:KayNag,项目名称:LumiaImagingSDKSample,代码行数:30,代码来源:EmbossWrapperFilter.cs
示例6: ShowView
private void ShowView(Grid grid)
{
//grid.RowDefinitions.Clear();
//grid.ColumnDefinitions.Clear();
//grid.Children.Clear();
for (int i = 0; i < _Round.ColCount; i += 1)
{
ColumnDefinition col = new ColumnDefinition();
grid.ColumnDefinitions.Add(col);
}
for (int i = 0; i < _Round.RowCount; i += 1)
{
RowDefinition row = new RowDefinition();
grid.RowDefinitions.Add(row);
}
_Ucs = new List<Uc1>(_Round.ColCount * _Round.RowCount);
Uc1 uc;
for (int i = 0; i < _Round.RowCount; i += 1)
{
for (int j = 0; j < _Round.ColCount; j += 1)
{
uc = new Uc1();
uc.SetValue(Grid.RowProperty, i);
uc.SetValue(Grid.ColumnProperty, j);
grid.Children.Add(uc);
_Ucs.Add(uc);
}
}
}
开发者ID:burstas,项目名称:rmps,代码行数:32,代码来源:Vc01.xaml.cs
示例7: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this._candidatesParaRow = ((System.Windows.Controls.RowDefinition)(target));
return;
}
this._contentLoaded = true;
}
开发者ID:JohnsonYuan,项目名称:TTSFramework,代码行数:9,代码来源:TrajectoryInfoUserControl.g.cs
示例8: Insert
public void Insert(int index, RowDefinition row)
{
if (row == null)
{
throw new ArgumentNullException("row");
}
List.Insert(index, row);
}
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:9,代码来源:RowDefinitionCollection.cs
示例9: IndexOf
public int IndexOf(RowDefinition row)
{
if (row == null)
{
throw new ArgumentNullException("row");
}
return List.IndexOf(row);
}
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:9,代码来源:RowDefinitionCollection.cs
示例10: CopyTo
public void CopyTo(RowDefinition[] array, int arrayIndex)
{
if (array == null)
{
throw new ArgumentNullException("array");
}
List.CopyTo(array, arrayIndex);
}
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:9,代码来源:RowDefinitionCollection.cs
示例11: Contains
public bool Contains(RowDefinition row)
{
if (row == null)
{
throw new ArgumentNullException("row");
}
return List.Contains(row);
}
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:9,代码来源:RowDefinitionCollection.cs
示例12: Add
public void Add(RowDefinition row)
{
if (row == null)
{
throw new ArgumentNullException("row");
}
List.Add(row);
}
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:9,代码来源:RowDefinitionCollection.cs
示例13: AttachControl
public override bool AttachControl(FilterPropertiesControl control)
{
Control = control;
Grid grid = new Grid();
int rowIndex = 0;
TextBlock sketchModeText = new TextBlock();
sketchModeText.Text = AppResources.SketchMode;
Grid.SetRow(sketchModeText, rowIndex++);
RadioButton grayRadioButton = new RadioButton();
grayRadioButton.GroupName = SketchModeGroup;
TextBlock textBlock = new TextBlock();
textBlock.Text = AppResources.Gray;
grayRadioButton.Content = textBlock;
grayRadioButton.Checked += grayRadioButton_Checked;
Grid.SetRow(grayRadioButton, rowIndex++);
RadioButton colorRadioButton = new RadioButton();
colorRadioButton.GroupName = SketchModeGroup;
textBlock = new TextBlock();
textBlock.Text = AppResources.Color;
colorRadioButton.Content = textBlock;
colorRadioButton.Checked += colorRadioButton_Checked;
Grid.SetRow(colorRadioButton, rowIndex++);
if (_sketchFilter.SketchMode == SketchMode.Gray)
{
grayRadioButton.IsChecked = true;
}
else
{
colorRadioButton.IsChecked = true;
}
for (int i = 0; i < rowIndex; ++i)
{
RowDefinition rd = new RowDefinition();
grid.RowDefinitions.Add(rd);
}
grid.Children.Add(sketchModeText);
grid.Children.Add(grayRadioButton);
grid.Children.Add(colorRadioButton);
control.ControlsContainer.Children.Add(grid);
return true;
}
开发者ID:sachin4203,项目名称:ClassicPhotoEditor,代码行数:50,代码来源:EightiesPopSongFilter.cs
示例14: GameListViewItem
public GameListViewItem()
{
gameTitle.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
monitorCheck.VerticalAlignment = System.Windows.VerticalAlignment.Center;
monitorCheck.HorizontalAlignment = System.Windows.HorizontalAlignment.Center;
gameVersion.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
gameVersion.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Right;
gameVersion.Padding = new System.Windows.Thickness(0);
gameTitle.Padding = new System.Windows.Thickness(0);
gameGrid.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
gameGrid.Margin = new System.Windows.Thickness(0);
gameTitle.Margin = new System.Windows.Thickness(0);
gameVersion.Margin = new System.Windows.Thickness(0);
ColumnDefinition col = new ColumnDefinition();
col.Width = new System.Windows.GridLength(1, System.Windows.GridUnitType.Star);
gameGrid.ColumnDefinitions.Add(col);
col = new ColumnDefinition();
col.Width = new System.Windows.GridLength(1, System.Windows.GridUnitType.Star);
gameGrid.ColumnDefinitions.Add(col);
monitorColumn.Width = new System.Windows.GridLength(50, System.Windows.GridUnitType.Pixel);
gameGrid.ColumnDefinitions.Add(monitorColumn);
RowDefinition row = new RowDefinition();
gameGrid.RowDefinitions.Add(row);
row = new RowDefinition();
gameGrid.RowDefinitions.Add(row);
Grid.SetColumn(gameTitle, 0);
Grid.SetRow(gameTitle, 0);
Grid.SetColumn(gameVersion, 1);
Grid.SetRow(gameVersion, 0);
Grid.SetColumn(monitorCheck, 2);
Grid.SetRow(monitorCheck, 0);
gameGrid.Children.Add(gameTitle);
gameGrid.Children.Add(gameVersion);
gameGrid.Children.Add(monitorCheck);
Content = gameGrid;
}
开发者ID:raven-ie,项目名称:MASGAU,代码行数:48,代码来源:GameListViewItem.cs
示例15: Remove
public bool Remove(RowDefinition row)
{
if (row == null)
{
throw new ArgumentNullException("row");
}
if (List.Contains(row) == false)
{
return false;
}
List.Remove(row);
return true;
}
开发者ID:arangas,项目名称:MediaPortal-1,代码行数:16,代码来源:RowDefinitionCollection.cs
示例16: InitializeComponent
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/Bcheck.TaskUI;component/PeopleSelectorDialog.xaml", System.UriKind.Relative));
this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
this.gridEditFields = ((System.Windows.Controls.Grid)(this.FindName("gridEditFields")));
this.rowSearchBox = ((System.Windows.Controls.RowDefinition)(this.FindName("rowSearchBox")));
this.rowResultsDisplay = ((System.Windows.Controls.RowDefinition)(this.FindName("rowResultsDisplay")));
this.rowOkancel = ((System.Windows.Controls.RowDefinition)(this.FindName("rowOkancel")));
this.txtSearch = ((System.Windows.Controls.TextBox)(this.FindName("txtSearch")));
this.btnSearch = ((System.Windows.Controls.Button)(this.FindName("btnSearch")));
this.gridPeopleResults = ((System.Windows.Controls.DataGrid)(this.FindName("gridPeopleResults")));
this.colDisplayName = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("colDisplayName")));
this.brid = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("brid")));
this.colEmail = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("colEmail")));
this.colAccountName = ((System.Windows.Controls.DataGridTextColumn)(this.FindName("colAccountName")));
this.CancelButton = ((System.Windows.Controls.Button)(this.FindName("CancelButton")));
this.OKButton = ((System.Windows.Controls.Button)(this.FindName("OKButton")));
this.BusyIndicator = ((System.Windows.Controls.BusyIndicator)(this.FindName("BusyIndicator")));
}
开发者ID:nilavghosh,项目名称:VChk,代码行数:22,代码来源:PeopleSelectorDialog.g.i.cs
示例17: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.ctlDetop_Sharing = ((Desktop_Sharing.Presentation.ctlDesktop_Sharing)(target));
return;
case 2:
this.grdMain = ((System.Windows.Controls.Grid)(target));
return;
case 3:
this.row1 = ((System.Windows.Controls.RowDefinition)(target));
return;
case 4:
this.row2 = ((System.Windows.Controls.RowDefinition)(target));
return;
case 5:
this.col1 = ((System.Windows.Controls.ColumnDefinition)(target));
return;
case 6:
this.cnvTop = ((System.Windows.Controls.Canvas)(target));
return;
case 7:
this.txtInput = ((System.Windows.Controls.TextBox)(target));
return;
case 8:
this.lblResolution = ((System.Windows.Controls.Label)(target));
return;
case 9:
this.lblUser_Desktop = ((System.Windows.Controls.Label)(target));
return;
case 10:
this.btnView = ((System.Windows.Controls.Button)(target));
return;
case 11:
this.btnControl = ((System.Windows.Controls.Button)(target));
return;
case 12:
this.btnClose = ((System.Windows.Controls.Button)(target));
return;
case 13:
this.desktopViewer = ((System.Windows.Controls.ScrollViewer)(target));
return;
case 14:
this.imgUser_Desktop = ((System.Windows.Controls.Image)(target));
return;
case 15:
this.myViewer = ((System.Windows.Controls.ScrollViewer)(target));
return;
case 16:
this.cnvDesktops = ((System.Windows.Controls.WrapPanel)(target));
return;
}
this._contentLoaded = true;
}
开发者ID:jiangguang5201314,项目名称:VMukti,代码行数:54,代码来源:ctlDesktop_Sharing.g.cs
示例18: InitializeComponent
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Windows.Application.LoadComponent(this, new System.Uri("/Healthcare;component/AboutPage.xaml", System.UriKind.Relative));
this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
this.Row0Logo = ((System.Windows.Controls.RowDefinition)(this.FindName("Row0Logo")));
this.Row1 = ((System.Windows.Controls.RowDefinition)(this.FindName("Row1")));
this.Row2Title = ((System.Windows.Controls.RowDefinition)(this.FindName("Row2Title")));
this.Row3 = ((System.Windows.Controls.RowDefinition)(this.FindName("Row3")));
this.Row4Title = ((System.Windows.Controls.RowDefinition)(this.FindName("Row4Title")));
this.Row5 = ((System.Windows.Controls.RowDefinition)(this.FindName("Row5")));
this.Row6 = ((System.Windows.Controls.RowDefinition)(this.FindName("Row6")));
this.Row7Title = ((System.Windows.Controls.RowDefinition)(this.FindName("Row7Title")));
this.Row8 = ((System.Windows.Controls.RowDefinition)(this.FindName("Row8")));
this.Row9Title = ((System.Windows.Controls.RowDefinition)(this.FindName("Row9Title")));
this.Row10 = ((System.Windows.Controls.RowDefinition)(this.FindName("Row10")));
this.Row11 = ((System.Windows.Controls.RowDefinition)(this.FindName("Row11")));
this.Row12 = ((System.Windows.Controls.RowDefinition)(this.FindName("Row12")));
this.Row13 = ((System.Windows.Controls.RowDefinition)(this.FindName("Row13")));
this.Row14 = ((System.Windows.Controls.RowDefinition)(this.FindName("Row14")));
this.TBVersion = ((System.Windows.Documents.Run)(this.FindName("TBVersion")));
this.TBVersion2 = ((System.Windows.Documents.Run)(this.FindName("TBVersion2")));
this.BTNLove = ((System.Windows.Controls.Button)(this.FindName("BTNLove")));
this.BTNMail = ((System.Windows.Controls.HyperlinkButton)(this.FindName("BTNMail")));
this.BTNWeibo = ((System.Windows.Controls.HyperlinkButton)(this.FindName("BTNWeibo")));
}
开发者ID:jevonsflash,项目名称:Healthcare,代码行数:29,代码来源:AboutPage.g.i.cs
示例19: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.Headers = ((System.Windows.Controls.ColumnDefinition)(target));
return;
case 2:
this.Values = ((System.Windows.Controls.ColumnDefinition)(target));
return;
case 3:
this.Tag = ((System.Windows.Controls.RowDefinition)(target));
return;
case 4:
this.Type = ((System.Windows.Controls.RowDefinition)(target));
return;
case 5:
this.XpathRow = ((System.Windows.Controls.RowDefinition)(target));
return;
case 6:
this.Value = ((System.Windows.Controls.RowDefinition)(target));
return;
case 7:
this.lblTagHeader = ((System.Windows.Controls.Label)(target));
return;
case 8:
this.lblTypeHeader = ((System.Windows.Controls.Label)(target));
return;
case 9:
this.lblXpathHeader = ((System.Windows.Controls.Label)(target));
return;
case 10:
this.lblValueHeader = ((System.Windows.Controls.Label)(target));
return;
case 11:
this.lblTag = ((System.Windows.Controls.Label)(target));
return;
case 12:
this.lblType = ((System.Windows.Controls.Label)(target));
return;
case 13:
this.lblValue = ((System.Windows.Controls.TextBox)(target));
return;
case 14:
this.btnCheckXpath = ((System.Windows.Controls.Button)(target));
#line 22 "..\..\HtmlAttributeViewer.xaml"
this.btnCheckXpath.Click += new System.Windows.RoutedEventHandler(this.btnCheckXpath_Click);
#line default
#line hidden
return;
case 15:
this.lblXpath = ((System.Windows.Controls.TextBox)(target));
return;
}
this._contentLoaded = true;
}
开发者ID:rivanov2,项目名称:BlogBackupr,代码行数:57,代码来源:HtmlAttributeViewer.g.cs
示例20: switch
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.OptionsRow = ((System.Windows.Controls.RowDefinition)(target));
return;
case 2:
this.OptionsColumn = ((System.Windows.Controls.ColumnDefinition)(target));
return;
case 3:
this.checkBox_MotionType = ((System.Windows.Controls.CheckBox)(target));
#line 21 "..\..\MainWindow.xaml"
this.checkBox_MotionType.Checked += new System.Windows.RoutedEventHandler(this.checkBox_MotionType_Checked);
#line default
#line hidden
#line 21 "..\..\MainWindow.xaml"
this.checkBox_MotionType.Click += new System.Windows.RoutedEventHandler(this.checkBox_MotionType_Checked);
#line default
#line hidden
return;
case 4:
this.checkBox1 = ((System.Windows.Controls.CheckBox)(target));
#line 22 "..\..\MainWindow.xaml"
this.checkBox1.Checked += new System.Windows.RoutedEventHandler(this.checkBox1_Checked);
#line default
#line hidden
#line 22 "..\..\MainWindow.xaml"
this.checkBox1.Click += new System.Windows.RoutedEventHandler(this.checkBox1_Checked);
#line default
#line hidden
return;
case 5:
this.gridSplitter = ((System.Windows.Controls.GridSplitter)(target));
return;
case 6:
this.gridSplitter1 = ((System.Windows.Controls.GridSplitter)(target));
return;
case 7:
this.slider = ((System.Windows.Controls.Slider)(target));
#line 31 "..\..\MainWindow.xaml"
this.slider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slider_ValueChanged);
#line default
#line hidden
return;
case 8:
this.textBlock = ((System.Windows.Controls.TextBlock)(target));
return;
case 9:
this.slider1 = ((System.Windows.Controls.Slider)(target));
#line 34 "..\..\MainWindow.xaml"
this.slider1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.slider1_ValueChanged);
#line default
#line hidden
return;
case 10:
this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
return;
}
this._contentLoaded = true;
}
开发者ID:njpanzarino,项目名称:Kinect,代码行数:72,代码来源:MainWindow.g.cs
注:本文中的System.Windows.Controls.RowDefinition类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论