2013-11-20 20 views
0
<Window 
    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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="Tetris.MainWindow" 
    Title="MainWindow" Height="570" Width="525"> 

<DockPanel LastChildFill="False"> 
    <StackPanel DockPanel.Dock="Right" Width="127"> 
     <Label Content="Label" Height="56" Name="Scores" FrontSize="28" FrontWeight ="Bolt" /> 
     <Label Content="Label" Height="56" Name="Lines" FrontSize="28" FrontWeight="Bolt"/> 
    </StackPanel> 

</DockPanel> 

爲什麼我不能使用FrontSize在XAML

所以,我嘗試使用FrontSize和FrontWeight在我的標籤,但它沒有工作 - 請告訴我我的錯誤?順便說一下,我的最後一個FrontWeight實際上工作。

+0

沒有它不工作.. – user3013837

+2

+1只是爲了epicness ... –

回答

4

它的「字體」,而不是「前」和「大膽」,而不是「閃電狗」(諷刺的是,因爲我的名字):

 <Label Content="Label" Height="56" Name="Scores" FontSize="28" FontWeight="Bold" /> 
     <Label Content="Label" Height="56" Name="Lines" FontSize="28" FontWeight="Bold" /> 
+0

omg ---當然是......我是來自德國的,所以這樣的拼寫錯誤總是會發生......謝謝你,「BoltClock」;-)哈哈! – user3013837

+0

對不起,我不能upvote你的答案:/ – user3013837

+1

沒關係,它需要更多的代表能夠upvote。您可以通過單擊投票箭頭下方的勾號來在幾分鐘內將其標記爲已接受。很高興我幫了忙! – BoltClock

相關問題