Search found 47 matches

by digimbyte
05 Jul 2019, 01:43
Forum: General Discussion
Replies: 16
Views: 437

Re: How to get Actual Size programmatically based on internal content?

I can't believe I missed that, I conformed all clamping to a function now to prevent this from happening again.
it works.
by digimbyte
04 Jul 2019, 06:22
Forum: General Discussion
Replies: 16
Views: 437

Re: How to get Actual Size programmatically based on internal content?

I get that, I am using these implimentations in my code, but it's not working as intended. Testing your suggestion of SizeChanged seems like it would be the ideal solution. but for some reason it still didn't clamp position based on the new actual width/height. is actual Width perhaps calculated wit...
by digimbyte
04 Jul 2019, 01:10
Forum: General Discussion
Replies: 6
Views: 151

Re: Trying to finding First Node from root

in my original script, pre-zdepth it wouldn't release the captureMouse when moving the panel index to the bottom of the children stack. (particularly when instantiating new panels) so the end result was the first panel had the captureMouse handler stuck on it but it wouldn't release it despite promp...
by digimbyte
03 Jul 2019, 15:33
Forum: General Discussion
Replies: 6
Views: 151

Re: Trying to finding First Node from root

I ended going with Zindex changing the order of children ended breaking event handlers and capture Mouse was stuck perpetually on a single window index possible bug? Regardless, I implimented any window to have an OnLoaded event to make sure it had the latest Zindex and spent the last 6 hours figuri...
by digimbyte
02 Jul 2019, 14:04
Forum: General Discussion
Replies: 6
Views: 151

Re: Trying to finding First Node from root

I already have a function to reorganise the children, the problem is finding the corresponding parent from child. I dont think it would be efficient to attach an event listener to every UI element when I can have a single call that figures out the corresponding parant chain from the child. I origina...
by digimbyte
02 Jul 2019, 07:25
Forum: General Discussion
Replies: 6
Views: 151

Trying to finding First Node from root

I've been looking at re-arranging my elements in Noesis, when any button is clicked, that root object needs to come forward. I looked into getting the VisualTreeHelper.GetRoot from HitResult.VisualHit but I couldn't cast it as a UIElement so I decided to try getting the Root from a list of HitTestRe...
by digimbyte
30 Jun 2019, 01:38
Forum: General Discussion
Replies: 16
Views: 437

Re: How to get Actual Size programmatically based on internal content?

Noesis.StackPanel Window = new Noesis.StackPanel { HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Top, Background = Brushes.SlateGray, MinHeight = 20, MaxHeight = 800, MinWidth = 120, MaxWidth = 500, CanVerticallyScroll = true }; it does update when being move...
by digimbyte
27 Jun 2019, 16:32
Forum: General Discussion
Replies: 11
Views: 392

Re: navigation between panel

yes, but it all depends what your root UI element is, you could also use a canvas
https://www.noesisengine.com/docs/Gui.Core._Canvas.html
by digimbyte
27 Jun 2019, 07:00
Forum: General Discussion
Replies: 16
Views: 437

Re: How to get Actual Size programmatically based on internal content?

hey, I hate to bump an old thread, but following up with the `.UpdateLayout()` im getting some unexpected results with the following code Minimize.Click += (object sender, RoutedEventArgs args) => { Footer.Visibility = Content.Visibility = (Content.Visibility == Visibility.Visible) ? Visibility.Coll...
by digimbyte
27 Jun 2019, 05:38
Forum: General Discussion
Replies: 11
Views: 392

Re: navigation between panel

you can instantiate them as templates and add them through code behind, or with c# in unity directly. typically you would get the uiRoot and add it to the children in that case if you need to reference the objects, you want to declare them first noesis = this.GetComponent<NoesisView>(); uiRoot = (No...