private void ClearVideoSymbol(Graphic graphic)
{
Grid videoGrid = FindName("MediaGrid") as Grid;
if (videoGrid.Children != null && videoGrid.Children.Count > 0)
{
MediaElement m = videoGrid.Children.ElementAt(0) as MediaElement;
if (m != null)
{
m.MediaEnded -= State_Media_MediaEnded;
m.Stop();
}
videoGrid.Children.Clear();
}
graphic.Symbol = LayoutRoot.Resources["TransparentFillSymbol"] as Symbol;
_lastActiveGraphics.Remove(graphic);
}