Jump to content
Fórum Script Brasil
  • 0

Ajuda para criar layout para um DataGridView


danilobr

Question

Boa tarde Pessoal!

Preciso de uma ajuda básica, eu tenho um código em XAML do SilverLight que preciso modificalo para ter um layout especifico, alguém pode me ajudar com essa mudança por favor?

Segue o código que preciso modificar:

<Grid x:Name="LayoutRoot" Margin="2" KeyDown="ctrlSlide_KeyDown">
        <!--<Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>-->
        <Image Source="../Images/Slide1.JPG" Visibility="Collapsed" />
        <ScrollViewer Margin="0,25,0,0" BorderBrush="Transparent" VerticalScrollBarVisibility="Auto" BorderThickness="0">
            <ItemsControl x:Name="lstArquivos">
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="1170"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="85" />
                            </Grid.RowDefinitions>
                            <TextBlock Margin="40,-45,0,0" Style="{StaticResource TextBlockLabel}" FontSize="26" HorizontalAlignment="Left" VerticalAlignment="Center" Width="1100" Text="{Binding titulo}" Grid.Column="0" />
                            <Image Source="../icons/adobeReader.png" Width="30" Height="30" Grid.Column="0" Grid.RowSpan="3" VerticalAlignment="Top" Cursor="Hand" MouseLeftButtonDown="Image_MouseLeftButtonDown" />
                        </Grid>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
      </ScrollViewer>

        <ctrl:Slides x:Name="ctrlSlide" Width="590" Height="470" VerticalAlignment="Center" HorizontalAlignment="Center" KeyDown="ctrlSlide_KeyDown"/>

        <Image x:Name="btnAnterior" Source="../icons/toleft.png" Width="30" Height="48" VerticalAlignment="Center" HorizontalAlignment="Left" Cursor="Hand" MouseLeftButtonDown="btnAnterior_MouseLeftButtonDown" Style="{StaticResource SetaNavegacao}" KeyDown="ctrlSlide_KeyDown" Visibility="Collapsed"/>
        <Image x:Name="btnProximo" Source="../icons/toright.png" Width="30" Height="48" VerticalAlignment="Center" HorizontalAlignment="Right" Cursor="Hand" MouseLeftButtonDown="btnProximo_MouseLeftButtonDown" Style="{StaticResource SetaNavegacao}" KeyDown="ctrlSlide_KeyDown" Visibility="Collapsed"/>

    </Grid>

Segue o link de como está o layout agora: http://wtrns.fr/StqM4Ihy3A2plSI

Segue também o link de como deve ficar o layout: http://wtrns.fr/UPoT8zNg2M6rgVo

É apenas um arquivo PNG para ter base.

Obrigado a todos que puderem me ajudar.

Abraço!

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.1k
    • Total Posts
      651.8k
×
×
  • Create New...