Search found 42 matches

by steveh
30 Jun 2022, 01:21
Forum: General Discussion
Replies: 4
Views: 126

Re: Render something once in multiple templates

That works perfect! Cheers for the help.
by steveh
29 Jun 2022, 00:15
Forum: General Discussion
Replies: 4
Views: 126

Re: Render something once in multiple templates

Much appreciated Sergio, that's pretty much perfect! However, there is a slight glitch when the brush is slightly more complicated. I've not worked out the cause of it yet, but I'm guessing it may have something to do with the viewbox. You can see the glitch here: https://www.noesisengine.com/xamlto...
by steveh
24 Jun 2022, 01:18
Forum: General Discussion
Replies: 4
Views: 126

Render something once in multiple templates

Hi guys, So I have a custom ControlTemplate which references a "loading" spinning widget so we can show a placeholder XAML object until some objects have streamed in. I've created a smaller sample that sort of represents what we have: https://www.noesisengine.com/xamltoy/5f735e8fbbc7c72c0d...
by steveh
05 May 2022, 23:53
Forum: General Discussion
Replies: 1
Views: 142

EventTriggers inside ControlTemplates - avoiding leaks

Hi guys, So I'm attempting to fix the last remaining leaks in our game and I can't find a nice solution to the following problem. So currently I'm using the NsApp EventTrigger inside a ControlTemplate to invoke a custom command action when a bespoke routed event is raised: <ControlTemplate x:Key=&qu...
by steveh
11 Aug 2021, 11:08
Forum: General Discussion
Replies: 3
Views: 6077

Re: Render TextBlock characters along a path

Awesome, cheers for the pointer Jesús. I'll take a look at this when I get a spare moment.

-Steven
by steveh
09 Aug 2021, 13:57
Forum: General Discussion
Replies: 3
Views: 6077

Render TextBlock characters along a path

Hi guys, We have just been asked to implement a TextBlock such that it follows an arc. For example, I just mocked up the following image in Photoshop which is the effect we're after: TextAlongPath.png Looking online, I don't see an easy way to do this. My current thought is to split each character i...
by steveh
23 Jul 2021, 17:51
Forum: General Discussion
Replies: 2
Views: 6160

UIElement::IsVisibleProperty defaults to true

Hi guys, I thought I'd post a question just to see if this is the intended flow as I'm not sure. What I have is a UserControl which is collapsed by default: - Window -- User Control <-- Collapsed by default --- ListBox <-- Visible When I get the ListBox, I test the IsVisible property and it thinks i...
by steveh
25 Jun 2021, 02:37
Forum: General Discussion
Replies: 5
Views: 11495

Re: Binding to ActualWidth property returns 0 at runtime

I've seen this issue before, the issue is the binding evaluates prior to the first measure pass. Because you're setting the width of the parent to the actual width of a child, it means that on the first measure pass it will constrain the child to a width of 0, so the actual width can never grow to t...
by steveh
17 Jun 2021, 17:09
Forum: General Discussion
Replies: 3
Views: 7448

Re: i:Interaction.Triggers on Templates and Custom Controls are not instanced

Hey Sergio, I've just encountered the bug where the storyboard is triggered for each DataTemplate instance inside an ItemsControl. I resolved it by using a TimerTrigger instead with the time set to the same length as the storyboard. Did this bug ever get reported on the bugtracker? I just had a quic...