Skip to content
闫驚鏵(Jinhua Yan) edited this page Mar 18, 2023 · 2 revisions

Control Add Mask

  1. Set Mask.Child.
            <Border Background="LawnGreen" Height="200"
                    wd:Mask.IsShow="true"
                    Margin="10">
                <wd:Mask.Child>
                    <Border>
                        <TextBox wd:ElementHelper.IsWatermark="True"
                                 wd:ElementHelper.Watermark="我是蒙板输入框"/>
                    </Border>
                </wd:Mask.Child>
                <Button Content="Mask" 
                        VerticalAlignment="Center" 
                        HorizontalAlignment="Center"/>
            </Border>

Window Show Add Mask

new Window1().MaskShow();

Window ShowDialog Add Mask

new Window1().MaskShowDialog();
Clone this wiki locally