WPF 程序中文字描边问题

Dll调用:测试

  

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

控件相关属性的设置:spa

<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为文本颜色。xml

效果: blog

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

相关文章
相关标签/搜索