NoteMAUI/GraphPage.xaml
2024-11-11 17:59:20 +03:00

40 lines
2.1 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="NotesDataAnalyst.GraphPage"
Title="GraphPage">
<ContentPage.Content>
<Grid Padding="10" RowDefinitions="*,Auto">
<!-- Канва для рисования в отдельном ContentView -->
<ContentView Grid.Row="0">
<ContentView.GestureRecognizers>
<PanGestureRecognizer PanUpdated="OnPanUpdated"/>
<PinchGestureRecognizer PinchUpdated="OnPinchUpdated"/>
</ContentView.GestureRecognizers>
<AbsoluteLayout>
<GraphicsView x:Name="canvasView"
HeightRequest="8000"
WidthRequest="8000"/>
</AbsoluteLayout>
</ContentView>
<ContentView Grid.Row="1">
<!-- Панель с кнопками внизу -->
<ScrollView Grid.Row="1" Orientation="Horizontal" HorizontalScrollBarVisibility="Always" VerticalScrollBarVisibility="Never">
<StackLayout Orientation="Horizontal" Spacing="1" Padding="20">
<Button Text="Добавить" Clicked="OnAddNodeClicked" WidthRequest="100"/>
<Button Text="Добавить дочернюю" Clicked="OnChildClicked" />
<Button Text="Изменить размер" Clicked="OnResizeNodeClicked" />
<Button Text="Редактировать текст" Clicked="OnEditTextClicked" />
</StackLayout>
</ScrollView>
</ContentView>
<!-- Поле для редактирования текста -->
<Entry x:Name="textEditor"
IsVisible="False"
BackgroundColor="White"
TextColor="Black"
FontSize="18"
Grid.Row="1" />
</Grid>
</ContentPage.Content>
</ContentPage>