Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <StackPanel Grid.Row="0" Margin="10, 40, 10, 0">
- <TextBlock Text="Email" />
- <TextBox PlaceholderText="abc@gmail.com" Text="abcd@gmail.com" InputScope="EmailSmtpAddress" Name="logintext" MaxLength="30"/>
- <TextBlock Text="Password" />
- <PasswordBox Name="pass2" Password="6F6N" />
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Button Content="Login" />
- <Button Content="Register" Grid.Column="1" />
- </Grid>
- <TextBlock Text="Forgot Password?" FontSize="20" HorizontalAlignment="Center" Tapped="forgetPassword_Tapped" Foreground="Blue" Margin="0, 10, 0, 0"/>
- </StackPanel>
- </Grid>
- <Grid Name="SecondaryGrid" Visibility="Collapsed" Background="#BB000000" RenderTransformOrigin="0.5,0.5" >
- <Grid.RenderTransform>
- <CompositeTransform/>
- </Grid.RenderTransform>
- <StackPanel Margin="5" VerticalAlignment="Center" Background="ForestGreen">
- <StackPanel Margin="10">
- <TextBlock Text="Forgot Password" />
- <TextBlock Text="Email" />
- <TextBox Name="forgotPassTxtBox" PlaceholderText="abc@gmail.com" InputScope="EmailSmtpAddress" MaxLength="30"/>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Button Content="Send" Name="saveBtn" />
- <Button Content="Cancel" Name="cancelBtn" Click="cancelBtn_Click" Grid.Column="1"/>
- </Grid>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Grid>
- private void forgetPassword_Tapped(object sender, TappedRoutedEventArgs e)
- {
- //Storyboard sb = new Storyboard();
- //sb.Begin();
- //SecondaryGrid.Visibility = Visibility.Visible;
- Grid gd= this.FindName("SecondaryGrid") as Grid;
- DoubleAnimationUsingKeyFrames dm=new DoubleAnimationUsingKeyFrames();
- LinearDoubleKeyFrame l1=new LinearDoubleKeyFrame();
- LinearDoubleKeyFrame l2=new LinearDoubleKeyFrame();
- l1.Value=-703.203;
- l1.KeyTime=TimeSpan.FromSeconds(0);
- l2.Value=0;
- l2.KeyTime=TimeSpan.FromSeconds(1);
- dm.KeyFrames.Add(l1);
- dm.KeyFrames.Add(l2);
- dm.Duration=new Duration(TimeSpan.FromMilliseconds(3000));
- Storyboard sb = new Storyboard();
- sb.Children.Add(dm);
- Storyboard.SetTarget(dm, gd);
- Storyboard.SetTargetName(dm, gd.Name);
- Storyboard.SetTargetProperty(dm, "Opacity");
- sb.Begin();
- SecondaryGrid.Visibility = Visibility.Visible;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement