Повторение моего обновленного ответа на другой вопрос ..
Вы можете поместить UserControl
в Grid
, который связывает его ширину / высоту с FixedPage ActualWidth / ActualHeight для достижения центрирования
<DocumentViewer>
<FixedDocument>
<PageContent>
<FixedPage>
<Grid Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type FixedPage}},
Path=ActualWidth}"
Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type FixedPage}},
Path=ActualHeight}">
<local:MyUserControl HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Grid>
</FixedPage>
</PageContent>
</FixedDocument>
</DocumentViewer>