对于初学者的问题,我很抱歉,但是“我在创建 WPF 表单方面是新手。我在 Visual Studio 中设置和查看正确大小的表单时遇到了一些问题。在设计模式中的尺寸较大的比运行时模式。这里是 XAML。有任何想法吗???
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:EnginedrawWPF"
xmlns:h="http://helix-toolkit.org/wpf" x:Class="MainWindow"
mc:Ignorable="d"
Title="Motore di disegno" Height="400.0" Width="970.0" ResizeMode="NoResize">
<Grid Margin="0,0,0,0">
<h:HelixViewport3D x:Name="helixviewport3dobj" Height="301" Margin="207,10,10.2,0" h:VerticalAlignment="Top" Foreground="Black" Background="#FFC0E2B5" >
<h:HelixViewport3D.DefaultCamera>
<PerspectiveCamera Position="0,-3.5,3.5" LookDirection="0,3.5,-3.5" UpDirection="0,0,1" FieldOfView="61" NearPlaneDistance="0.001"/>
</h:HelixViewport3D.DefaultCamera>
<h:SunLight />
<h:GridLinesVisual3D Fill="#FFB9B9B9" Thickness="0.01" MinorDistance="0.2" MajorDistance="1"/>
</h:HelixViewport3D>
<Button x:Name="CBlineare" Content="Nuovo tratto lineare" HorizontalAlignment="Left" Height="30" Margin="10,10,0,0" VerticalAlignment="Top" Width="181"/>
<Button x:Name="CBcurva90" Content="Aggiungi curva 90°" HorizontalAlignment="Left" Height="30" Margin="10,57,0,0" VerticalAlignment="Top" Width="181"/>
<Button x:Name="CBcurva45" Content="Aggiungi curva 45°" HorizontalAlignment="Left" …Run Code Online (Sandbox Code Playgroud)