0
我在我的xaml中有一个名为MiniMap的项目。我已将它的背景设置为代表画布项目的可视化画笔。现在,我想将背景比例调整为0.7。我该怎么做? 在此先感谢缩放可视化画笔背景WPF
<local:MiniMap Width="201" Height="134" x:Name="MiniMapItem" MinHeight="100" MinWidth="100" Opacity="1" SnapsToDevicePixels="True" Margin="0,0,20,20" VerticalAlignment="Bottom" HorizontalAlignment="Right">
<local:MiniMap.Background>
<VisualBrush Visual="{Binding ElementName=viewport}" Stretch="None" TileMode="None" AlignmentX="Left" AlignmentY="Top" />
</local:MiniMap.Background>
</local:MiniMap>