made some minor changes
This commit is contained in:
+77
-48
@@ -5,58 +5,87 @@
|
||||
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"
|
||||
x:DataType="vm:ViewModel"
|
||||
WindowStartupLocation="Manual"
|
||||
TransparencyLevelHint="Transparent"
|
||||
TransparencyBackgroundFallback="DimGray"
|
||||
Background="Transparent"
|
||||
Height="50"
|
||||
Width="{Binding WindowWidth}"
|
||||
SystemDecorations="None"
|
||||
ExtendClientAreaToDecorationsHint="False"
|
||||
ExtendClientAreaToDecorationsHint="True"
|
||||
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.Styles>
|
||||
<Style Selector="TextBox">
|
||||
<Style Selector="^:focus">
|
||||
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||
<Style Selector="^ /template/ Border#PART_BorderElement">
|
||||
<Setter Property="Background" Value="Transparent"/>
|
||||
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
</Style>
|
||||
</Style>
|
||||
<Style Selector="^:pointerover /template/ Border#PART_BorderElement">
|
||||
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
</Style>
|
||||
</Style>
|
||||
</Window.Styles>
|
||||
<!--<Border CornerRadius="15" BorderBrush="White" BorderThickness="2" Background="#000000aa">-->
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<ExperimentalAcrylicBorder IsHitTestVisible="False">
|
||||
<ExperimentalAcrylicBorder.Material>
|
||||
<ExperimentalAcrylicMaterial
|
||||
BackgroundSource="Digger"
|
||||
TintColor="Green"
|
||||
TintOpacity="0.5"
|
||||
MaterialOpacity="0.65" />
|
||||
</ExperimentalAcrylicBorder.Material>
|
||||
</ExperimentalAcrylicBorder>
|
||||
<TextBox x:Name="FocusBox" IsVisible="False"/>
|
||||
<Button Margin="5,0" Command="{Binding AddButtonPressedCommand}" FontSize="{Binding FontSize}" Width="40" HorizontalContentAlignment="Center">
|
||||
+
|
||||
</Button>
|
||||
<ItemsControl ItemsSource="{Binding Notes}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<StackPanel Orientation="Horizontal"/>
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate x:DataType="vm:Note">
|
||||
<Border CornerRadius="15" Margin="5,5,0,5" BorderBrush="#fff" BorderThickness="2" Background="Transparent">
|
||||
<StackPanel Margin="5" Background="Transparent" Orientation="Horizontal">
|
||||
<TextBox Height="20"
|
||||
CaretBrush="Transparent"
|
||||
BorderThickness="0"
|
||||
Width="{Binding Width}"
|
||||
TextChanged="TextBox_OnTextChanged"
|
||||
Margin="0, 0, 0, 0"
|
||||
Padding="5,0,5,0"
|
||||
TextAlignment="Center"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="White"
|
||||
Background="Transparent"
|
||||
IsHitTestVisible="True"
|
||||
FontSize="{Binding FontSize}"
|
||||
IsTabStop="False"
|
||||
IsReadOnly="False"
|
||||
Text="{Binding Content}"
|
||||
VerticalContentAlignment="Center"
|
||||
KeyDown="InputElement_OnKeyDown"
|
||||
>
|
||||
</TextBox>
|
||||
<Button Command="{Binding RemoveButtonClicked}" FontSize="{Binding FontSize}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Width="25" Padding="1,-3,0,0" Margin="5,0,0,0">
|
||||
x
|
||||
</Button>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</StackPanel>
|
||||
<!--</Border>-->
|
||||
</Window>
|
||||
|
||||
Reference in New Issue
Block a user