Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Expander within AccordianItem with a theme Applied ;getting an err: sys.InvalidOperationException : AG_E_UNKOWN_ERROR
3 replies. Latest Post by senthilvelm on July 7, 2009.
(0)
senthilvelm
Member
15 points
23 Posts
06-24-2009 11:34 AM |
Hi,
Getting this error in one of my XAML where we have Enpander under an Accordian Item and when Themes is applied.
err: sys.InvalidOperationException : AG_E_UNKOWN_ERROR
we are making the Accordian Item to be visible in the load.
But when i comment out the accordian Item AccordianContainer.Visibility = Visibility.Visible; this error does not come.
Also when Apply theme Lines are commented out this error does not occur.
Is there any limitation when we use Themes + Expander under an AccordianItem ??
Can any one pls let know
06-24-2009 9:23 PM |
Hi all,
any solution for the above ??
Mog Lian...
All-Star
15884 points
1,541 Posts
06-29-2009 11:30 PM |
There should be working with combination of Themes + expander + AccordianItem
I use silverlight3, works correctly, no error message. here is my test xaml
<UserControl xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" x:Class="theme_test1.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:layout="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit" xmlns:theming="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.Toolkit" Width="400" Height="300"> <Grid x:Name="LayoutRoot" theming:ImplicitStyleManager.ResourceDictionaryUri="themes/RainierPurple.xaml" theming:ImplicitStyleManager.ApplyMode="Auto"> <layout:Accordion> <layout:AccordionItem> <Button FontSize="32" Content="hello,world"/> </layout:AccordionItem> <layout:AccordionItem> <controls:Expander Height="100"> <Button FontSize="32" Content="hello,world2"/> </controls:Expander> </layout:AccordionItem> </layout:Accordion> </Grid> </UserControl>
07-07-2009 10:53 AM |
Hi ,
My issue is resolved !
i am using Silverlight 2.0
i made the expander Visibility="Collapsed" and then in code behind made the visibility of the expanders...