當我點擊按鈕時,我想讓邊框和文本塊消失,當再次單擊按鈕時出現邊框和文本塊。用windows phone上的按鈕隱藏邊框和文本塊
這是我的XAML:
<Border x:Name="descbox" Background="#A6CFC9A8" Height="80" VerticalAlignment="Bottom" Visibility="Visible" Margin="0,-100,0,0">
<ScrollViewer VerticalScrollMode="Auto" Height="auto" Margin="0,0,0.333,0" HorizontalScrollBarVisibility="Visible">
<StackPanel Width="548">
<TextBlock x:Name="desc" Text="{Binding Description}" FontFamily="verdana" FontSize="19" Foreground="#CC000000" TextWrapping="Wrap" Padding="0,10" TextAlignment="Justify" Margin="0,0,10.333,0"/>
</StackPanel>
</ScrollViewer>
</Border>
<Button Content="Button"/>
如何使其在Windows Phone的8.1?
添加'OnClick'event你的按鈕,並添加代碼顯示/隱藏邊框和文本塊此事件。 – Sybren