Files
SimpleNote/MainWindow.axaml
T

63 lines
2.7 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
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:vm="clr-namespace:SimpleNote"
mc:Ignorable="d" d:DesignWidth="40" d:DesignHeight="200"
x:Class="SimpleNote.MainWindow"
x:DataType="vm:MainViewModel"
WindowStartupLocation="CenterScreen"
TransparencyLevelHint="AcrylicBlur"
Background="Transparent"
Height="50"
Width="{Binding WindowWidth}"
SystemDecorations="None"
ExtendClientAreaToDecorationsHint="False"
CanResize="False"
Topmost="True"
Title="SimpleNote">
<Panel>
<ExperimentalAcrylicBorder IsHitTestVisible="False">
<ExperimentalAcrylicBorder.Material>
<ExperimentalAcrylicMaterial
BackgroundSource="Digger"
TintColor="Black"
TintOpacity="0.6"
MaterialOpacity="0.65" />
</ExperimentalAcrylicBorder.Material>
</ExperimentalAcrylicBorder>
<TextBox HorizontalAlignment="Center"
VerticalAlignment="Top"
Height="5"
IsHitTestVisible="False"
Margin="0, -3, 0, 0"
Foreground="Black"
Text="SimpleNote - Note"
Background="Transparent"
BorderThickness="0"
FontSize="12"
IsTabStop="False"
IsReadOnly="True"
>
</TextBox>
<TextBox x:Name="Note"
Height="20"
BorderThickness="0"
Width="{Binding WindowWidth}"
Margin="0, 12, 0, 0"
Padding="5,0,5,0"
TextAlignment="Center"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="White"
Background="Transparent"
IsHitTestVisible="False"
FontSize="{Binding FontSize}"
IsTabStop="False"
IsReadOnly="True"
>
</TextBox>
</Panel>
</Window>