123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <Window x:Class="ClashDotNetFramework.Dialogs.ProfileSettingsDialog"
- 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:ClashDotNetFramework.Dialogs"
- mc:Ignorable="d" FontSize="14" KeyDown="Window_KeyDown"
- Title="ProfileSettingsDialog" Background="{DynamicResource DialogBackground}"
- MinHeight="350" MinWidth="350" Height="350" Width="350"
- WindowStyle="None" ResizeMode="NoResize" AllowsTransparency="True"
- WindowStartupLocation="CenterOwner"
- ShowInTaskbar="False">
- <Window.Resources>
- <Style x:Key="TextBlockStyle" TargetType="TextBlock">
- <Setter Property="Foreground" Value="{DynamicResource NormalTextForeground}"/>
- <Setter Property="FontSize" Value="14"/>
- </Style>
- <Style x:Key="TextBoxStyle" TargetType="TextBox">
- <Setter Property="Background" Value="{DynamicResource TextBoxBackground}"/>
- <Setter Property="BorderBrush" Value="{DynamicResource TextBoxBorderBrush}"/>
- <Setter Property="Foreground" Value="{DynamicResource NormalTextForeground}"/>
- <Setter Property="HorizontalAlignment" Value="Stretch"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Height" Value="40"/>
- </Style>
- <Style x:Key="ButtonStyle" TargetType="Button">
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Foreground" Value="White"/>
- <Setter Property="Background" Value="{DynamicResource ButtonBackground}"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Width" Value="100"/>
- <Setter Property="Height" Value="40"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border CornerRadius="2" Background="{TemplateBinding Background}">
- <ContentPresenter x:Name="ContentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <!-- Dialog Title -->
- <RowDefinition Height="Auto"/>
-
- <!-- Main Content -->
- <RowDefinition/>
- </Grid.RowDefinitions>
- <!-- Dialog Title -->
- <TextBlock
- Text="{DynamicResource EditProfileInformation}"
- Foreground="{DynamicResource NormalTextForeground}"
- FontSize="16"
- Margin="20,20,20,0"/>
-
- <!-- Main Content -->
- <StackPanel
- Grid.Row="1"
- Margin="20">
- <StackPanel>
- <TextBlock
- Style="{StaticResource TextBlockStyle}"
- Text="{DynamicResource Name}"/>
- <TextBox
- Style="{StaticResource TextBoxStyle}"
- Margin="0,5,0,0"
- x:Name="Name"/>
- </StackPanel>
- <StackPanel
- Margin="0,10,0,0">
- <TextBlock
- Style="{StaticResource TextBlockStyle}"
- Text="{DynamicResource URL}"/>
- <TextBox
- Style="{StaticResource TextBoxStyle}"
- Margin="0,5,0,0"
- x:Name="URL"/>
- </StackPanel>
- <StackPanel
- Margin="0,10,0,0">
- <TextBlock
- Style="{StaticResource TextBlockStyle}"
- Text="{DynamicResource UpdateInterval}"/>
- <TextBox
- Style="{StaticResource TextBoxStyle}"
- Margin="0,5,0,0"
- x:Name="UpdateInterval"/>
- </StackPanel>
- <StackPanel
- Orientation="Horizontal"
- Margin="0,20,0,0"
- HorizontalAlignment="Center">
- <Button
- Style="{StaticResource ButtonStyle}"
- Content="{DynamicResource Ok}"
- Click="OkButton_Click"
- Margin="25,0"/>
- <Button
- Style="{StaticResource ButtonStyle}"
- Content="{DynamicResource Cancel}"
- Click="CancelButton_Click"
- Margin="25,0"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Window>
|