Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 323069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:59:49+00:00 2026-05-12T08:59:49+00:00

The following code is part of a small XAML application that displays data in

  • 0

The following code is part of a small XAML application that displays data in a tabular form. Basically I need to translate this code into C#.

<Grid Width="768" Height="1056">
    <Grid.RowDefinitions>
        <RowDefinition Height="114" />
        <RowDefinition Height="906*" />
        <RowDefinition Height="36" />
    </Grid.RowDefinitions>
...
<Label Grid.Row="1" Width="40" Height="32" Margin="14,4,0,0" Padding="0" HorizontalAlignment="Left" VerticalAlignment="Top" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" BorderBrush="Black" BorderThickness="1" Name="label16">
    <AccessText Margin="0,0,0,0" TextWrapping="Wrap" TextAlignment="Center" FontWeight="Bold">
        SEQ
    </AccessText>
</Label>
...
</Grid>

I’ve been looking for an answer for a couple of days and I can’t find anything specific to this. Can someone please give me an idea of how to do it?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:59:49+00:00Added an answer on May 12, 2026 at 8:59 am

    I constructed a sample Window for you. Here is the code-behind you are looking for:

    public Window1()
    {
        InitializeComponent();
    
        AccessText text = new AccessText()
        {
            Text = "SEQ",
            Margin = new Thickness(0),
            TextWrapping = TextWrapping.Wrap,
            TextAlignment = TextAlignment.Center,
            FontWeight = FontWeights.Bold
        };
    
        Label label = new Label()
        {
            Content = text,
            Width = 40,
            Height = 32,
            Margin = new Thickness(14, 4, 0, 0),
            HorizontalAlignment = HorizontalAlignment.Left,
            VerticalAlignment = VerticalAlignment.Top,
            HorizontalContentAlignment = HorizontalAlignment.Center,
            VerticalContentAlignment = VerticalAlignment.Center,
            BorderBrush = Brushes.Black,
            BorderThickness = new Thickness(1),
            Name = "label16"
        };
    
        Grid grid = new Grid();
        grid.Width = 768;
        grid.Height = 1056;
        grid.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(114) });
        grid.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(906, GridUnitType.Star) });
        grid.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(36) });
        Grid.SetRow(label, 1);
        grid.Children.Add(label);
    
        this.Content = grid;
    }
    

    This example nicely demonstrates how easy XAML is for constructing user interfaces. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my problem is the following: This is a part of my HTML-Code: <form method='GET'
I have an application that has many threads processing data. As part of this
Using linkedin-j , I have the following code in one part of my application
I have the following situation: I have an event handler, that displays small messages
I have a small part in my code thats similar to this one (ofcourse
I have the following XAML code as part of a custom control: <telerik:RadTreeView x:Name=treeModules>
I am using the following code as part of an autocomplete script to avoid
Ok - I have the following code - on the starred part I get
I have the following code in one cpp file which is part of a
The following code is taken from here . I removed all Windows NT part

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.