MinimizedContent

4 posts, 0 answers
  1. Joe
    Joe avatar
    15 posts
    Member since:
    May 2009

    Posted 19 Jan 2010 Link to this post

    I wasn't able to reproduce the example at http://demos.telerik.com/silverlight/#OutlookBar/Icons.
    At the bottom the content only appears sometimes!
    Here is my code:
    RadOutlookBarItem newItem = new RadOutlookBarItem(); 
    newItem.Icon = new BitmapImage(new Uri("Icons/module.png")); 
    newItem.SmallIcon = new BitmapImage(new Uri("ClientBin/Icons/module.png")); 
    newItem.Header = item.Label; 
    newItem.MinimizedContent = new TextBlock() { Text = item.Label }; 
     

    Am i doing something wrong?


  2. Joe
    Joe avatar
    15 posts
    Member since:
    May 2009

    Posted 19 Jan 2010 Link to this post

    I applied the theme windows 7 and it worked i restarted and now it'snt working anymore.
  3. DevCraft banner
  4. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 22 Jan 2010 Link to this post

    Hi Joe,

    At first glance it appears that you are not doing anything wrong. I am shooting in the dark but one possible cause might be the line:

    newItem.SmallIcon = new BitmapImage(new Uri("ClientBin/Icons/module.png"));

    Try modifying it so it becomes something like:

    newItem.SmallIcon = new BitmapImage(new Uri("Icons/module.png", UriKind.RelativeOrAbsolute));

    If this does not help, could you please give us more info so we can better determine what is causing the problem. Meanwhile, you can take a look at the attached sample project for further reference. Have a look at it and if you have additional questions let us know.

    Regards,
    Dimitrina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Joe
    Joe avatar
    15 posts
    Member since:
    May 2009

    Posted 22 Jan 2010 Link to this post

    Thanks for the reply.
    This wasn't working because i had this in my xaml:

    <telerikNavigation:RadOutlookBar.Clip> 
      <RectangleGeometry x:Name="MenuContainerClip"></RectangleGeometry> 
    </telerikNavigation:RadOutlookBar.Clip> 

    I thing it was that, anyway it's working. :D
Back to Top