Can book background be made transparent?

4 posts, 1 answers
  1. Blasty
    Blasty avatar
    15 posts
    Member since:
    Feb 2009

    Posted 16 Apr 2010 Link to this post

    I'm using .png files for my book pages, but I can't get a transparent background on the page,   Setting the background to transparent leaves me with a white background. 


    Also it seems that the book doesn't listen for property changes, trying to bind the rightpageindex to the index of say a corresponding listbox doesn't work.   Or using the MVVM pattern, and binding the rightpageindex to a property that fires notifyproperty change has no effect.  Any help on these two issues?
  2. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 19 Apr 2010 Link to this post

    Hello Blasty,

    If your RadBook is bound, you will have to set its ItemContainerStyle property.

    <telerikNavigation:RadBook>
        <telerikNavigation:RadBook.ItemContainerStyle>
            <Style TargetType="telerikNavigation:RadBookItem">
                <Setter Property="Background" Value="Transparent" />
                <Setter Property="Opacity" Value="0.5" />
            </Style>
        </telerikNavigation:RadBook.ItemContainerStyle>
    </telerikNavigation:RadBook>

    I have attached a sample project that also demonstrates how changing the SelectedIndex property of a ListBox affects the RightPageIndex of a RadBook. Also, if your scenario allows it, I'd recommend updating your binaries with our latest internal build since few issues with RadBook have been fixed.

    Let me know if I can be of further assistance.

    Regards,
    Kiril Stanoev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Blasty
    Blasty avatar
    15 posts
    Member since:
    Feb 2009

    Posted 19 Apr 2010 Link to this post

    interesting, your project works fine,and mine, not so much, gonna try to redo some of the design of my project, I think my issues may be coming from somewhere else.  I'll update this thread with my results, but your demo app worked fine.
  5. Blasty
    Blasty avatar
    15 posts
    Member since:
    Feb 2009

    Posted 22 Apr 2010 Link to this post

    that worked fine.  Seemed to be an issue with using MVVM in silverlight...not sure why at this point.
Back to Top