Skip to main content

Microsoft Silverlight

Answered Question Expander within AccordianItem with a theme Applied ;getting an err: sys.InvalidOperationException : AG_E_UNKOWN_ERRORRSS Feed

(0)

senthilvelm
senthilvelm

Member

Member

15 points

23 Posts

Expander within AccordianItem with a theme Applied ;getting an err: sys.InvalidOperationException : AG_E_UNKOWN_ERROR

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

 

Thanks
Senthil
http://dotnetcrunch.blogspot.com

senthilvelm
senthilvelm

Member

Member

15 points

23 Posts

Re: Expander within AccordianItem with a theme Applied ;getting an err: sys.InvalidOperationException : AG_E_UNKOWN_ERROR

Hi all,

 any solution for the above ?? 

Thanks
Senthil
http://dotnetcrunch.blogspot.com

Mog Liang - MSFT
Mog Lian...

Star

Star

14812 points

1,417 Posts

Answered Question

Re: Expander within AccordianItem with a theme Applied ;getting an err: sys.InvalidOperationException : AG_E_UNKOWN_ERROR

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>
 

Mog Liang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

senthilvelm
senthilvelm

Member

Member

15 points

23 Posts

Re: Expander within AccordianItem with a theme Applied ;getting an err: sys.InvalidOperationException : AG_E_UNKOWN_ERROR

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...

 

 

 

 

 

Thanks
Senthil
http://dotnetcrunch.blogspot.com

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities