Quantcast
Viewing all articles
Browse latest Browse all 18858

Adding items to Expander in run-time

Hi all of you,

I'd need to add programatically using ado .net one expander control

<ScrollViewer VerticalScrollBarVisibility="AUTO" Margin="-267,118,193,-63"><StackPanel Orientation="Vertical"><Expander Header="Documental" BorderThickness="3" BorderBrush="#FF99B4D1"  FontFamily="Trebuchet MS" FontStyle="Normal"
            		Background="#FF99B4D1" Foreground="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" FontSize="14"><StackPanel ><Label Content="Diagramas"  Foreground="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"  HorizontalAlignment="Center"
                               Cursor="Hand" /><Label Content="Tarjetas de vehiculos" Foreground="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"  HorizontalAlignment="Center"
                               Cursor="Hand"/><Label Content="Imágenes"  Foreground="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"  HorizontalAlignment="Center"
                               Cursor="Hand"/><Label Content="ITV" Foreground="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"  HorizontalAlignment="Center"
                               Cursor="Hand"/></StackPanel></Expander><Expander Header="Historico de actividad"  BorderThickness="5" BorderBrush="#FF99B4D1" 
                	Background="#FF99B4D1" Foreground="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" FontSize="14"><StackPanel><Label Content="Operarios" Foreground="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" HorizontalAlignment="Center"
                			Cursor="Hand" /><Label Content="Cambios" Foreground="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" HorizontalAlignment="Center"
                			Cursor="Hand"/></StackPanel></Expander></StackPanel></ScrollViewer>

Any hint on that would be very appreciated!


Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF and SilverLight stuff


Viewing all articles
Browse latest Browse all 18858

Trending Articles