2014-01-29 30 views

回答

4

可以实现与多个TextBlock S作为Button内容:

<Button x:Name="play_tues" 
    HorizontalAlignment="Left" Margin="306,108,-104,0" 
    VerticalAlignment="Top" Height="124" Width="254"> 
    <StackPanel> 
     <TextBlock>Psalm 82</TextBlock> 
     <TextBlock>פרק פב</TextBlock> 
    </StackPanel> 
</Button> 
+3

能使用换行符'' /'' 如果你想要做内联等; '

0

它也是有用的。试试这个里面使用的TextBlock运行

<Button x:Name="play_tues" HorizontalAlignment="Left" Margin="306,108,-104,0" 
     VerticalAlignment="Top" Height="124" Width="254"> 
<TextBlock> 
<TextBlock.Inlines> 
    <Run Text="פרק פב"/> 
    Run Text="Psalm 82"/> 
    </TextBlock.Inlines> 
    </TextBlock> 
</Button> 
相关问题