Small Bug w/ Syntax Editor + Themes

SyntaxEditor for WPF Forum

Posted 12 years ago by SledgeHammer01
Version: 9.2.0515
Platform: .NET 4.0
Environment: Windows XP (32-bit)
I have a pop up window which utilizes the syntax editor. Its a ribbon window with a syntax editor. Naturally, I want the syntax editor style to match the ribbon window, so I used the scroll bar ribbon style.

One small glitch, this style doesn't cover the lower right hand filler rectangle. That remains gray and sticks out like a sore thumb.

Any chance of sneaking this into 2010.1? :)

EDIT: The ScrollViewerStyle hits the intersection rectangle, but that doesn't work with the SyntaxEditor. Just every other control.

<ribbon:RibbonWindow x:Class="ScriptEditorWindow"
                     FocusManager.FocusedElement="{Binding ElementName=scriptText}"
                     Height="560" Width="560">


        <ribbon:Ribbon x:Name="ribbon" DockPanel.Dock="Top" QuickAccessToolBarLocation="None">



        <editor:SyntaxEditor x:Name="scriptText" Text="{Binding ElementName=scriptWindow, Path=Script.Text}" CanCutCopyBlankLineWhenNoSelection="False"
                             CanSplitHorizontally="False" CanSplitVertically="False" CanCutCopyDragWithRtf="False" IsMouseWheelZoomEnabled="False">

                <Style TargetType="ScrollBar" BasedOn="{StaticResource {x:Static ribbon:RibbonStyles.ScrollBarAlternateKey}}" />



[Modified at 04/09/2010 04:48 PM]

Comments (2)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
That is a ScrollBarBlock control that is a SyntaxEditor primitive. You can easily change its background color by altering this brush in your app resources:
<SolidColorBrush x:Key="{x:Static themes:SyntaxEditorCommonDictionary.ScrollBarBlockBackgroundBrushKey}" Color="{StaticResource {x:Static SystemColors.ControlColorKey}}" />

Actipro Software Support

Posted 12 years ago by SledgeHammer01
Ah, thanks.
The latest build of this product (v22.1.3) was released 21 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.