mirror of
https://github.com/MaxiFan/TunnelX.git
synced 2026-05-18 23:54:50 +03:00
0bc8992813
Co-authored-by: Cursor <cursoragent@cursor.com>
80 lines
3.4 KiB
XML
80 lines
3.4 KiB
XML
<Window x:Class="AppTunnel.Views.ModernDialog"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:services="clr-namespace:AppTunnel.Services"
|
|
Title="TunnelX"
|
|
Width="360"
|
|
MinWidth="330" MinHeight="220"
|
|
SizeToContent="Height"
|
|
WindowStartupLocation="CenterOwner"
|
|
WindowStyle="None"
|
|
AllowsTransparency="True"
|
|
Background="Transparent"
|
|
FlowDirection="{Binding Source={x:Static services:LocalizationService.Instance}, Path=FlowDirection}"
|
|
ShowInTaskbar="False"
|
|
ResizeMode="NoResize">
|
|
|
|
<!-- Modal overlay with dark shadow -->
|
|
<Border Background="{StaticResource BackgroundBrush}"
|
|
CornerRadius="16"
|
|
BorderBrush="{StaticResource PrimaryBrush}"
|
|
BorderThickness="1.5">
|
|
<Border.Effect>
|
|
<DropShadowEffect Color="Black" BlurRadius="30" Opacity="0.7" ShadowDepth="0"/>
|
|
</Border.Effect>
|
|
|
|
<Grid Margin="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Icon -->
|
|
<Viewbox Grid.Row="0" Width="36" Height="36" Margin="0,0,0,10" HorizontalAlignment="Center">
|
|
<TextBlock x:Name="IconText" Text="❓" FontSize="32"/>
|
|
</Viewbox>
|
|
|
|
<!-- Title -->
|
|
<TextBlock x:Name="TitleText" Grid.Row="1"
|
|
Text="تاییدیه"
|
|
FontSize="15" FontWeight="Bold"
|
|
Foreground="{StaticResource TextPrimaryBrush}"
|
|
HorizontalAlignment="Center"
|
|
TextWrapping="Wrap"
|
|
TextAlignment="Center"
|
|
Margin="0,0,0,10"/>
|
|
|
|
<!-- Message -->
|
|
<TextBlock x:Name="MessageText" Grid.Row="2"
|
|
Text="آیا مطمئن هستید؟"
|
|
FontSize="13"
|
|
Foreground="{StaticResource TextSecondaryBrush}"
|
|
TextWrapping="Wrap"
|
|
TextAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
MaxWidth="310"
|
|
Margin="0,0,0,18"
|
|
LineHeight="22"/>
|
|
|
|
<!-- Buttons -->
|
|
<StackPanel Grid.Row="3" Orientation="Horizontal"
|
|
HorizontalAlignment="Center"
|
|
FlowDirection="{Binding Source={x:Static services:LocalizationService.Instance}, Path=FlowDirection}">
|
|
<Button x:Name="PrimaryButton" Content="بله"
|
|
Style="{StaticResource PrimaryButton}"
|
|
MinWidth="80" Margin="0,0,6,0"
|
|
FontSize="13" Padding="16,8"
|
|
Click="OnPrimaryClick"/>
|
|
<Button x:Name="SecondaryButton" Content="خیر"
|
|
Style="{StaticResource SecondaryButton}"
|
|
MinWidth="80"
|
|
FontSize="13" Padding="16,8"
|
|
Click="OnSecondaryClick"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</Window>
|