Wpf XtraReports DocumentPreviewControl更改帧背景色

Wpf XtraReports DocumentPreviewControl更改帧背景色,wpf,background-color,xtrareport,Wpf,Background Color,Xtrareport,我正在使用XtraReports的试用版。我的应用程序基于框架和材质设计对话框。我已经创建了一些使用自定义重音颜色的页面。一切正常。Bu当我打开包含DocumentPreviewControl的对话框或页面并切换回其他页面时,页面的背景变为白色。当我从页面中删除DocumentPreviewControl时,所有操作都正常 有什么建议吗 代码: ReportPage.xaml: <StackPanel> <DockPanel Height="750" Backgroun

我正在使用XtraReports的试用版。我的应用程序基于框架和材质设计对话框。我已经创建了一些使用自定义重音颜色的页面。一切正常。Bu当我打开包含DocumentPreviewControl的对话框或页面并切换回其他页面时,页面的背景变为白色。当我从页面中删除DocumentPreviewControl时,所有操作都正常

有什么建议吗

代码: ReportPage.xaml:

<StackPanel>
    <DockPanel Height="750" Background="#454545">
        <dxp:DocumentPreviewControl RequestDocumentCreation="True" DocumentSource="{Binding ReportDocument}" dx:ThemeManager.ThemeName="Office2013DarkGray"/>
    </DockPanel>
</StackPanel>

MainWindow.xaml:

<Frame Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" 
           Name="frame"
           Background="#FF454545"
           Margin="0,20,0,10"
           NavigationUIVisibility="Hidden">
            <Frame.Style>
                <Style TargetType="Frame">
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding IsLogged}" Value="True">
                            <Setter Property="Source" Value="MainPage.xaml"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding IsLogged}" Value="False">
                            <Setter Property="Source" Value="NotLoggedPage.xaml"/>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </Frame.Style>

由于DevExpress主题也会影响标准控件的样式,因此会发生此行为。当控件注入到可视化树中时,默认的Office2016White主题将应用于所有元素。如果要禁用此行为,请在应用程序启动时将ApplicationThemeHelper.UseLegacyDefaultTheme属性设置为true:

public partial class App : Application {
    public App() {
         ApplicationThemeHelper.UseLegacyDefaultTheme = true;
    }
}