開啟新的WPF專案
將原本的Grid移除,依序加入Viewbox和Grid
XAML如下 (注意Viewbox不能給寬高的值)
<Viewbox Name="viewbox1" >
<Grid Height="123" Name="grid1" Width="200">
<Button Content="Button" Height="11" HorizontalAlignment="Left" Margin="166,5,0,0" Name="button1" VerticalAlignment="Top" Width="30" />
</Grid>
</Viewbox>
全站熱搜
留言列表