Show tags regardingly to picture in tooltips

Developer
May 5, 2010 at 9:18 AM
I want to show tags regardingly to pictures in tooltips. For each item in a query it creats an image control with the depen. property Tooltip. I allways get empty private void LoadPictures() { _canvas.Children.Clear(); var query = from ph in context.Photos where ph.ViewMode == ViewMode.Public && ph.PhotoSize == PhotoSize.Original && ph.SearchMode == SearchMode.TagsOnly && ph.SearchText == "animals, architecture, art, asia, australia, autumn, baby" orderby PhotoOrder.Interestingness descending select ph; foreach (var item in query.Take(20)) { try { Picture p = new Picture(); string toolTipText = ""; //PhotoTags auslesen! foreach (string i in item.Tags) { toolTipText += i.ToString() + " "; } p.ToolTip = toolTipText; p.ImagePath = item.Url; _canvas.Children.Add(p); } catch (Exception ex) { System.Diagnostics.Trace.WriteLine("Error:" + ex.Message); } } }
Coordinator
May 7, 2010 at 2:48 AM

I really wish I could help, but I'm blocked up on time.  If this question is open in another 6-8 weeks, I can take a look then.