Search found 25 matches

by steveh
28 Aug 2020, 11:35
Forum: General Discussion
Replies: 6
Views: 108

Re: Generic notify system from Storyboards

Interesting, cheers Sergio. I'll take a look at using the fill behaviour value, this seems like it could work.

Much appreciated!

-Steven
by steveh
27 Aug 2020, 15:24
Forum: General Discussion
Replies: 6
Views: 108

Re: Generic notify system from Storyboards

Sorry for the delay Sergio, I completely forgot I posted this. Thank you for the reply. I like your idea with changing the property to a float, but I don't think it solves everything. Designers are setting these up and I don't want them to have to think about the back end tech, so I want them to be ...
by steveh
05 Aug 2020, 19:29
Forum: General Discussion
Replies: 6
Views: 108

Generic notify system from Storyboards

Hi guys, We have a "notify" system which allows us to trigger notifies from Storyboards. The notify is basically a custom class which derives from FrameworkElement and has a boolean dependency property called "Trigger". It is false by default, and we trigger it to true during a storyboard. It's very...
by steveh
18 Jun 2020, 17:01
Forum: General Discussion
Replies: 7
Views: 635

Re: Offloading Noesis::GUI::LoadXaml to a worker thread

Hey Jesús, cheers for the response. Problems with load times have been highlighted in the past by more clients (many times this is happening because big resource dictionaries are merged in each XAML instead of using the global app dictionary, you should avoid this) Our main theme resource dictionari...
by steveh
17 Jun 2020, 21:48
Forum: General Discussion
Replies: 7
Views: 635

Offloading Noesis::GUI::LoadXaml to a worker thread

Hi guys, Some of our more complicated windows are taking ~2 seconds to load the XAML files in an optimised build. It seems most of the work is just from parsing the XAML files and parsing large SVG paths. Currently, our UI is loaded and updated on main thread. We are unable to stall main thread for ...
by steveh
04 Jun 2020, 20:40
Forum: General Discussion
Replies: 3
Views: 510

Re: Separating application resources across different assemblies

Cheers for the example Sergio. I double checked all the references and it was all set up correctly. I found the issue though. The application type had accidentally been changed to Application. I checked everything put overlooked this :) I changed it back to class library and it started working again...
by steveh
04 Jun 2020, 18:27
Forum: General Discussion
Replies: 3
Views: 510

Separating application resources across different assemblies

Hi guys, I have a question about the proper way to separate themes / resources between several different assemblies. We use Blend to develop our UI. We have a project specifically for controls which might want to be shared between multiple games, let's call this project "Engine". I also want to prov...
by steveh
18 Mar 2020, 18:24
Forum: General Discussion
Replies: 6
Views: 1624

Re: Focusing ListBoxItem after ItemCollection changed

Firing the animations from the DataTemplate should work fine too. Just with the xaml you attached using DataTriggers listening to the IsSelected property of the ListBoxItem ancestor. Do you have any problems with that? No, this part works great. The animations always trigger when I'd expect. I've b...
by steveh
13 Mar 2020, 00:40
Forum: General Discussion
Replies: 6
Views: 1624

Re: Focusing ListBoxItem after ItemCollection changed

Hi there, just a quick update. I tried to add the style trigger and it hit an assert. Essentially the Selector::OnSelectedIndexChanged sets the IsUpdating scope flag when the selected index has changed. This ultimately causes the style trigger to execute which sets focus. The focus calls ListBoxItem...
by steveh
12 Mar 2020, 23:03
Forum: General Discussion
Replies: 6
Views: 1624

Re: Focusing ListBoxItem after ItemCollection changed

Apologies for the previous post, I was logged into an old account from my home PC. I edited my post and posting the initial response here on the correct account now :) ---- Thank you for the response. The goal here as I understand is whenever an item gets selected it also gets focus; just remember t...