RedAutnInfoWin.xaml 5.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <Window x:Class="MusicSmth.RedAutnInfoWin"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:MusicSmth"
  7. mc:Ignorable="d"
  8. Title="RedAutnInfoWin" Height="450" Width="800">
  9. <Window.Resources>
  10. <SolidColorBrush x:Key="TextBox.Static.Border" Color="#FFABAdB3"/>
  11. <SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="#FF7EB4EA"/>
  12. <SolidColorBrush x:Key="TextBox.Focus.Border" Color="#FF569DE5"/>
  13. <Style x:Key="TextBoxStyle1" TargetType="{x:Type TextBox}">
  14. <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
  15. <Setter Property="BorderBrush" Value="{StaticResource TextBox.Static.Border}"/>
  16. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  17. <Setter Property="BorderThickness" Value="1"/>
  18. <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
  19. <Setter Property="HorizontalContentAlignment" Value="Left"/>
  20. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  21. <Setter Property="AllowDrop" Value="true"/>
  22. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  23. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  24. <Setter Property="Template">
  25. <Setter.Value>
  26. <ControlTemplate TargetType="{x:Type TextBox}">
  27. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  28. <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
  29. </Border>
  30. <ControlTemplate.Triggers>
  31. </ControlTemplate.Triggers>
  32. </ControlTemplate>
  33. </Setter.Value>
  34. </Setter>
  35. <Style.Triggers>
  36. <MultiTrigger>
  37. <MultiTrigger.Conditions>
  38. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true"/>
  39. <Condition Property="IsSelectionActive" Value="false"/>
  40. </MultiTrigger.Conditions>
  41. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}"/>
  42. </MultiTrigger>
  43. </Style.Triggers>
  44. </Style>
  45. <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
  46. <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
  47. <SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
  48. <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
  49. <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
  50. <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
  51. <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
  52. <ControlTemplate x:Key="ButtonTemplate1" TargetType="{x:Type ButtonBase}">
  53. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
  54. <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  55. </Border>
  56. <ControlTemplate.Triggers>
  57. </ControlTemplate.Triggers>
  58. </ControlTemplate>
  59. </Window.Resources>
  60. <Grid Background="#1DB954">
  61. <Image Source="Doggie.jpg" Stretch="Fill" Opacity="0.1"></Image>
  62. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Width="200">
  63. <TextBlock >Логин</TextBlock>
  64. <Border BorderThickness="1" CornerRadius="10" BorderBrush="Black">
  65. <TextBox Style="{DynamicResource TextBoxStyle1}" VerticalContentAlignment="Center" VerticalAlignment="Center" Margin="1" Name="Login" Background="#0000" BorderBrush="#0000"></TextBox>
  66. </Border>
  67. <TextBlock>Пароль</TextBlock>
  68. <Border BorderThickness="1" CornerRadius="10" BorderBrush="Black">
  69. <TextBox Style="{DynamicResource TextBoxStyle1}" VerticalContentAlignment="Center" VerticalAlignment="Center" Margin="1" Name="Pass" Background="#0000" BorderBrush="#0000"></TextBox>
  70. </Border>
  71. <Border Margin="0,10,0,0" Style="{DynamicResource BorderDefault}" Width="180" Height="20">
  72. <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="FixChange">Зафиксировать изменения</Button>
  73. </Border>
  74. </StackPanel>
  75. <StackPanel VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="10,0,0,10">
  76. <Border Margin="0,10,0,0" Style="{DynamicResource BorderDefault}" Width="100" Height="20">
  77. <Button Template="{DynamicResource ButtonTemplate1}" Style="{DynamicResource ButtonDefault}" Click="Back">Назад</Button>
  78. </Border>
  79. </StackPanel>
  80. </Grid>
  81. </Window>