Aero theme appearing?

Ribbon for WPF Forum

Posted 12 years ago by Brad Daszynski
Version: 1.0.0345
Avatar
I have a scrollviewer style that is applied by default to all my scroll viewers in my application. However, when using the ribbon this seems to get overriden sometimes by an "aero-like" scrollviewer, presumably as defined in the ribbon code somewhere. Is there any way to get rid of that without having the source code? Thanks.

Comments (1)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Brad,

While we do have a ScrollViewer style, it should not be getting applied by default. Our sample Windows all container resources that do import it like this though:

<ContentControl x:Name="contentContainer" Grid.Row="1" Margin="7">
    <ContentControl.Resources>
        <!-- Make any scroll viewers in the content container use the custom scrollbar style -->
        <Style TargetType="ScrollViewer" BasedOn="{StaticResource {ComponentResourceKey TypeInTargetAssembly={x:Type ribbon:Ribbon},ResourceId=ScrollViewerStyle}}" />
    </ContentControl.Resources>
</ContentControl>
So if you copied one of our samples for your window, then perhaps you imported that code too.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.