<Application.Resources> <ControlTemplate x:Key="MediaFrameTemplate"> <Grid x:Name="MediaElementContainer"> <MediaElement x:Name="AppMediaElement" Volume="1.0" Visibility="Collapsed" AutoPlay="True" Source="/02 Beautiful.wma"/> <Grid x:Name="ClientArea"> <ContentPresenter /> </Grid> </Grid> </ControlTemplate> </Application.Resources>
ControlTemplate template = (ControlTemplate) Application.Current.Resources["MediaFrameTemplate"] ;
<Storyboard x:Key="Animation"> <ColorAnimation Storyboard.TargetName="Element" Storyboard.TargetProperty="(Ellipse.Fill).(SolidColorBrush.Color)" To="Yellow" Duration="00:00:0.25"/> </Storyboard> <!--same code as before for SelectMarkerSymbol except for Selected state--> <VisualState x:Name="Selected" Storyboard="{StaticResource Animation}">
Storyboard sb = this.LayoutRoot.Resources["Animation"] as Storyboard; ColorAnimation colorAnimation = sb.Children[0] as ColorAnimation; colorAnimation.To = Colors.Red;
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.