3 Replies - 8051 Views - Last Post: 12 March 2012 - 08:39 AM

#1 Sayuri0903  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 37
  • Joined: 14-May 10

Alignment Controls

Posted 12 March 2012 - 07:21 AM

Hi all,

I have to do like picture below, I need to display control at runtime center in the free spaces.
After try many ways but my control always in the top. :(
Does anyone know how to do it?
Plz help me.

Thanks and best regard.

Attached image(s)

  • Attached Image

This post has been edited by Sayuri0903: 12 March 2012 - 07:23 AM

Is This A Good Question/Topic? 0
  • +

Replies To: Alignment Controls

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,960
  • Joined: 21-March 08

Re: Alignment Controls

Posted 12 March 2012 - 07:23 AM

First, you didn't attach a picture.

Second, show us the code you have tried.
Was This Post Helpful? 0
  • +
  • -

#3 Sayuri0903  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 37
  • Joined: 14-May 10

Re: Alignment Controls

Posted 12 March 2012 - 07:52 AM

Hi,
First, sorry for my missing attach file.
Second, I have try again and It OK :D

Here is my code:

<Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <Button Content="Button 01" Width="100"/>
            <Button Content="Button 02" Width="100"/>
            <Button Content="Button 03" Width="100" Click="ShowHideTestClick" />
            <Button Content="Button 04" Width="100"/>
        </StackPanel>

        <StackPanel  Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center">
            <Button x:Name="btnCheck"  Content="Check" Width="200" Height="200" Visibility="Collapsed"></Button>
        </StackPanel>
    </Grid>


Was This Post Helpful? 0
  • +
  • -

#4 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,960
  • Joined: 21-March 08

Re: Alignment Controls

Posted 12 March 2012 - 08:39 AM

So where is your code for creating controls at run-time and putting them in the page?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1