我在Visual Studio 2010中做了簡單的界面。當我啓動應用程序時,一切都變得更大。屏幕截圖上的紅色方塊代表啓動的應用程序中按鈕的大小(右側)。 我錯過了什麼嗎?如何解決它?Visual Studio 2010 WPF Designer規模
P.S. 在「Microsoft Expression Blend 4」中,相同的項目與編輯器中的尺寸完全相同。
<Window x:Class="WpfControlReview.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="120" Width="256" ResizeMode="NoResize">
<Grid>
<Button HorizontalAlignment="Stretch" Name="button1" VerticalAlignment="Stretch">
<StackPanel HorizontalAlignment="Stretch" Name="stackPanel1" VerticalAlignment="Center">
<Label IsHitTestVisible="False" Content="Select your options and press to commit" Name="label1" HorizontalContentAlignment="Center" FontSize="12" />
<StackPanel Name="stackPanel2" Orientation="Horizontal">
<Expander Header="Color" Name="expander1">
</Expander>
<Expander Header="Make" Name="expander2">
</Expander>
<Expander Header="Payment" Name="expander3">
</Expander>
</StackPanel>
</StackPanel>
</Button>
</Grid>
</Window>
一些代碼將是非常有益~~~ – 2010-10-19 11:43:38
您必須使用64位的機器吧? – 2010-10-21 07:06:37
@Avatar是的。這有什麼關係嗎? – Hooch 2010-10-21 15:20:33