cant get user control showing after its opened and closed
lowkey needing help i cant get this working once its opened and closed it doesnt open anymore i tried debugging it and it does change the proprities but nothing pops up?
17 Replies
Does the animation automatically set the "visibility" back to visible? Or else that seems like the reason? 🙂
i made it set the visibility when the animation is completed
Ah right now I saw it, sorry - out of luck from a quick look at it 😄
no problem dont worry
im still tryna figure it out
could it be a overlapping issue
@iXyles i tried debugging it
Initial visibility: Hidden
opening visibility: Visible
opening width: 450
recieved initial visibility: Visible
recieved initial width: 450
closed visibility: Hidden
closed width: 0
Initial visibility: Hidden
opening visibility: Visible
opening width: 450
it opens it but its not showing
i stilll need help if anyone could help
What's the difference between ActualWidth and Width?
well ActualWidth gets the current width
also 1 is read only and one is writable
what actual width does is ig get the actual width after creating the layout if im not wrong
In your closing animation, your target is 0 Width. But when you complete it you set it to NAN. Is there a reason behind this?
to make it fill the ui
double.nan is auto
When closing it fills the UI?
ig i tried with 0 but nothing rlly changes
What do you mean?
i mean
the problem
So you've tried it without the
SettingsOverlay.Width = double.NaN;
? If so isn't its assignment redundant?i mean
i tried also using 0
as width
but
its still the same problem
Hm, okay then. What's the classes for the first and second method?
Is the first "SettingsOverlay" right?
return for settings user control
and the other one for the main window
how do i change this to solved
If you have no further questions, please use /close to mark the forum thread as answered