none
Barras de rolagem com XAML RRS feed

  • Pergunta

  • Olá pessoal, a situação é a seguinte, eu tenho a seguinte tela:

    <Grid x:Name="LayoutRoot" Background="Transparent">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Text="..:: Entidades" Style="{StaticResource ViewTitle}" />
            <StackPanel Grid.Row="1" Grid.Column="0" x:Name="stkView">
    
            </StackPanel>
            <StackPanel Grid.Row="2" Grid.Column="0" x:Name="stkViewCollection">
                <Grid Background="Transparent">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <StackPanel Grid.Row="1" Grid.Column="0" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Visible">
                        <sdk:DataGrid x:Name="dtViewCollection" AutoGenerateColumns="True" ItemsSource="{Binding Path=ENTIDADES}" />
                    </StackPanel>
                </Grid>
            </StackPanel>
        </Grid>

    O problema é que as barras de rolagem não aparecem.

    A hora que eu jogo os dados para o DataGrid.

    Alguma idéia?

    Att,

    Jefferson.

    sexta-feira, 26 de outubro de 2012 03:53

Todas as Respostas

  • Boa Tarde Jefferson,

    O seu xaml está legal. Só está faltando um detalhe: ScrollViewer é um componente e para ele funcionar, você vai precisar colocar o StackPanel dentro dele. Assim:

    <ScrollViewer Grid.Row="1" Grid.Column="0">
        <StackPanel ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Visible">
            <sdk:DataGrid x:Name="dtViewCollection" AutoGenerateColumns="True" ItemsSource="{Binding Path=ENTIDADES}" />
        </StackPanel>
    </ScrollViewer>


    Samuel Fabel

    terça-feira, 30 de outubro de 2012 15:02
  • Entaum cara...

    Código eu testei... Apareceu o scroll, porém não resultou no comportamento esperado.

    A barra de rolagem ficou sem a "seta" de baixo e o grid continuou excedendo o limite de espaço dele...

    O que eu quero que aconteça, é que os scrolls DO GRID apareçam... Quando vc fixa o tamanho do grid e ele excede este tamanho, elas aparecem.

    EU PENSEI em usar a propriedade MAXHEIGHT do Grid, sendo bindado pelo ACTUALHEIGHT da linha... Mas também não deu muito certo...

    Obrigado pela força!

    terça-feira, 30 de outubro de 2012 15:33
  • Jefferson,

    Poderia explicar melhor a função do grid dentro do StackPanel stkViewCollection e qual é a função deste StackPanel?


    Samuel Fabel

    terça-feira, 30 de outubro de 2012 16:01
  • Jefferson,

    Não sei se entendi direito o que você precisa fazer nesse componente, mas supondo que seja somente para carregar o grid, e colocar algum(s) componente no stkView, eu fiz umas alterações:

        <Grid x:Name="LayoutRoot" Background="Transparent">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Text="..:: Entidades" Style="{StaticResource ViewTitle}" />
            <StackPanel Grid.Row="1" x:Name="stkView">
    
            </StackPanel>
            <ScrollViewer Grid.Row="2">
                <StackPanel ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Visible">
                    <sdk:DataGrid x:Name="dtViewCollection2" AutoGenerateColumns="True" ItemsSource="{Binding Path=ENTIDADES}" />
                </StackPanel>
            </ScrollViewer>
        </Grid>

    Espero que ajude,

    Atenciosamente,


    Samuel Fabel


    • Editado Samuel Fabel terça-feira, 30 de outubro de 2012 16:24
    terça-feira, 30 de outubro de 2012 16:24
  • Não rolou...

    rs...

    Acho que agora com o código completo da tela, ficará mais fácil... O que acontece... eu não preciso dos StackPanels... Quero usar os Scrolls do próprio componente DataGrid... Mas o que eu notei é que ele não está conseguindo "saber" que o tamanho máximo que ele tem pra "crescer" é o tamanho da linha que o contém, daí as linhas são adicionadas no DataGrid, mas ele cresce acima do limite da linha e corta...

    <UserControl x:Class="SilverlightApplication.Views.Entidades.EntidadeView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600" Background="Transparent" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">
        <Grid x:Name="LayoutRoot" Background="Transparent">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid Grid.Row="0" Grid.Column="0" Background="Transparent">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="..:: Entidades" Style="{StaticResource ViewTitle}" />
                <Button Grid.Row="0" Grid.Column="1" Style="{StaticResource FormButtonCommands}" Visibility="{Binding Path=ButtonNewVisibility}" Content="Novo" Command="{Binding Path=ButtonNewCommand}" />
                <Button Grid.Row="0" Grid.Column="2" Style="{StaticResource FormButtonCommands}" Visibility="{Binding Path=ButtonSaveVisibility}" Content="Salvar" Command="{Binding Path=ButtonSaveCommand}" />
                <Button Grid.Row="0" Grid.Column="3" Style="{StaticResource FormButtonCommands}" Visibility="{Binding Path=ButtonClearVisibility}" Content="Limpar" Command="{Binding Path=ButtonClearCommand}" />
                <Button Grid.Row="0" Grid.Column="4" Style="{StaticResource FormButtonCommands}" Visibility="{Binding Path=ButtonBackVisibility}" Content="Voltar" Command="{Binding Path=ButtonBackCommand}" />
            </Grid>
            <Grid Grid.Row="1" Grid.Column="0" Background="Transparent" VerticalAlignment="Stretch" Visibility="{Binding Path=ViewFormVisibility}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <!--Labels-->
                <TextBlock Grid.Row="0" Grid.Column="0" Style="{StaticResource FormLabel}" Text="Matrícula:" />
                <TextBlock Grid.Row="1" Grid.Column="0" Style="{StaticResource FormLabel}" Text="CNPJ:" />
                <TextBlock Grid.Row="2" Grid.Column="0" Style="{StaticResource FormLabel}" Text="Nome Fantasia:" />
                <TextBlock Grid.Row="3" Grid.Column="0" Style="{StaticResource FormLabel}" Text="Razão Social:" />
                <TextBlock Grid.Row="4" Grid.Column="0" Style="{StaticResource FormLabel}" Text="Inscrição Estadual:" />
                <TextBlock Grid.Row="5" Grid.Column="0" Style="{StaticResource FormLabel}" Text="Data de Fundação:" />
                <!--Campos-->
                <TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="3" Style="{StaticResource FormField}" Text="{Binding Path=ENTIDADE.MATRICULA, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}" />
                <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="6" Style="{StaticResource FormField}" Text="{Binding Path=ENTIDADE.CNPJ, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" />
                <TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="12" Style="{StaticResource FormField}" Text="{Binding Path=ENTIDADE.NOME_FANTASIA, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}" />
                <TextBox Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="12" Style="{StaticResource FormField}" Text="{Binding Path=ENTIDADE.RAZAO_SOCIAL, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}" />
                <TextBox Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="6" Style="{StaticResource FormField}" Text="{Binding Path=ENTIDADE.IE, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}" />
                <sdk:DatePicker Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="6" Margin="5" DisplayDateEnd="{Binding Path=DisplayDateEndBinding}" SelectedDate="{Binding Path=ENTIDADE.DATA_FUNDACAO, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}" />
                <!--Expander: Endereços-->
                <toolkit:Expander Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="100" HorizontalAlignment="Stretch" VerticalAlignment="Top" Header="..:: Endereços" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}">
                    <Grid Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto">
                    </Grid>
                </toolkit:Expander>
                <!--Expander: Telefones-->
                <toolkit:Expander Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="100" HorizontalAlignment="Stretch" VerticalAlignment="Top" Header="..:: Telefones" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}">
                    <Grid Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto">
                    </Grid>
                </toolkit:Expander>
                <!--Expander: E-Mails-->
                <toolkit:Expander Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="100" HorizontalAlignment="Stretch" VerticalAlignment="Top" Header="..:: E-Mails" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}">
                    <Grid Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto">
                    </Grid>
                </toolkit:Expander>
                <!--Botões Adicionais-->
                <Button Grid.Row="1" Grid.Column="7" Grid.ColumnSpan="4" Style="{StaticResource FormButton}" Content="Validar" Command="{Binding Path=ValidarCNJPCommand}" />
            </Grid>
            <sdk:DataGrid Grid.Row="2" Grid.Column="0" AutoGenerateColumns="True" Visibility="{Binding Path=ViewCollectionVisibility}" ItemsSource="{Binding Path=ENTIDADES}">
            </sdk:DataGrid>
        </Grid>
    </UserControl>



    • Editado Jefferson Balivo quarta-feira, 31 de outubro de 2012 00:39 Alteração no código
    quarta-feira, 31 de outubro de 2012 00:14
  • Bom Dia Jefferson,

    Me desculpe em demorar a responder. Me corrija se eu estiver errado. Você quer que o DataGrid no final, quando chamar ao máximo da tela, apareça o scroll do DataGrid?

    Se for isto, a alteração é simples:

    No grid LayoutRoot, na parte de RowDefinitions, a última linha remova a propriedade Height ou atribua o valor *. Isso vai fazer com que o Grid mantem o tamanho na tela.

    Espero que ajude,

    Atenciosamente,


    Samuel Fabel

    quarta-feira, 31 de outubro de 2012 12:00
  • Olá Samuel, boa noite!

    Cara... Fiz a alteração que vc mencionou e nada...

    SE eu defino a altura do DataGrid final na mão... A fulana da barra aparece... rs...

    Toh quase sendo obrigado a fazer um evento pra manipular esse tamanho do DataGrid...

    Poxa mas ae vai ficar akela coisa estranha de tudo em MVVM e só isso por fora... rs...

    Tenso....

    quarta-feira, 31 de outubro de 2012 21:48
  • Oi Jefferson,

    Muito estranho não ter funcionado. Eu copiei seu código duas vezes e coloquei alguns dados (100) no data grid e o scroll apareceu normalmente e não quebrou a página. Até coloquei alguns itens nos emails, telefones e endereços, para ver o grid redimencionando.

    Segue o código:

    <UserControl x:Class="SilverlightApplication2.SilverlightControl1"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600" Background="Transparent" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">
        <Grid x:Name="LayoutRoot" Background="Transparent" Loaded="LayoutRoot_Loaded">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Grid Grid.Row="0" Grid.Column="0" Background="Transparent">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="..:: Entidades" Style="{StaticResource ViewTitle}" />
                <Button Grid.Row="0" Grid.Column="1" Style="{StaticResource FormButtonCommands}" Visibility="{Binding Path=ButtonNewVisibility}" Content="Novo" Command="{Binding Path=ButtonNewCommand}" />
                <Button Grid.Row="0" Grid.Column="2" Style="{StaticResource FormButtonCommands}" Visibility="{Binding Path=ButtonSaveVisibility}" Content="Salvar" Command="{Binding Path=ButtonSaveCommand}" />
                <Button Grid.Row="0" Grid.Column="3" Style="{StaticResource FormButtonCommands}" Visibility="{Binding Path=ButtonClearVisibility}" Content="Limpar" Command="{Binding Path=ButtonClearCommand}" />
                <Button Grid.Row="0" Grid.Column="4" Style="{StaticResource FormButtonCommands}" Visibility="{Binding Path=ButtonBackVisibility}" Content="Voltar" Command="{Binding Path=ButtonBackCommand}" />
            </Grid>
            <Grid Grid.Row="1" Grid.Column="0" Background="Transparent" VerticalAlignment="Stretch" Visibility="{Binding Path=ViewFormVisibility}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="150" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="25" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <!--Labels-->
                <TextBlock Grid.Row="0" Grid.Column="0" Style="{StaticResource FormLabel}" Text="Matrícula:" />
                <TextBlock Grid.Row="1" Grid.Column="0" Style="{StaticResource FormLabel}" Text="CNPJ:" />
                <TextBlock Grid.Row="2" Grid.Column="0" Style="{StaticResource FormLabel}" Text="Nome Fantasia:" />
                <TextBlock Grid.Row="3" Grid.Column="0" Style="{StaticResource FormLabel}" Text="Razão Social:" />
                <TextBlock Grid.Row="4" Grid.Column="0" Style="{StaticResource FormLabel}" Text="Inscrição Estadual:" />
                <TextBlock Grid.Row="5" Grid.Column="0" Style="{StaticResource FormLabel}" Text="Data de Fundação:" />
                <!--Campos-->
                <TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="3" Style="{StaticResource FormField}" Text="{Binding Path=ENTIDADE.MATRICULA, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}" />
                <TextBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="6" Style="{StaticResource FormField}" Text="{Binding Path=ENTIDADE.CNPJ, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" />
                <TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="12" Style="{StaticResource FormField}" Text="{Binding Path=ENTIDADE.NOME_FANTASIA, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}" />
                <TextBox Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="12" Style="{StaticResource FormField}" Text="{Binding Path=ENTIDADE.RAZAO_SOCIAL, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}" />
                <TextBox Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="6" Style="{StaticResource FormField}" Text="{Binding Path=ENTIDADE.IE, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}" />
                <sdk:DatePicker Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="6" Margin="5" DisplayDateEnd="{Binding Path=DisplayDateEndBinding}" SelectedDate="{Binding Path=ENTIDADE.DATA_FUNDACAO, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnExceptions=true, NotifyOnValidationError=true}" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}" />
                <!--Expander: Endereços-->
                <toolkit:Expander Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="100" HorizontalAlignment="Stretch" VerticalAlignment="Top" Header="..:: Endereços" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}">
                    <Grid Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                        </Grid.RowDefinitions>
                        <TextBlock Text="Endereço 1" Grid.Row="0" />
                        <TextBlock Text="Endereço 2" Grid.Row="1" />
                        <TextBlock Text="Endereço 3" Grid.Row="2" />
                        <TextBlock Text="Endereço 4" Grid.Row="3" />
                        <TextBlock Text="Endereço 5" Grid.Row="4" />
                    </Grid>
                </toolkit:Expander>
                <!--Expander: Telefones-->
                <toolkit:Expander Grid.Row="7" Grid.Column="0" Grid.ColumnSpan="100" HorizontalAlignment="Stretch" VerticalAlignment="Top" Header="..:: Telefones" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}">
                    <Grid Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                        </Grid.RowDefinitions>
                        <TextBlock Text="Telefone 1" Grid.Row="0" />
                        <TextBlock Text="Telefone 2" Grid.Row="1" />
                        <TextBlock Text="Telefone 3" Grid.Row="2" />
                        <TextBlock Text="Telefone 4" Grid.Row="3" />
                        <TextBlock Text="Telefone 5" Grid.Row="4" />
                    </Grid>
                </toolkit:Expander>
                <!--Expander: E-Mails-->
                <toolkit:Expander Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="100" HorizontalAlignment="Stretch" VerticalAlignment="Top" Header="..:: E-Mails" IsEnabled="{Binding Path=IsValidarCNJPCommandExecuted}">
                    <Grid Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="auto"/>
                        </Grid.RowDefinitions>
                        <TextBlock Text="Email 1" Grid.Row="0" />
                        <TextBlock Text="Email 2" Grid.Row="1" />
                        <TextBlock Text="Email 3" Grid.Row="2" />
                        <TextBlock Text="Email 4" Grid.Row="3" />
                        <TextBlock Text="Email 5" Grid.Row="4" />
                    </Grid>
                </toolkit:Expander>
                <!--Botões Adicionais-->
                <Button Grid.Row="1" Grid.Column="7" Grid.ColumnSpan="4" Style="{StaticResource FormButton}" Content="Validar" Command="{Binding Path=ValidarCNJPCommand}" />
            </Grid>
            <sdk:DataGrid Grid.Row="2" Grid.Column="0" AutoGenerateColumns="True" Visibility="{Binding Path=ViewCollectionVisibility}" ItemsSource="{Binding Path=ENTIDADES}">
            </sdk:DataGrid>
        </Grid>
    </UserControl>


    Samuel Fabel

    quarta-feira, 31 de outubro de 2012 23:05