2013-03-19 62 views

回答

1

創建手風琴的技術之一是使用ZeroProximity.Accordion。這是控制的端口。

您可以通過


只需在您的XAML文件的頂部添加一個引用:

xmlns:controls="using:ZeroProximity.Controls" 

然後你就可以使用<controls:...

<controls:Accordion>...</controls:Accordion>使用的控件,
<controls:AccordionItem>...</controls:AccordionItem>


下面是一個簡單的例子,讓你開始:

<controls:Accordion HorizontalAlignment="Stretch" SelectionMode="ZeroOrOne">      
    <controls:AccordionItem Header="IPL Teams" FontSize="35"> 
     <controls:AccordionItem.Content> 
      <StackPanel> 
       <TextBlock Text="India"></TextBlock> 
       <TextBlock Text="Australia"></TextBlock> 
       <TextBlock Text="Bangladesh"></TextBlock> 
       <TextBlock Text="Pakistan"></TextBlock> 
      </StackPanel> 
     </controls:AccordionItem.Content> 
    </controls:AccordionItem> 
    <controls:AccordionItem Header="IPL Teams" FontSize="35"> 
     <controls:AccordionItem.Content> 
      <StackPanel> 
       <TextBlock Text="India" ></TextBlock> 
       <TextBlock Text="Australia"></TextBlock> 
       <TextBlock Text="Bangladesh"></TextBlock> 
       <TextBlock Text="Pakistan"></TextBlock> 
      </StackPanel> 
     </controls:AccordionItem.Content> 
    </controls:AccordionItem> 
</controls:Accordion> 

*在編輯本文時(2016年12月1日),未找到有關此軟件包的官方文檔或網站。