/
n1kolas
/
NoteCreator
Обзор
Документация
Войти
/
n1kolas
/
NoteCreator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
UI/Windows/AppWindow.xaml
73 строки
3 KB
Nicolai
upgradus
13 окт 2025, 23:52
13 окт 2025, 23:52
f1d6a17
Код
Авторство
О чём код?
<Window x:Class="LogIn.UI.Windows.AppWindow" 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:LogIn.UI.Windows" mc:Ignorable="d" Title="AppWindow" WindowStartupLocation="CenterScreen" Height="450" Width="800" Icon="/UI/Resources/logo.png" MinHeight="450" MinWidth="800"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition x:Name="LeftPanel" Width="0.3*"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="95*"></RowDefinition> <RowDefinition Height="auto"></RowDefinition> </Grid.RowDefinitions> <Grid Background="{DynamicResource Background}"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="10*"></RowDefinition> <RowDefinition Height="90*"></RowDefinition> </Grid.RowDefinitions> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Arial Black" FontSize="17" Foreground="{DynamicResource Foreground}"> Мои заметки </TextBlock> <ListView Grid.Row="1" Background="Transparent" x:Name="NotesDisplay" ItemsSource="{Binding Notes}" MouseLeftButtonUp="NotesDisplay_MouseLeftButtonUp"> <ListView.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding NoteName}" Foreground="{DynamicResource Foreground}"></TextBlock> </DataTemplate> </ListView.ItemTemplate> </ListView> </Grid> </Grid> <GridSplitter x:Name="MenuSplitter" Grid.Column="0" VerticalAlignment="Stretch" Width="5" Background="Transparent" HorizontalAlignment="Right" DragCompleted="GridSplitter_DragCompleted" > </GridSplitter> <Grid Grid.Column="1" Background="{DynamicResource Surface}"> <TextBlock x:Name="Greeter" Text="{Binding GreeterText}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="15" Foreground="{DynamicResource Foreground}"> Здравствуйте, ________ </TextBlock> <Frame x:Name = "BaseFrame" NavigationUIVisibility="Hidden"></Frame> </Grid> <StatusBar Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Background="{DynamicResource Background}" VerticalAlignment="Bottom"> <StatusBarItem x:Name="StatusText" Content="Готово" Foreground="{DynamicResource Foreground}"/> <Separator/> <StatusBarItem x:Name="StatusBarUserLogin" Content="Пользователь: Admin" Foreground="{DynamicResource Foreground}"/> </StatusBar> </Grid> </Window>