/
docNemo
/
clothes-graph
Обзор
Документация
Войти
/
docNemo
/
clothes-graph
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
src/ClothesGraph.App/Views/PrintView.axaml
89 строк
5 KB
docNemo
Запрос на слияние 'interface-to-spec' (
#1
) из interface-to-spec в main
09 авг 2026, 20:28
Верифицирован
09 авг 2026, 20:28
1bbc436
Код
Авторство
О чём код?
<UserControl xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:vm="clr-namespace:ClothesGraph.App.ViewModels" xmlns:controls="clr-namespace:ClothesGraph.App.Controls" x:Class="ClothesGraph.App.Views.PrintView" x:DataType="vm:PrintViewModel"> <Grid ColumnDefinitions="*,280"> <Border Grid.Column="0" Background="#20242E"> <controls:PrintPreview x:Name="Preview" /> </Border> <Border Grid.Column="1" Background="#1B1E26" Padding="14"> <ScrollViewer> <StackPanel Spacing="10"> <TextBlock Text="Печать" FontSize="15" FontWeight="SemiBold" Foreground="#D6DBE6" /> <!-- Печатать всё подряд значит расходовать бумагу на то, что уже вырезано. --> <TextBlock Text="Выводить детали" Foreground="#A8B0C0" FontSize="12" /> <ItemsControl ItemsSource="{Binding Pieces}"> <ItemsControl.ItemTemplate> <DataTemplate x:DataType="vm:PrintPieceRow"> <CheckBox Content="{Binding Name}" IsChecked="{Binding IsIncluded}" FontSize="12" /> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> <CheckBox Content="Весь размерный ряд" IsChecked="{Binding WholeRange}" /> <TextBlock Text="Формат листа" Foreground="#A8B0C0" FontSize="12" /> <ComboBox ItemsSource="{Binding Sizes}" SelectedItem="{Binding PageSize}" HorizontalAlignment="Stretch"> <ComboBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Name}" /> </DataTemplate> </ComboBox.ItemTemplate> </ComboBox> <CheckBox Content="Альбомная ориентация" IsChecked="{Binding IsLandscape}" /> <CheckBox Content="Склейка с перекрытием" IsChecked="{Binding JoinWithOverlap}" /> <TextBlock Text="Перекрытие, мм" Foreground="#A8B0C0" FontSize="12" /> <NumericUpDown Value="{Binding OverlapMillimetres}" Minimum="0" Maximum="50" Increment="1" FormatString="0" /> <TextBlock Text="Поля, мм" Foreground="#A8B0C0" FontSize="12" /> <NumericUpDown Value="{Binding MarginMillimetres}" Minimum="0" Maximum="40" Increment="1" FormatString="0" /> <Separator Margin="0,6" /> <TextBlock TextWrapping="Wrap" FontSize="11" Foreground="#8A93A6" Text="Деталь перетаскивается мышью. Колесо поворачивает выбранную на 15°, с зажатым Shift — на 1°." /> <TextBlock Text="Зазор между деталями, мм" Foreground="#A8B0C0" FontSize="12" /> <NumericUpDown Value="{Binding GapMillimetres}" Minimum="0" Maximum="50" Increment="1" FormatString="0" /> <Button Content="Разложить плотнее" Command="{Binding AutoArrangeCommand}" HorizontalAlignment="Stretch" /> <Button Content="Вернуть раскладку в ряд" Command="{Binding ResetLayoutCommand}" HorizontalAlignment="Stretch" /> <Button Content="Сохранить PDF" Command="{Binding ExportPdfCommand}" HorizontalAlignment="Stretch" /> <Button Content="Печать" Command="{Binding PrintCommand}" HorizontalAlignment="Stretch" /> <TextBlock Text="{Binding Summary}" Foreground="#C8CEDA" TextWrapping="Wrap" FontSize="12" Margin="0,8,0,0" /> <Border IsVisible="{Binding Warning, Converter={x:Static ObjectConverters.IsNotNull}}" Background="#18FFB020" BorderBrush="#40FFB020" BorderThickness="1" CornerRadius="4" Padding="8"> <TextBlock Text="{Binding Warning}" Foreground="#FFD08A" TextWrapping="Wrap" FontSize="11" /> </Border> <TextBlock TextWrapping="Wrap" FontSize="11" Foreground="#7C8496" Margin="0,10,0,0" Text="На каждом листе печатается контрольный отрезок. Измерьте его линейкой: если длина не совпадает с подписью, печать прошла с масштабированием, и выкройкой пользоваться нельзя." /> </StackPanel> </ScrollViewer> </Border> </Grid> </UserControl>