Files
UVtools/UVtools.WPF/Windows/MissingInformationWindow.axaml
Tiago Conceição e550fdc266 v3.6.2
- (Add) Debug sub menu to test some behaviours (Only when compiled in debug mode, not visible on public release)
- (Add) Utility method `LayerExists` to the file formats to know if specific layer index exists in the collection
- (Improvement) Add loaded file information to the crash dialog message
- (Fix) Message dialog height do not expand with text (#537)
- (Fix) Crash when all layers get removed and UI attempt to show a layer (#538)
2022-08-21 23:39:20 +01:00

103 lines
4.4 KiB
XML

<uc:WindowEx xmlns="https://github.com/avaloniaui"
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:uc="clr-namespace:UVtools.WPF.Controls"
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="450"
x:Class="UVtools.WPF.Windows.MissingInformationWindow"
CanResize="False"
SizeToContent="Height"
WindowStartupLocation="CenterOwner"
Width="500"
Icon="/Assets/Icons/UVtools.ico"
Title="Missing information on the file">
<StackPanel Orientation="Vertical" Spacing="10">
<Border Classes="Header">
<TextBox Classes="TransparentReadOnlyMultiLineNoBorder"
Text="There are crucial information missing on this file in order to UVtools work properly and/or provide the correct information.
&#x0a;Fill in the missing information only if you know the correct values, otherwise leave it unchanged if unsure.
&#x0a;In most cases the missing information is not required by the printer.
&#x0a;Note: Some fields may rebuild the layers information."/>
</Border>
<Border Margin="20,10,20,0">
<Grid RowDefinitions="Auto,10,Auto,10,Auto"
ColumnDefinitions="Auto,10,220,10,Auto">
<TextBlock Grid.Row="0" Grid.Column="0"
VerticalAlignment="Center"
IsVisible="{Binding LayerHeightIsVisible}"
Text="Layer height:"/>
<NumericUpDown Grid.Row="0" Grid.Column="2"
Classes="ValueLabel ValueLabel_mm"
IsVisible="{Binding LayerHeightIsVisible}"
Minimum="0"
Maximum="0.200"
Increment="0.01"
FormatString="F3"
Value="{Binding LayerHeight}"/>
<TextBlock Grid.Row="0" Grid.Column="4"
VerticalAlignment="Center"
IsVisible="{Binding LayerHeightIsVisible}"
Text="(Critical)"/>
<TextBlock Grid.Row="2" Grid.Column="0"
VerticalAlignment="Center"
IsVisible="{Binding DisplayWidthIsVisible}"
Text="Display width:"/>
<NumericUpDown Grid.Row="2" Grid.Column="2"
Classes="ValueLabel ValueLabel_mm"
IsVisible="{Binding DisplayWidthIsVisible}"
Minimum="0"
Maximum="10000"
Increment="10"
Value="{Binding DisplayWidth}"/>
<TextBlock Grid.Row="2" Grid.Column="4"
VerticalAlignment="Center"
IsVisible="{Binding DisplayWidthIsVisible}"
Text="(Regular)"/>
<TextBlock Grid.Row="4" Grid.Column="0"
VerticalAlignment="Center"
IsVisible="{Binding DisplayHeightIsVisible}"
Text="Display height:"/>
<NumericUpDown Grid.Row="4" Grid.Column="2"
Classes="ValueLabel ValueLabel_mm"
IsVisible="{Binding DisplayHeightIsVisible}"
Minimum="0"
Maximum="10000"
Increment="10"
Value="{Binding DisplayHeight}"/>
<TextBlock Grid.Row="4" Grid.Column="4"
VerticalAlignment="Center"
IsVisible="{Binding DisplayHeightIsVisible}"
Text="(Regular)"/>
</Grid>
</Border>
<Border Classes="FooterActions">
<StackPanel Orientation="Horizontal" Spacing="10" HorizontalAlignment="Right">
<uc:ButtonWithIcon Padding="10"
IsDefault="True"
Icon="fa-solid fa-check"
Text="Apply"
Command="{Binding Apply}"/>
<uc:ButtonWithIcon Padding="10"
IsCancel="True"
Icon="fa-solid fa-sign-out-alt"
Text="Cancel"
Command="{Binding Close}"/>
</StackPanel>
</Border>
</StackPanel>
</uc:WindowEx>