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

failed to create a sytem.windows. style. from text to none

0 Answers 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
kumar p
Top achievements
Rank 1
kumar p asked on 26 May 2010, 11:56 AM

hi ,

  i am getting an  exception not able to figure it  out.

for the expand and collapse button  in data grid

if (row.DetailsVisibility == Visibility.Visible)

{

row.DetailsVisibility = Visibility.Collapsed;

} else

{

row.DetailsVisibility = Visibility.Visible;

// here i am getting an exception.

}

 failed  to create a sytem.windows. style.  from text  to none

 xaml code

 

   <Button x:Name="btn"  
   Click="Expand3_Click"    >
    <Image  x:Name="img1" Source="Images/a1.jpg" Stretch="None" />
       </Button> 

any  help  would be greatly appreciated.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
kumar p
Top achievements
Rank 1
Share this question
or