Search found 110 matches

by asusralis
21 Jul 2020, 13:41
Forum: General Discussion
Replies: 2
Views: 364

Inexplicit "Unknown member UserControl.DesignWidth" on certain UserControls.

I'm at a loss on where this is coming from. It says "Unknown member UserControl.DesignWidth/DesignHeight" when certain UserControls are shown. Here is an example UserControl that has this appear: <UserControl x:Class="Empis.Unity.Views.Matchmaking" xmlns="http://schemas.microsoft.com/winfx/2006/xaml...
by asusralis
21 Jul 2020, 11:05
Forum: General Discussion
Replies: 5
Views: 587

Re: Problems extending Tooltip.

Thanks for the info! I will try it out.
by asusralis
20 Jul 2020, 17:49
Forum: General Discussion
Replies: 1
Views: 442

RelativeSource TemplatedParent does not work in Noesis.

Hello! I'm writing a nine slice control, and I'm having trouble binding my imagebrushes to my template. ImageSource is a custom dependency property. This binds correctly in WPF but not Noesis (it just shows the ImageBrush's ImageSources as null): <Grid.Resources> <Style TargetType="Rectangle"> <Sett...
by asusralis
19 Jul 2020, 07:36
Forum: General Discussion
Replies: 5
Views: 587

Re: Problems extending Tooltip.

Is the root grid in that example directly in the control template? Should I just create a custom control derived from popup instead of tooltip?
by asusralis
19 Jul 2020, 07:32
Forum: General Discussion
Replies: 5
Views: 587

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: 551

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: 587

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: 551

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: 551

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: 551

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 ...