Search found 96 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 10
by asusralis
19 Jul 2020, 07:32
Forum: General Discussion
Replies: 5
Views: 410

Re: Problems extending Tooltip.

Isn't this different from WPF? This code works in WPF with a blank project without setting PlacementTarget: public class SmartTooltip : ToolTip { private void UpdatePosition(Point pos) { HorizontalOffset = pos.X + 0; double height = ((FrameworkElement)GetTemplateChild("Root")).ActualHeight; Vertical...
by asusralis
16 Jul 2020, 00:56
Forum: General Discussion
Replies: 11
Views: 449

Re: Problem having elements in world space.

Thank you so much for the example! I am sure I will figure it out using this.

Yes, that was in deep profile. Without deep profile it's more like 13 @ .50ms which is a lot better!
by asusralis
15 Jul 2020, 09:56
Forum: General Discussion
Replies: 5
Views: 410

Problems extending Tooltip.

I'm trying to create a Tooltip that follows the mouse cursor, among other things. I have two distinct problems: 1): PlacementTarget kept returning null. I didn't think you had to explicitly set ToolTipService.PlacementTarget, but it seems like you have to? Additionally, once this was set, for some r...
by asusralis
15 Jul 2020, 09:44
Forum: General Discussion
Replies: 11
Views: 449

Re: Problem having elements in world space.

I made sure to have execution order for the behavior that is updating them to be the last one. If noesis renders on lateupdate, I have no idea why it would do this! That did help! Is this performance normal? https://i.imgur.com/HpTlwHe.png It's around 2 ms to update both x & y for 23 elements. That ...
by asusralis
14 Jul 2020, 07:15
Forum: General Discussion
Replies: 11
Views: 449

Re: Problem having elements in world space.

Hm, I'm updating them in a normal Update, but it seems to still float around. Yes, I'm using Unity. You can see it here: https://files.catbox.moe/k0q2a2.mp4 Also, is this performance normal? Setting the positions of the elements, which are each binded to Canvas.Left/Right, seem to severely hurt my f...
by asusralis
13 Jul 2020, 22:40
Forum: General Discussion
Replies: 11
Views: 449

Re: Problem having elements in world space.

I see, thank you for the information! I also had the ScaleTransform after the TranslateTransform, but making the ScaleTransform apply first made it work correctly. Is there a proper place to update the positions so it doesn't look like the elements are gliding when the camera moves? I tried putting ...
by asusralis
13 Jul 2020, 05:28
Forum: General Discussion
Replies: 11
Views: 449

Re: Problem having elements in world space.

by asusralis
13 Jul 2020, 05:26
Forum: General Discussion
Replies: 11
Views: 449

Problem having elements in world space.

I'm trying to have a canvas for all of the elements that need to pretend like they exist in the world space (health bars, etc). I'm having a problem with how the Canvas.Left & Canvas.Top interacts with RenderTransformOrigin. It seems that, despite being set to 0.5, 0.5, the canvas position is always...
by asusralis
25 Jun 2020, 22:47
Forum: General Discussion
Replies: 9
Views: 492

Re: "Can't Freeze BeginStoryboard.Storyboard" when using an attached property.

It doesn't seem like anything is happening in the StoryboardCompletedTrigger. Even putting a wrong TargetType (I would assume it would give an error) does nothing. I did remove the scale animation to test the height. Here is the entire DataTemplate: <DataTemplate> <StackPanel x:Name="WishRoot" Backg...
by asusralis
23 Jun 2020, 20:52
Forum: General Discussion
Replies: 9
Views: 492

Re: "Can't Freeze BeginStoryboard.Storyboard" when using an attached property.

Is it supposed to be like this? It is not giving me the error message anymore, and the animation is still playing, but I'm just not getting the CompletedFinishedCommand invoked. I'm certain it's binding correctly as the other properties are, and I've double checked the spelling. <StackPanel.Resource...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 10