/
anton.bessolitsyn
/
GraphTool
Обзор
Документация
Войти
/
anton.bessolitsyn
/
GraphTool
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
GraphToolWPF/View/GraphToolWindow.xaml
51 строка
3 KB
Anton Bessolitsyn
in progress
22 окт 2025, 10:25
22 окт 2025, 10:25
8675066
Код
Авторство
О чём код?
<mc:McWindow x:Class="GraphToolWPF.ViewModel.GraphToolWindow" 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.mcad.com/xaml/presentation" xmlns:local="clr-namespace:GraphToolWPF.ViewModel" xmlns:vm="clr-namespace:GraphToolWPF.ViewModel" Title="GraphToolWindow" Height="200" Width="200"> <mc:McWindow.Resources> <Style x:Key="TextBlockStyle1" TargetType="{x:Type TextBlock}"> <Setter Property="TextWrapping" Value="Wrap"/> <Setter Property="TextTrimming" Value="WordEllipsis"/> </Style> </mc:McWindow.Resources> <Grid> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition Width="5"/> <ColumnDefinition Width="*" /> <ColumnDefinition Width="5"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="5"/> <RowDefinition Height="20"/> <RowDefinition Height="5"/> <RowDefinition Height="20"/> <RowDefinition Height="5"/> <RowDefinition Height="20"/> <RowDefinition Height="5"/> <RowDefinition Height="20"/> <RowDefinition Height="5"/> <RowDefinition Height="20"/> <RowDefinition Height="5"/> </Grid.RowDefinitions> <Button Grid.Column="1" Grid.Row="3" Content="{Binding NewVertex.Name}" Command="{Binding NewVertex}" /> <Button Grid.Column="1" Grid.Row="5" Content="{Binding NewEdge.Name}" Command="{Binding NewEdge}" /> <Button Grid.Column="1" Grid.Row="7" Content="{Binding FindPath.Name}" Command="{Binding FindPath}" /> <TextBlock Style="{DynamicResource TextBlockStyle1}" Grid.Column="1" Grid.Row="9" Text="Для повторного вызова формы вызовите команду GT_INFO или двойно клик по любой вершине" Margin="7,0,6,-44" Grid.RowSpan="2" Width="177" /> <!--<Button Grid.Column="1" Grid.Row="7" x:Name="CloseBtn"/>--> <!--<TextBlock Grid.Column="1" Grid.Row="1" Text="{Binding Message }"></TextBlock> <TextBox Grid.Column="1" Grid.Row="3" Text="{Binding Answer, Mode=TwoWay}" /> <StackPanel Grid.Column="1" Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Center"> <Button Content="OK" Width="80" Command="{Binding OkCommand}" /> <Rectangle Width="10" /> <Button Content="Cancel" Width="80" Command="{Binding CancelCommand}" /> </StackPanel>--> </Grid> </Grid> </mc:McWindow>