1
這是XAML代碼到現在如何做翻轉板?
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Flip_Panel.MainWindow"
x:Name="Window"
Title="MainWindow"
Width="750"
Height="550"
Loaded="Window_Loaded">
<StackPanel x:Name="Panel">
<Grid Margin="10"
x:Name="Flip"
Height="480"
Width="750">
<StackPanel x:Name="Front">
<Image x:Name="Vinodh_Object"></Image>
</StackPanel>
<StackPanel x:Name="Back"
Height="480"
Width="750">
<Image x:Name="Thilak_Object"></Image>
</StackPanel>
</Grid>
<Button x:Name="FlipButton"
Width="100"
Height="25"
Content="Flip to Back"
HorizontalAlignment="Center"
Margin="0,-50,0,0"></Button>
<Button x:Name="FlipButton1"
Width="100"
Height="25"
Content="Flip to Front"
HorizontalAlignment="Center"
Margin="0,-50,0,0"></Button>
</StackPanel>
</Window>
現在,當第一個點擊事件發生時我想的面板翻轉,然後當我再次點擊後,我想面板再次翻轉,以顯示第一圖像?
如何從這裏開始?
謝謝
你是如何構建的變換/動畫尋找方向? – arootbeer 2011-04-18 16:18:05
@arootbeer是的我想讓面板翻轉以便我可以查看第二個圖像?有沒有可能做這樣的事情? – Chandran 2011-04-18 16:21:45
我確定它是;我自己並不熟悉這項技術,但我想指出你的問題沒有說清楚。 – arootbeer 2011-04-18 16:28:29