WPF 程序中文字描边问题

Dll调用:

  

xmlns:loc="clr-namespace:CustomeControlLib;assembly=CustomeControlLib"

控件相关属性的设置:

<StackPanel Orientation="Vertical">

            <loc:BorderTextBlock Height="30" Width="150" BorderText="测试数据" FontSize="25" FontFamily="华文行楷"

                                 BorderBrush="Green" Foreground="Red" TextAlignment="Center" Background="Transparent"/>

            <loc:BorderTextBlock Height="30" Width="150" BorderText="测试数据" FontSize="25" FontFamily="隶书"

                                 BorderBrush="Pink" Foreground="Blue" TextAlignment="Center" Background="Transparent"/>

            <loc:BorderTextBlock Height="30" Width="150" BorderText="测试数据" FontSize="25" FontFamily="楷体"

                                 BorderBrush="Black" Foreground="Yellow" TextAlignment="Center" Background="Transparent"/>

        </StackPanel>

  注:BorderText为显示的文本、BorderBrush为边框的颜色、Foreground为文本颜色。

效果: 

WPF 程序中文字描边问题

Dll下载路径:http://files.cnblogs.com/wrl-wuqingxue/CustomeControlLib.rar

你可能感兴趣的:(WPF)