 |
|
 |
I friend, I need help, i need create public void SwitchToPage(UserControl p) in vb.net, help me please, my problems is in create this line "currStb.Completed += new EventHandler(currStb_Completed);" in vb.net, not appear this event "Completed" in vb.net, help please !!!
|
|
|
|
 |
|
 |
two guys to write this weak article? Really?
|
|
|
|
 |
|
 |
A good article doesn't just include code - it includes a description of WHY the code is as it is. What does the plane projection do? Why did you choose it? How about a comment in the code?
|
|
|
|
 |
|
 |
Hi guys,
This is an excellent article. It works great. But in my solution, i dont have any Mainpage. I just want to navigate from page1 to page2.when i click a link in page1,rotation happens,but page2 is not loaded. Any suggestion for this ?
Gomathi R
|
|
|
|
 |
|
 |
whats shown after rotation??
btw r u using c# or vb code. coz my vb code doesnt seems to be working.. dont know what is missing. :(
|
|
|
|
 |
|
 |
Hi,
I am using c# only. If i click the link Page1 rotates , but Page2 does not appears.
Gomathi R
|
|
|
|
 |
|
 |
Please Please help me out of this..
This seems to be a straight forward thing. It really works great in C#. but since my application is in VB, I tried converting it in VB and it didn't worked as expected. After converting, when I click the buttons the other page simply loads without and flip animation. Any Idea what am I missing out there ???
|
|
|
|
 |
|
 |
I am new to this - can someone help me with little description on - how to implement this code....
--TJ
|
|
|
|
 |
|
 |
thinks.
|
|
|
|
 |
|
|
 |
|
 |
Sort of lacks substance...
|
|
|
|
 |
|
 |
This posting is not really all the valid, if you are going to use the same animation for all the pages. Then you only need to have the MainPage.xaml contain the following:
<UserControl x:Class="SilverlightFlipNavigation.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="auto" Height="auto">
<Grid x:Name="LayoutRoot" Opacity="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.167*"/>
<ColumnDefinition Width="0.681*"/>
</Grid.ColumnDefinitions>
<Border BorderBrush="#FF2DA2AC" BorderThickness="3,3,3,3" VerticalAlignment="Stretch" CornerRadius="5,5,5,5" Background="{x:Null}" Margin="0,0,0,0" Opacity="1"/>
<StackPanel Grid.Column="0" Margin="10,10,10,10" >
<Button Content="Page 1" Margin="0,10,0,10" Click="Button1_Click"></Button>
<Button Content="Page 2" Margin="0,10,0,10" Click="Button2_Click"></Button>
<Button Content="Page 3" Margin="0,10,0,10" Click="Button3_Click"></Button>
<Button Content="Page 4" Margin="0,10,0,10" Click="Button4_Click"></Button>
</StackPanel>
<Border Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" BorderBrush="#FF2DA2AC" BorderThickness="3,3,3,3" Background="{x:Null}" CornerRadius="5,5,5,5">
<Grid x:Name="PageContainer" RenderTransformOrigin="0.212,0.857" Margin="3,3,3,3">
<Grid.Projection>
<PlaneProjection x:Name="PageContainerProjection"/>
</Grid.Projection>
</Grid>
</Border>
</Grid>
</UserControl>
The other pages would have to have the following:
<UserControl x:Class="SilverlightFlipNavigation.Page3"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="Auto" Height="Auto">
<Grid x:Name="LayoutRoot" Background="Gray">
<TextBlock Text="Page 3" FontSize="20"></TextBlock>
</Grid>
</UserControl>
This removes the need to have the PlaneProjection in each of the pages and therefore you can remove the code from each of the the Page{number}.xaml.cs files
The only thing that you would need to change in the current code is the way the resources are accessed before call begin on the animation and that would be to use the MainPage's resources instead of calling CurrentPage and NextPage
example Storyboard stb = NextPage.Resources["StartOfPage"] as Storyboard; becomes Storyboard stb = this.Resources["StartOfPage"] as Storyboard;
|
|
|
|
 |
|
|
 |
|
 |
Your code works very nicely and it's just what I was looking for. However you need to add some explanations of the snippets. I still voted 5 for encouragement.
|
|
|
|
 |
|
 |
excellent
|
|
|
|
 |
|
 |
No article; just a couple snippets of code and a sentence or two.
|
|
|
|
 |
|
 |
Thanks for your comments. This is our first post in codeproject and we are newbie to silverlight. We will try to do better in future.
venki
|
|
|
|
 |
|
|
 |
|
 |
Thanks for your comments, this is our first blog in codeproject. We do our best in the next sequence of blogs.
|
|
|
|
 |
|
 |
Balaji Ganesaan wrote: is our first blog in codeproject
err... no, it has been posted as "ARTICLE".
Blog posts are other things.
If that's was your original intention, that's the reasons for all the poor voting.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
 |