Stoyo, me again now i have a new problem. Sorry for all large list of questions but i need stay secure all what i need work, before order a licence.
I continue working on the example FORMEDITOR I make some simple changes to the formeditor, but cant make the form use all screen:
Here the changes: <Window x:Class="FormEditor.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://mindfusion.eu/diagramming/wpf" xmlns:f="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms" xmlns:wfi="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsForms Integration" Title="MindFusion.Diagramming Sample: Form Editor" Width="703" Height="570" Loaded="Window_Loaded" Name="window" Icon="/FormEditor;component/App.ico" AllowsTransparency="True" WindowStyle="None" Background="Transparent" WindowState="Maximized" > <Grid>
<d:Diagram Name="form" BackBrush="Black" SelectAfterCreate="False"
NodeCreated="form_NodeCreated"
NodeActivated="form_NodeActivated"
InitializeNode="form_InitializeNode" NodeSelecting="form_NodeSelecting"
>
</d:Diagram>
<ListBox Height="100" HorizontalAlignment="Right"
Margin="0,13,101,0" Name="palette" VerticalAlignment="Top" Width="120"
SelectionChanged="palette_SelectionChanged" >
<ListBoxItem>Button</ListBoxItem>
<ListBoxItem>TextBox</ListBoxItem>
<ListBoxItem>Label</ListBoxItem>
</ListBox>
<Button Height="23" HorizontalAlignment="Right" Margin="0,13,11,0"
Name="btnSave" VerticalAlignment="Top" Width="75" Click="btnSave_Click">Save</Button>
<Button Height="23" HorizontalAlignment="Right" Margin="0,52,11,0"
Name="btnLoad" VerticalAlignment="Top" Width="75" Click="btnLoad_Click">Load</Button>
<wfi:WindowsFormsHost Margin="0,124,11,13" HorizontalAlignment="Right" Width="210" Background="Black">
<f:PropertyGrid Height="23" Margin="0,82,11,0" x:Name="propGrid" />
</wfi:WindowsFormsHost>
</Grid> </Window>
++++++++++++++++++++++++++++++++++++++++++++++
New CODE:
private void Window_Loaded(object sender, RoutedEventArgs e)
{
WIDTH = SystemInformation.PrimaryMonitorSize.Width;
HEIGHT = SystemInformation.PrimaryMonitorSize.Height;
form.Width = WIDTH;
form.Height = HEIGHT;
You can see the form never cover all the screen. Why? is like form can be more bigger. Is really strange.
|