<Grid HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10"> <sl:CollapsiblePanel x:Name="cpThemes" IsExpanded="True" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"> <Border x:Name="borderThemes" Background="#99072C6E" BorderThickness="1" CornerRadius="5" HorizontalAlignment="Left" VerticalAlignment="Top" Padding="5" BorderBrush="Black" > <Border.Effect> <DropShadowEffect/> </Border.Effect> <Grid> <TextBlock Text="Themes" Foreground="WhiteSmoke" FontWeight="Bold" Grid.Row="0"/> <ListBox x:Name="MyLayers" ItemsSource="{Binding Layers, ElementName=MyMap}" Margin="0,20,0,0"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox IsChecked="{Binding Visible, Mode=TwoWay}" /> <Slider Margin="-5,0,0,0" Minimum="0" Maximum="1" Width="60" Value="{Binding Opacity, Mode=TwoWay}" Height="18" /> <TextBlock Text="{Binding ID, Mode=OneWay}" Margin="5,0,0,0" /> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </Grid> </Border> </sl:CollapsiblePanel> <Image Source="Images/Layers-32.png" HorizontalAlignment="Left" VerticalAlignment="Top" Stretch="Fill" Height="40" Width="40" Margin="10"> <i:Interaction.Triggers> <i:EventTrigger EventName="MouseLeftButtonDown"> <!--<slActions:ToggleCollapseAction TargetName="cpThemes"/>--> <slActions:ToggleVisibilityAction TargetName="cpThemes"/> </i:EventTrigger> </i:Interaction.Triggers> </Image> </Grid>
<Grid> <userControls:CollapsiblePanel x:Name="MyCollapsiblePanel" IsExpanded="True"> <!-- Content here --> </userControls:CollapsiblePanel> <Image Source="Images/MyImage.png" HorizontalAlignment="Left" VerticalAlignment="Top" Stretch="Fill" Height="40" Width="40" Margin="-10"> <i:Interaction.Triggers> <i:EventTrigger EventName="MouseLeftButtonDown"> <actions:ToggleCollapseAction TargetName="MyCollapsiblePanel" /> </i:EventTrigger> </i:Interaction.Triggers> </Image> </Grid>
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.