123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <Window x:Class="MusicSmth.RedUserInfoWin"
- 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:MusicSmth"
- mc:Ignorable="d"
- Title="RedUserInfoWin" Height="450" Width="800">
- <Window.Resources>
- <SolidColorBrush x:Key="TextBox.Static.Border" Color="#FFABAdB3"/>
- <SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="#FF7EB4EA"/>
- <SolidColorBrush x:Key="TextBox.Focus.Border" Color="#FF569DE5"/>
- <Style x:Key="TextBoxStyle1" TargetType="{x:Type TextBox}">
- <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
- <Setter Property="BorderBrush" Value="{StaticResource TextBox.Static.Border}"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
- <Setter Property="HorizontalContentAlignment" Value="Left"/>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="AllowDrop" Value="true"/>
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
- <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
- </Border>
- <ControlTemplate.Triggers>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true"/>
- <Condition Property="IsSelectionActive" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
- </MultiTrigger>
- </Style.Triggers>
- </Style>
- <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
- <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
- <SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
- <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
- <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
- <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
- <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
- <ControlTemplate x:Key="ButtonTemplate1" TargetType="{x:Type ButtonBase}">
- <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
- <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- <ControlTemplate.Triggers>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Window.Resources>
- <Grid Background="#1DB954">
- <Image Source="Doggie.jpg" Stretch="Fill" Opacity="0.1"></Image>
- <StackPanel Width="200" VerticalAlignment="Center" HorizontalAlignment="Center">
- <TextBlock Text="Фамилия"/>
- <Border Style="{DynamicResource BorderInput}" Height="20">
- <TextBox Style="{DynamicResource TextBoxStyle1}" Name="Srname" Background="#0000" BorderBrush="#0000"/>
- </Border>
- <TextBlock Text="Имя"/>
- <Border Style="{DynamicResource BorderInput}" Height="20">
- <TextBox Style="{DynamicResource TextBoxStyle1}" Name="Nam" Background="#0000" BorderBrush="#0000"/>
- </Border>
- <TextBlock Text="Отчество"/>
- <Border Style="{DynamicResource BorderInput}" Height="20">
- <TextBox Style="{DynamicResource TextBoxStyle1}" Name="Patr" Background="#0000" BorderBrush="#0000"/>
- </Border>
- <TextBlock Text="Дата рождения"/>
- <DatePicker Name="Birthd" BorderBrush="#0000"/>
- <Border Margin="0,10,0,0" Style="{DynamicResource BorderDefault}" Width="180" Height="20">
- <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="Edit">Зафиксировать изменения</Button>
- </Border>
- </StackPanel>
- <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Left">
- <Border Margin="10,0,0,10" Style="{DynamicResource BorderDefault}" Width="100" Height="20" >
- <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="Back">Назад</Button>
- </Border>
- </StackPanel>
- </Grid>
- </Window>
|