Skip to main content

Microsoft Silverlight

Answered Question Theme hide the listbox items in silverlight 3RSS Feed

(0)

mehtapratik
mehtapratik

Member

Member

269 points

302 Posts

Theme hide the listbox items in silverlight 3

Hi all,

       I just upgrade my application to silverlight 3 and I am facing following issue.

     here is my listbox.

      <ListBox x:Name="lboxCity" Height="300">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Border Cursor="hand">
                                <TextBlock Text="{Binding City}"></TextBlock>
                            </Border>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox> 

      and I am applying themes with the following code.

    Uri uri = new Uri(item.ThemeXamlPath, UriKind.Relative);
    ImplicitStyleManager.SetResourceDictionaryUri(this, uri);
    ImplicitStyleManager.SetApplyMode(this, ImplicitStylesApplyMode.Auto);
    ImplicitStyleManager.Apply(this); 

    All the controls styles properly but in listbox items are not displayed... any suggestions..

 

thanks

     

Pratik Mehta
Espirit Softwares Pvt. Ltd.
India.

mehtapratik
mehtapratik

Member

Member

269 points

302 Posts

Re: Theme hide the listbox items in silverlight 3

any idea ?

Pratik Mehta
Espirit Softwares Pvt. Ltd.
India.

jahusain
jahusain

Member

Member

342 points

52 Posts

Answered Question

Re: Theme hide the listbox items in silverlight 3

This is caused by a bug in the public version of Silverlight 3.  This issue will be fixed when the final version is released.

mehtapratik
mehtapratik

Member

Member

269 points

302 Posts

Re: Re: Theme hide the listbox items in silverlight 3

 Hi jahusain,

 

        Thanks for the information, do you know any temporary solution for this?

 

Thanks

Pratik Mehta
Espirit Softwares Pvt. Ltd.
India.

mehtapratik
mehtapratik

Member

Member

269 points

302 Posts

Re: Re: Re: Theme hide the listbox items in silverlight 3

Any idea?

Pratik Mehta
Espirit Softwares Pvt. Ltd.
India.

jahusain
jahusain

Member

Member

342 points

52 Posts

Re: Re: Re: Theme hide the listbox items in silverlight 3

I'm afraid you'll have to wait for the official release of Silverlight 3 to style items controls.  ZD.NET claims that Silverlight 3 will be released July 10th.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities