淘宝拍单

This commit is contained in:
wule committed 2026-10-05 07:37:45 +08:00
1 parent 37cb8e86ae
commit c993e00f15
4 files changed
+283 -89

No files matched your search

@@ -1,21 +1,37 @@
<UserControl x:Class="_29WxOrderWpf.UserControls.UcWaterMarkTextBox"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:_29WxOrderWpf.UserControls"
mc:Ignorable="d"
d:DesignHeight="28" d:DesignWidth="100">
<UserControl.Resources>
<ResourceDictionary>
<local:WaterMarkVisibilityConverter x:Key="WaterMarkVisibility"/>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<TextBox x:Name="txt" Text="{Binding Text, Mode=TwoWay}" Style="{StaticResource BaseRoundCornerTextBoxStyle}" BorderBrush="{StaticResource pageColorBrush}"
BorderThickness="{Binding TextBorderThickness}"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Center" TextWrapping="{Binding TextWrapping}" TextChanged="txt_TextChanged"/>
<TextBlock x:Name="tbWaterMark" Text="{Binding WaterMark}" Margin="4,0,4,0" VerticalAlignment="Center" IsHitTestVisible="False" Foreground="DarkGray"
Visibility="{Binding ElementName=txt,Path=Text,Converter={StaticResource WaterMarkVisibility}}"></TextBlock>
</Grid>
<UserControl
x:Class="_29WxOrderWpf.UserControls.UcWaterMarkTextBox"
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:local="clr-namespace:_29WxOrderWpf.UserControls"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="28"
d:DesignWidth="100"
mc:Ignorable="d">
<UserControl.Resources>
<ResourceDictionary>
<local:WaterMarkVisibilityConverter x:Key="WaterMarkVisibility" />
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<TextBox
x:Name="txt"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
VerticalContentAlignment="Center"
BorderBrush="{StaticResource pageColorBrush}"
BorderThickness="{Binding TextBorderThickness}"
Style="{StaticResource BaseRoundCornerTextBoxStyle}"
Text="{Binding Text, Mode=TwoWay}"
TextChanged="txt_TextChanged"
TextWrapping="{Binding TextWrapping}" />
<TextBlock
x:Name="tbWaterMark"
Margin="4,0,4,0"
VerticalAlignment="Center"
Foreground="DarkGray"
IsHitTestVisible="False"
Text="{Binding WaterMark}"
Visibility="{Binding ElementName=txt, Path=Text, Converter={StaticResource WaterMarkVisibility}}" />
</Grid>
</UserControl>