I am developing Metro app using C # and XAMM so I want to convert some XML code into C # For some help, the code below is XAM and to work fine, I want to do it in C #
& Lt; RowDefinition Height = "94 *" /> & Lt; RowDefinition Height = "111 *" /> & Lt; /Grid.RowDefinitions> & Lt; Grid.ColumnDefinitions & gt; & Lt; Column define width = "111 *" /> & Lt; Column width = "143 *" /> & Lt; Column width = "147 *" /> & Lt; Column width = "141 *" /> & Lt; Column width = "141 *" /> & Lt; /Grid.ColumnDefinitions> & Lt; TextBlock Grid.Column = "1" horizontal align = "left" margin = "61,49,0,0" grid. Line = "1" textering = "wrap" text = "text block" vertical element = "top" /> & Lt; TextBlock Grid.Column = "2" horizontal alignment = "left" margin = "71,45,0,0" grid. Line = "2" textwapping = "wrap" text = "text block" vertical element = "top" /> & Lt; TextBlock horizontal tracing = "left" margin = "68,45,0,0" grid Line = "2" textwapping = "wrap" text = "text block" vertical element = "top" /> & Lt; TextBlock Grid.Column = "1" horizontal alignment = "left" margin = "106,58,0,0" grid Rows = "2" textvapping = "wrap" text = "text block" vertical element = "top" /> & Lt; TextBlock horizontal alignment = "left" margin = "63,58,0,0" grid. Line = "3" textwapping = "wrap" text = "text block" vertical element = "top" /> & Lt; / Grid & gt; Can anyone help me with this please, thank you in advance
var grid = new grid () {name =" ObjRootGrid ", background = new SolidColorBrush (Colors.Black), margin = new thickness (248, 198, 227, 182)}; Var rowDef1 = new lineology (); RowDef1.Height = New Grid Lamp (78, GridUnitType.Star); Grid.RowDefinitions.Add (rowDef1); Continue adding // line definitions ... var colDef1 = new ColumnDefinition (); ColDef1.Width = New Grid Langant (111, GridNonType Wire); Grid.ColumnDefinitions.Add (colDef1); // Continue adding the definitions of column ... var text box 1 = new text block () {horizontal alignment = system Windows Horizontal alignment Left, margin = new thickness (61,49,0,0), text-wrapping = textweeping Break, text = "text block", vertical element = system. Windows. Vertical alignment. hat}; Grid .set column (text box 1, 1); Grid Satro (text box 1, 1); Grid.Children.Add (textBox1); Continue to add // text block ...
Comments
Post a Comment