How to slide a panel from right to left using bunifuTransition in c#
I have bunifutransition1
that slides my mainpanel
from left to right upon clicking showbutton
. (It shows the hidden mainpanel
.)
What I want is, when I click closebutton
, the mainpanel
will slide from right to left (to hide the mainpanel
again). It seems that bunifuTransition does not have an animation that reverses the animation of VertSlide or HorizSlide.
What should I do to slide my mainpanel
from right to left to hide it again on my form?
bunifu
add a comment |
I have bunifutransition1
that slides my mainpanel
from left to right upon clicking showbutton
. (It shows the hidden mainpanel
.)
What I want is, when I click closebutton
, the mainpanel
will slide from right to left (to hide the mainpanel
again). It seems that bunifuTransition does not have an animation that reverses the animation of VertSlide or HorizSlide.
What should I do to slide my mainpanel
from right to left to hide it again on my form?
bunifu
add a comment |
I have bunifutransition1
that slides my mainpanel
from left to right upon clicking showbutton
. (It shows the hidden mainpanel
.)
What I want is, when I click closebutton
, the mainpanel
will slide from right to left (to hide the mainpanel
again). It seems that bunifuTransition does not have an animation that reverses the animation of VertSlide or HorizSlide.
What should I do to slide my mainpanel
from right to left to hide it again on my form?
bunifu
I have bunifutransition1
that slides my mainpanel
from left to right upon clicking showbutton
. (It shows the hidden mainpanel
.)
What I want is, when I click closebutton
, the mainpanel
will slide from right to left (to hide the mainpanel
again). It seems that bunifuTransition does not have an animation that reverses the animation of VertSlide or HorizSlide.
What should I do to slide my mainpanel
from right to left to hide it again on my form?
bunifu
bunifu
edited Nov 14 '18 at 12:04
Hans Passant
796k10913222108
796k10913222108
asked Oct 15 '18 at 3:24
newbie programmernewbie programmer
177
177
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I was having the exact same issue but upon reading your question the answer finally became prevalent in my mind. The solution here is to stop using BunifuTranisition
altogether and go for the good ol' for loops and the other mods, puns intended.
int originalWidth = panel.width;
int menuClicksIndex = 0;
private void beginTransition()
if (menuClickIndex % 2 == 0)
//This executes on the first click
for(int i = originalWidth-1; i>=0; i--)
// Loops from original width to 0
panel.Width = i;
else
for (int i = 0; i <= originalWidth; i++)
panel.Width = i;
menuClickIndex++;
This works for me but it glitches on the way back from left to right. So a mixed version with BunifuTransitions
for the opener and the for loop
for the closer would be the ideal solution here.
UPDATE 1: It seems as if while changing the width of the panel from 0 to say, 350, the content inside the panel doesn't render until the height is set to the max, but while decreasing the height from 350 to 0, the content is already rendered and so it seems smooth to close but cluttery to open, hence probably explaining why BunifuTransition is unable to do that as well.
add a comment |
Solution Here.
Just go bunifu transition properties
Open or dragdown DefaultAnimation. Find this option in menu ("Side Coeff") It Show value of
X and Y X=1, Y=0 . You just change this value X=-1, Y=0.
Then Start your project and check. Your slider sliding left to right. :)
Keep enjoy.
Regards,
Haris Ali
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52809357%2fhow-to-slide-a-panel-from-right-to-left-using-bunifutransition-in-c-sharp%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I was having the exact same issue but upon reading your question the answer finally became prevalent in my mind. The solution here is to stop using BunifuTranisition
altogether and go for the good ol' for loops and the other mods, puns intended.
int originalWidth = panel.width;
int menuClicksIndex = 0;
private void beginTransition()
if (menuClickIndex % 2 == 0)
//This executes on the first click
for(int i = originalWidth-1; i>=0; i--)
// Loops from original width to 0
panel.Width = i;
else
for (int i = 0; i <= originalWidth; i++)
panel.Width = i;
menuClickIndex++;
This works for me but it glitches on the way back from left to right. So a mixed version with BunifuTransitions
for the opener and the for loop
for the closer would be the ideal solution here.
UPDATE 1: It seems as if while changing the width of the panel from 0 to say, 350, the content inside the panel doesn't render until the height is set to the max, but while decreasing the height from 350 to 0, the content is already rendered and so it seems smooth to close but cluttery to open, hence probably explaining why BunifuTransition is unable to do that as well.
add a comment |
I was having the exact same issue but upon reading your question the answer finally became prevalent in my mind. The solution here is to stop using BunifuTranisition
altogether and go for the good ol' for loops and the other mods, puns intended.
int originalWidth = panel.width;
int menuClicksIndex = 0;
private void beginTransition()
if (menuClickIndex % 2 == 0)
//This executes on the first click
for(int i = originalWidth-1; i>=0; i--)
// Loops from original width to 0
panel.Width = i;
else
for (int i = 0; i <= originalWidth; i++)
panel.Width = i;
menuClickIndex++;
This works for me but it glitches on the way back from left to right. So a mixed version with BunifuTransitions
for the opener and the for loop
for the closer would be the ideal solution here.
UPDATE 1: It seems as if while changing the width of the panel from 0 to say, 350, the content inside the panel doesn't render until the height is set to the max, but while decreasing the height from 350 to 0, the content is already rendered and so it seems smooth to close but cluttery to open, hence probably explaining why BunifuTransition is unable to do that as well.
add a comment |
I was having the exact same issue but upon reading your question the answer finally became prevalent in my mind. The solution here is to stop using BunifuTranisition
altogether and go for the good ol' for loops and the other mods, puns intended.
int originalWidth = panel.width;
int menuClicksIndex = 0;
private void beginTransition()
if (menuClickIndex % 2 == 0)
//This executes on the first click
for(int i = originalWidth-1; i>=0; i--)
// Loops from original width to 0
panel.Width = i;
else
for (int i = 0; i <= originalWidth; i++)
panel.Width = i;
menuClickIndex++;
This works for me but it glitches on the way back from left to right. So a mixed version with BunifuTransitions
for the opener and the for loop
for the closer would be the ideal solution here.
UPDATE 1: It seems as if while changing the width of the panel from 0 to say, 350, the content inside the panel doesn't render until the height is set to the max, but while decreasing the height from 350 to 0, the content is already rendered and so it seems smooth to close but cluttery to open, hence probably explaining why BunifuTransition is unable to do that as well.
I was having the exact same issue but upon reading your question the answer finally became prevalent in my mind. The solution here is to stop using BunifuTranisition
altogether and go for the good ol' for loops and the other mods, puns intended.
int originalWidth = panel.width;
int menuClicksIndex = 0;
private void beginTransition()
if (menuClickIndex % 2 == 0)
//This executes on the first click
for(int i = originalWidth-1; i>=0; i--)
// Loops from original width to 0
panel.Width = i;
else
for (int i = 0; i <= originalWidth; i++)
panel.Width = i;
menuClickIndex++;
This works for me but it glitches on the way back from left to right. So a mixed version with BunifuTransitions
for the opener and the for loop
for the closer would be the ideal solution here.
UPDATE 1: It seems as if while changing the width of the panel from 0 to say, 350, the content inside the panel doesn't render until the height is set to the max, but while decreasing the height from 350 to 0, the content is already rendered and so it seems smooth to close but cluttery to open, hence probably explaining why BunifuTransition is unable to do that as well.
edited Nov 15 '18 at 3:46
answered Nov 14 '18 at 7:26
TheFlyBiker 420TheFlyBiker 420
2211
2211
add a comment |
add a comment |
Solution Here.
Just go bunifu transition properties
Open or dragdown DefaultAnimation. Find this option in menu ("Side Coeff") It Show value of
X and Y X=1, Y=0 . You just change this value X=-1, Y=0.
Then Start your project and check. Your slider sliding left to right. :)
Keep enjoy.
Regards,
Haris Ali
add a comment |
Solution Here.
Just go bunifu transition properties
Open or dragdown DefaultAnimation. Find this option in menu ("Side Coeff") It Show value of
X and Y X=1, Y=0 . You just change this value X=-1, Y=0.
Then Start your project and check. Your slider sliding left to right. :)
Keep enjoy.
Regards,
Haris Ali
add a comment |
Solution Here.
Just go bunifu transition properties
Open or dragdown DefaultAnimation. Find this option in menu ("Side Coeff") It Show value of
X and Y X=1, Y=0 . You just change this value X=-1, Y=0.
Then Start your project and check. Your slider sliding left to right. :)
Keep enjoy.
Regards,
Haris Ali
Solution Here.
Just go bunifu transition properties
Open or dragdown DefaultAnimation. Find this option in menu ("Side Coeff") It Show value of
X and Y X=1, Y=0 . You just change this value X=-1, Y=0.
Then Start your project and check. Your slider sliding left to right. :)
Keep enjoy.
Regards,
Haris Ali
answered Feb 21 at 23:31
Haris AliHaris Ali
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52809357%2fhow-to-slide-a-panel-from-right-to-left-using-bunifutransition-in-c-sharp%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown