Hey i have made a standard sample to work with your problem..you are binding your flipview Itemssource to Images ( collection of strings i think in your case ..) so first make a ObservableCollection named Images..like this.in your page.cs( or in your view model if you are using in that case you have to send message to your viewmodel.) like this..
public ObservableCollection<string> Images { get; set; }
in your page constructor do this..
public BasicPage1()
{
this.InitializeComponent();
Images = new ObservableCollection<string>();
this.DataContext = this;
}
and when you navigate to this page just add string url to your collection it will automatically update your flipview..i have taken a predefined string(i think it's fine)
protected override void OnNavigatedTo(NavigationEventArgs e)
{
//XDocument xdoc = XDocument.Load("XMLFile1.xml");
//IEnumerable<flipimage> images = from img in xdoc.Descendants("Image") select new flipimage(img.Element("ImageTitle").Value, img.Element("ImageUrl").Value);
string url = "/Assets/teacher-symbol.png";
Images.Add(url);
Images.Add(url);
Images.Add(url);
Images.Add(url);
Images.Add(url);
Images.Add(url);
// flipviewcontrol.Items.Add(url);
//flipviewcontrol.DataContext = images;
}
now change your flipview control like this..
<FlipView HorizontalAlignment="Left" VerticalAlignment="Top" x:Name="flipviewcontrol" ItemsSource="{Binding Images}" Grid.Row="1">
<FlipView.ItemTemplate>
<DataTemplate>
<Image HorizontalAlignment="Left" Source="{Binding}" Height="762" VerticalAlignment="Top" Width="1360" x:Name="imagecontrol"/>
</DataTemplate>
</FlipView.ItemTemplate>
</FlipView>
hope this help..for any query comment below..
for your query..you have to do this..for your other images..
private void flipviewcontrol_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
string url = "/Assets/usericondash.png";
Images.Add(url);
}