This is a migrated thread and some comments may be shown as answers.

MinimizedContent

3 Answers 68 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 19 Jan 2010, 04:46 PM
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?


3 Answers, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 1
answered on 19 Jan 2010, 05:16 PM
I applied the theme windows 7 and it worked i restarted and now it'snt working anymore.
0
Dimitrina
Telerik team
answered on 22 Jan 2010, 09:25 AM
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.
0
Joe
Top achievements
Rank 1
answered on 22 Jan 2010, 12:25 PM
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
Tags
OutlookBar
Asked by
Joe
Top achievements
Rank 1
Answers by
Joe
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or