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

相關文章
相關標籤/搜索