You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NodeEditor/MainWindow.xaml

73 lines
2.7 KiB
XML

<Window x:Class="NodeEditor.MainWindow"
x:Name="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:NodeEditor"
xmlns:controls="clr-namespace:NodeEditor.Controls"
mc:Ignorable="d"
WindowStyle="ToolWindow"
WindowStartupLocation="CenterScreen"
Title="Node Editor" Height="1080" Width="1920">
<Window.Resources>
<ControlTemplate x:Key="RoundedCorner" TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}"
x:Name="Bd"
BorderBrush="Black"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="10">
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ActiveCaptionBrushKey}}" TargetName="Bd"/>
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ActiveCaptionBrushKey}}"/>
</Trigger>
<Trigger Property="Width" Value="Auto">
<Setter Property="MinWidth" Value="20"/>
</Trigger>
<Trigger Property="Height" Value="Auto">
<Setter Property="MinHeight" Value="20"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Window.Resources>
<!-- <Grid Background="DarkGray" x:Name="Grid" Margin="2,2,2,2"> -->
<!-- -->
<!-- ~1~Startup Canvas with Load/New Options@1@ -->
<!-- -->
<!-- <Button -->
<!-- Content="Create New Project" -->
<!-- HorizontalAlignment="Left" -->
<!-- VerticalAlignment="Top" -->
<!-- Width="320" -->
<!-- Margin="800,490,0,0" -->
<!-- Height="60" -->
<!-- Click="createNewProject"/> -->
<!-- -->
<!-- <Button -->
<!-- Content="Load from file" -->
<!-- HorizontalAlignment="Left" -->
<!-- VerticalAlignment="Top" -->
<!-- Width="320" -->
<!-- Margin="800,410,0,0" -->
<!-- Height="60" -->
<!-- Click="loadFromFile"/> -->
<!-- -->
<!-- -->
<!-- ~1~Test Canvas for testing routes@1@ -->
<!-- ~1~ <Canvas x:Name="Tester" Visibility="Hidden"> @1@ -->
<!-- ~1~ @1@ -->
<!-- ~1~ </Canvas> @1@ -->
<!-- -->
<!-- </Grid> -->
<controls:EditorCanvas Background="Black" Margin="20,20,20,20">
</controls:EditorCanvas>
</Window>