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>