Categories > Coding > C# >

XAML/C# How would i make a page slide in

Posts: 11

Threads: 6

Joined: Feb, 2023

Reputation: -6

Posted

how would i make a page slide in without having to make a new xaml window? like comet ware the script list opens like that

  • 0

Exploits I own: Synapse, Comet, Surefire I made Surefire

Exploits I want: Scriptware, sentinel

Surefires discord: discord.gg/kyH7vEE8

Posts: 4

Threads: 0

Joined: Feb, 2023

Reputation: 0

Replied

Its quite complicated to explain how, If you know how to work with WPF uis n stuff, you'll probably will know.

Well you're quite lucky(I guess) I think Comet its not obfuscated, you can always look at Comet source code using tools like Dnspy, Dotpeek, others to see how comet dev made it.

  • 0

OyAdonis

Owner of Xenon [BETA]

vip

Posts: 225

Threads: 26

Joined: Mar, 2022

Reputation: -20

Replied

use a storyboard. learn how to use storyboards and it will be much easy for u man

  • 0

professional exploiter

Posts: 531

Threads: 20

Joined: Nov, 2022

Reputation: 44

Replied

use storyboard, just google or chatgpt

  • 0

https://cdn.discordapp.com/attachments/1136067487847415848/1146449877660872785/image.png

https://cdn.discordapp.com/attachments/1098921594249814066/1112144294007029932/WRDBanner_Alawapr_1.png

Posts: 662

Threads: 65

Joined: Oct, 2022

Reputation: 30

Replied

  • 0

Try the cheat launcher verve today ⬇

https://i.imgur.com/QdS8sQ5.png

Join Neuron Discord Server - https://discord.gg/harAKHv32K

N4ri

truly gamer pro :suncool:

contentCreator

Posts: 575

Threads: 88

Joined: Mar, 2020

Reputation: 46

Replied

Comet uses storyboard, but we do it both in c# and by making the animation in blend. The Script List Animation is done in C#.

  • 0

<3 N4ri
---

Exploits i use: Comet
Scripts i use: anything cool

Posts: 11

Threads: 6

Joined: Feb, 2023

Reputation: -6

Replied

N4ri how would i do that

  

  • 0

Exploits I own: Synapse, Comet, Surefire I made Surefire

Exploits I want: Scriptware, sentinel

Surefires discord: discord.gg/kyH7vEE8

Posts: 662

Threads: 65

Joined: Oct, 2022

Reputation: 30

Replied

@Astronemi,

I also just learned storyboards. Its pretty fun to do experiments with https://streamable.com/jv6omv

  • 0

Try the cheat launcher verve today ⬇

https://i.imgur.com/QdS8sQ5.png

Join Neuron Discord Server - https://discord.gg/harAKHv32K

Posts: 533

Threads: 41

Joined: May, 2020

Reputation: 4

Replied

Animations and precise timing between the animations on when switch the pages out

  • 0

nltr | Xaml & C# Developer Former Fluxus Administrator
------------------------------------------------------------------------------------
💜 Developer of Kronos 💜

Senior Dev of Orbit

Discord

Haruka

STD Testing Center

Posts: 58

Threads: 3

Joined: Feb, 2023

Reputation: 5

Replied

you can use a Frame control and set the Content property to the desired page. You can then animate the Frame control to slide in and out of view

 

<Window x:Class="PageSlideInExample.MainWindow"
        ...
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <Frame Name="ContentFrame" NavigationUIVisibility="Hidden" />
    </Grid>
</Window>
private void NavigateToPage(Page page)
{
    // set the content of the frame to the specified page
    ContentFrame.Content = page;

    // create the animation
    var sb = new Storyboard();
    var marginAnimation = new ThicknessAnimation
    {
        From = new Thickness(ContentFrame.ActualWidth, 0, -ContentFrame.ActualWidth, 0),
        To = new Thickness(0),
        Duration = new Duration(TimeSpan.FromMilliseconds(500))
    };
    Storyboard.SetTarget(marginAnimation, ContentFrame);
    Storyboard.SetTargetProperty(marginAnimation, new PropertyPath(FrameworkElement.MarginProperty));

    // add the animation to the storyboard and start it
    sb.Children.Add(marginAnimation);
    sb.Begin();
}

private void HomeButton_Click(object sender, RoutedEventArgs e)
{
    NavigateToPage(new HomePage());
}

private void AboutButton_Click(object sender, RoutedEventArgs e)
{
    NavigateToPage(new AboutPage());
}
  • 1

https://media.discordapp.net/attachments/979069297374671018/1078367228593971362/VelvetSiggy.png

 

 

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )