SilverlightShow: ClassifiedCabinet: A Quick Start Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) Re: ClassifiedCabinet: A Quick Start <p>Hi <span style="font-family: 'segoe ui', helvetica, arial, verdana, tahoma, sans-serif; font-size: 12px; line-height: 20px; background-color: #f7f7f7;">liu_meng2000,</span></p> <p><span style="font-family: 'segoe ui', helvetica, arial, verdana, tahoma, sans-serif; font-size: 12px; line-height: 20px;">If you want to use the same picture for every item in the menu (i.e. for every category), you can use the <span style="font-family: 'segoe ui', helvetica, arial, verdana, tahoma, sans-serif; font-size: 12px; line-height: 20px; background-color: #f7f7f7;">CategoriesItemContainerStyle.</span></span></p> <p><span style="font-family: 'segoe ui', helvetica, arial, verdana, tahoma, sans-serif; font-size: 12px; line-height: 20px; background-color: #f7f7f7;">If you're using blend, just edit a copy of the style and add the picture there. If not, you can always find the original style in the source code, copy it by hand, make the changes you need, apply the new style to the control (i.e. set the <span style="font-family: 'segoe ui', helvetica, arial, verdana, tahoma, sans-serif; font-size: 12px; line-height: 20px; background-color: #f7f7f7;">CategoriesItemContainerStyle property) </span>and you are good to go.</span></p> <p><span style="font-family: 'segoe ui', helvetica, arial, verdana, tahoma, sans-serif; font-size: 12px; line-height: 20px; background-color: #f7f7f7;">Cheers!</span></p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment7346 GStoyanov http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Mon, 26 Dec 2011 19:20:17 GMT Re: ClassifiedCabinet: A Quick Start <p>Hi  <span class="commentDetails" style="font-size: 13px; color: #aaaaaa; text-decoration: underline;">GStoyanov </span>, </p> <p>thanks for your infomation,but i have to trouble you again,</p> <p>i try,but can't  get it; In fact, <a href="http://img5.ph.126.net/-TrZ6wnWS0MVNn6fDq81WQ==/2482327819628432625.jpg">http://img5.ph.126.net/-TrZ6wnWS0MVNn6fDq81WQ==/2482327819628432625.jpg</a> </p> <p> this picture of  the link is my want;if you have any  examples,that's very good;</p> <p>my email : <a href="mailto:liu_meng2000@163.com">liu_meng2000@163.com</a></p> <p>thanks very much ! </p> <p> </p> <p> </p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment7334 liu_meng2000 http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Thu, 22 Dec 2011 11:31:18 GMT Re: ClassifiedCabinet: A Quick Start <p>Hi liu_meng2000,</p> <p>You can define a DataTemplate and have your image and label there and set CategoriesItemTemplate to this DataTemplate. The DataContext that you can bind to inside the DataTemplate is your category object, i.e. a member of the collection you bind CategoriesItemsSource to. If you feel you need to change the style of the label as well, you can use CategoriesItemContainerStyle or ShelfLabelStyle. The first controls the style of the separate category items to the right, and the second - the orange labels that sit on the shelves. Let me know if you need further help.</p> <p>Hope that helps</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment7311 GStoyanov http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Mon, 19 Dec 2011 10:23:46 GMT Re: ClassifiedCabinet: A Quick Start <p>hello,how to set the shelflabel style ,bind data, i want set the CategoriesItemTemplate  contains image and label</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment7309 liu_meng2000 http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Mon, 19 Dec 2011 04:39:45 GMT Re: ClassifiedCabinet: A Quick Start Thanks for the great informations http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6597 khalid.msd http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Mon, 03 Oct 2011 14:13:26 GMT Re: ClassifiedCabinet: A Quick Start <p>Hi khalid.msd,</p> <p>Sorry it took so long to reply. There is an ItemDetailsTemplate property on the ClassifiedCabinet control that is a DataTemplate used for the DetailsWindow. You can think of the DetailsWindow as a ContentControl (it actually inherits from ContentControl, but adds few more things like the window chrome, open/close functionality etc.). Its content is set to the book that is selected or clicked; its ContentTemplate is the value of the ItemDetailsTemplate property. If you need more flexibility, like say changing the chrome, you can use the DetailsWindowStyle property.</p> <p><br /> </p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6590 GStoyanov http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Fri, 30 Sep 2011 10:21:28 GMT Re: ClassifiedCabinet: A Quick Start <p>Hi  <span class="commentDetails" style="text-decoration: underline;">GStoyanov </span>,</p> <p>Sorry to trouble you again , but it is driving me crazy , I added a store procedure to retrieve more information about the book in the book detail view. I mapped it to a function and I added WebGet method to BookCategoriesDataService.svc , the service working fine from the web browser by accessing it as given below http://localhost:49692/BookCategoriesDataService.svc/GetTableColumn?TableObjectId='271069455084' now how can I display this information in a grid in a bookview detail.</p> <p> </p> <p>Thanks </p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6533 khalid.msd http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Sun, 18 Sep 2011 14:24:45 GMT Re: ClassifiedCabinet: A Quick Start <p>You're welcome! I'm glad I was able to help</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6497 GStoyanov http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Wed, 07 Sep 2011 16:46:31 GMT Re: ClassifiedCabinet: A Quick Start <p>awesome , It works like a charm. Great works keep it up.</p> <p>Thanks ,  </p> <p> </p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6494 khalid.msd http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Wed, 07 Sep 2011 14:36:19 GMT Re: ClassifiedCabinet: A Quick Start <p>Hi khalid.msd,</p> <p>Thanks for your feedback. I have just uploaded a new version of the ClassifiedCabinet control to <a href="http://classifiedcabinet.codeplex.com/releases/view/61623" target="_blank" re_target="_blank">Codeplex</a>. It will now add the scrollbar automatically if the content of the categories list doesn’t fit. You should be fine just using the new version.</p> <p>Alternatively, if you want to add this behavior yourself or if you want to change something about the scrollbar, you have to edit the CategoriesList template. If you’re using Blend, you can right-click on the ClassifiedCabinet control and choose “Edit Template” -> “Edit a Copy…”. Then in this template you should find the CategoriesList control and do the same operation for it. Now you can edit the CategoriesList or its scrollbars in any way you want.</p> <p>Hope this helps</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6481 GStoyanov http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Wed, 07 Sep 2011 14:05:38 GMT Re: ClassifiedCabinet: A Quick Start it is a great works , How can we have the category scroll , we have a long list of categories.<br /> <br /> Thanks, http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6472 khalid.msd http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Sun, 04 Sep 2011 13:11:55 GMT Re: ClassifiedCabinet: A Quick Start <p>Hi arkgroup,</p> <p>What is it about these links that you find difficult? Are you having problems with the xaml or the C# part? Try asking a specific question and I'll try to help. I'm not sure if I'll have the time to change the sample just now.</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6315 GStoyanov http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Wed, 29 Jun 2011 19:21:49 GMT Re: ClassifiedCabinet: A Quick Start <p>Hi Georgi,</p> <p>I downloaded code from codeplex, but still cannot figure out how to add links. Would be possible to modify above sample to include url property? I'll appreciate your help.</p> <p>Thank you very much.</p> <p> </p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6314 arkgroup http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Wed, 29 Jun 2011 14:18:49 GMT Re: ClassifiedCabinet: A Quick Start <p>Hi Manav Kumar,</p> <p>thanks for your feedback. I'm glad you like the control :)</p> <p>There is some problem with the link, but you should be able to download the sample if you are already logged in. We will fix it as soon as possible.</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6310 GStoyanov http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Mon, 27 Jun 2011 17:28:15 GMT Re: ClassifiedCabinet: A Quick Start thanks bro i got .....  http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6309 ManavKumar http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Mon, 27 Jun 2011 14:43:20 GMT Re: ClassifiedCabinet: A Quick Start <p>HI <span class="commentDetails"> <a href="http://www.silverlightshow.net/Profile/GStoyanov.aspx" id="ctl00_cphMiddle_cphContent_modules_articles_article_ascx1_itemComments_dlstComments_ctl14_hlnkCommentAuthor">GStoyanov</a></span> i m new in silverlight Classified cabinet is amazing. </p> <p>i developed a demo project but not able bind data. i tried sample code of codeplex but its very complicated.</p> <p>thn i tried to download your sample code, but i m not able to download it. can u please send me sample code on email id manaveyes@gmail.com </p> <p>thanks</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6308 ManavKumar http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Mon, 27 Jun 2011 14:40:29 GMT Re: ClassifiedCabinet: A Quick Start <p>@arkgroup</p> <p>Basically, you have to add some url property to you 'Book' object - the one you use as the DataContext of this window. Then you should add a HyperlinkButton element to the xaml of the window's DataTemplate and bind its NavigateUri to your property - NavigateUri="{Binding NameOfUrlProperty}".</p> <p>If you are looking at the sample at <a href="http://classifiedcabinet.codeplex.com/">http://classifiedcabinet.codeplex.com/</a>, than the object that serves as a DataContext to the window is the Book class and it already has a TitleUrl property of type string, which you can use as the link. We initially had an example of adding link in the sample - that's why the property is already there. All you have to do is open BookDetailsView.xaml and add an appropriate HyperlinkButton element somewhere in the "LayoutRoot" Grid element (depending on where you actually want the link displayed). For example:</p> <div class="reCodeBlock" style="border:1px solid #7f9db9;overflow-y: auto;"> <div style="background-color: #ffffff;"><span style="margin-left: 0px !important;"><code style="color: #000000;"><</code><code style="color: #006699; font-weight: bold;">HyperlinkButton</code> <code style="color: #808080;">Style</code><code style="color: #000000;">=</code><code style="color: blue;">"{StaticResource NormalHyperlinkButtonStyle}"</code></span></div> <div style="background-color: #f8f8f8;"><span><code>    </code><span style="margin-left: 12px !important;"><code style="color: #808080;">Foreground</code><code style="color: #000000;">=</code><code style="color: blue;">"{StaticResource DarkBlueTextBrush}"</code></span></span></div> <div style="background-color: #ffffff;"><span><code>    </code><span style="margin-left: 12px !important;"><code style="color: #808080;">FontStyle</code><code style="color: #000000;">=</code><code style="color: blue;">"Italic"</code></span></span></div> <div style="background-color: #f8f8f8;"><span><code>    </code><span style="margin-left: 12px !important;"><code style="color: #808080;">NavigateUri</code><code style="color: #000000;">=</code><code style="color: blue;">"{Binding TitleUrl}"</code></span></span></div> <div style="background-color: #ffffff;"><span><code>    </code><span style="margin-left: 12px !important;"><code style="color: #808080;">Content</code><code style="color: #000000;">=</code><code style="color: blue;">"some appropriate content"</code> <code style="color: #000000;">/></code></span></span></div> </div> <p>I hope this helps!</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6305 GStoyanov http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Fri, 24 Jun 2011 10:25:37 GMT Re: ClassifiedCabinet: A Quick Start <p>When you click on book image showing on shelf, you open new window with book Description, Title, Author, PublishDate that stored in book class. I need to add link to that class and show this link in that window. When user click on link it will open new browser. </p> <p>Thanks</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6302 arkgroup http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Thu, 23 Jun 2011 14:28:36 GMT Re: ClassifiedCabinet: A Quick Start <p>@arkgroup</p> <p>I'm not sure I understand. Could you explain a bit more what you are trying to accomplish? Where do you want to add the link? Could you perhaps give me an example?</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6301 GStoyanov http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Thu, 23 Jun 2011 11:36:48 GMT Re: ClassifiedCabinet: A Quick Start <p>I need to add link for every book and show it with Detail popup window. How can I do that? </p> <p>Thanks</p> <p> </p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6299 arkgroup http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Wed, 22 Jun 2011 20:56:14 GMT RE: ClassifiedCabinet: A Quick Start <p>I also could be pursuing a WP7 app ... I see a basic scenario where the WP7 devices feeds a PC shelf but keeps a small repository "TO AVOID BUYIG AGAIN THE SAME BOOK YOU ALREADY HAVE".</p> <p>I put more enphasis on how to use barcoding and ISBN web services to get basic data in than how to show it.</p> <p>Flavio</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment6200 Flavio http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Wed, 25 May 2011 17:48:06 GMT RE: ClassifiedCabinet: A Quick Start <p>@David, the classified cabinet is much more targeted solution and you have more control over the way items are generated, the way user browse through the items, the details view can be completely styled, etc.</p> <p>@Shawn, yes, WP7 version is on its way, but keep that secret :-) I would love to hear your feedback on this - what scenarios do you target on WP7?</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment5677 emil http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Thu, 10 Mar 2011 09:17:33 GMT RE: ClassifiedCabinet: A Quick Start Any plans for a WP7 version?  http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment5676 Shawn Wildermuth http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Thu, 10 Mar 2011 01:20:18 GMT RE: ClassifiedCabinet: A Quick Start <p>Hi,</p> <p>Have you ever heard about Microsoft PivotViewer?</p> <p>David</p> http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx#comment5652 David http://www.silverlightshow.net/items/ClassifiedCabinet-A-Quick-Start.aspx Mon, 07 Mar 2011 09:13:32 GMT