/
n1kolas
/
VendingUserClient
Обзор
Документация
Войти
/
n1kolas
/
VendingUserClient
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Views/PhoneWindow.xaml
86 строк
4 KB
Kharchenko Nickolai
last steps ahead
26 июн 2025, 15:46
26 июн 2025, 15:46
b87a2b5
Код
Авторство
О чём код?
<Window x:Class="AdminClient.Views.PhoneWindow" 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:AdminClient.Views" mc:Ignorable="d" ResizeMode="NoResize" WindowStyle="SingleBorderWindow" Height="250" Width="500" Title="SIM" Icon="/Resources/monitor.png" WindowStartupLocation="CenterScreen"> <Grid Background="#d9d9d9"> <Grid.ColumnDefinitions> <ColumnDefinition Width="13*"/> <ColumnDefinition Width="479*"/> <ColumnDefinition Width="13*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="33*"/> <RowDefinition Height="Auto"/> <RowDefinition Height="33*"/> </Grid.RowDefinitions> <Grid Grid.Row="1" Grid.Column="1"> <Border Grid.Column="0" Background="White" CornerRadius="5"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*"/> <ColumnDefinition Width="1*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="50"/> <RowDefinition Height="80"/> <RowDefinition Height="69"/> </Grid.RowDefinitions> <Border Grid.Row="0" Background="#f6f6f6" BorderBrush="DeepSkyBlue" BorderThickness="0,2,0,0.5" CornerRadius="5,5,0,0" Grid.ColumnSpan="3"> <Grid> <TextBlock x:Name="PageName" Margin="5,0,5,0" VerticalAlignment="Center" FontSize="25" Foreground="DeepSkyBlue" Text="Редактирование SIM"></TextBlock> </Grid> </Border> <Grid Grid.Row="1"> <Grid.RowDefinitions> <RowDefinition Height="7*"/> <RowDefinition Height="13*"/> </Grid.RowDefinitions> <TextBlock VerticalAlignment="Bottom" Margin="10,0,0,0" >Вендор*</TextBlock> <TextBox x:Name="VendorNameBox" Text="{Binding Vendor, UpdateSourceTrigger=PropertyChanged}" Grid.Row="1" Margin="10"></TextBox> </Grid> <Grid Grid.Row="1" Grid.Column="1" Name="LoginGrid" > <Grid.RowDefinitions> <RowDefinition Height="7*"/> <RowDefinition Height="13*"/> </Grid.RowDefinitions> <TextBlock VerticalAlignment="Bottom" Margin="10,0,0,0">Номер*</TextBlock> <TextBox x:Name="NumberBox" Text="{Binding Number, UpdateSourceTrigger=PropertyChanged}" Grid.Row="1" Margin="10"></TextBox> </Grid> <Border Grid.Row="5" Background="#f6f6f6" Grid.ColumnSpan="2"> <Grid> <Border HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20,0,0,0" Width="80" Height="35" CornerRadius="5" Background="DeepSkyBlue"> <Button Click="Button_Click" Foreground="White">Сохранить</Button> </Border> <Border HorizontalAlignment="Left" VerticalAlignment="Center" Margin="120,0,0,0" Width="80" Height="35" CornerRadius="5" BorderThickness="1" BorderBrush="Gray" Background="White"> <Button Foreground="Black" Click="Cancel_Click">Отменить</Button> </Border> <Border x:Name="DeleteButton" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,30,0" Width="80" Height="35" CornerRadius="5" BorderThickness="1" Background="#FFEF0000"> <Button Name="DeleteSim" Foreground="White" Click="DeleteSim_Click">Удалить</Button> </Border> </Grid> </Border> </Grid> </Border> </Grid> </Grid> </Window>