Search found 13 matches

  • 1
  • 2
by manuel
24 Feb 2023, 18:04
Forum: General Discussion
Replies: 3
Views: 977

Re: Feed a ViewModel with massive Data coming from a different Thread

Thanks for the answer and yes, I could follow your instructions. I got a proof of concept to run but had some issues with it. It was no problem to exchange the ViewModels via SetDataContext while the data was shown in a TreeView. But whenever I selected an entry to display additional data about a gi...
by manuel
14 Feb 2023, 12:16
Forum: General Discussion
Replies: 3
Views: 977

Feed a ViewModel with massive Data coming from a different Thread

Hey everyone, we've set up Noesis in a way that it lives on its own thread. Nevertheless, the data it has to display comes from a different thread. So, how can we access the data without locking the database for a long time? Executing the OnPropertyChanged event for hundreds of elements in a ViewMod...
by manuel
09 Feb 2023, 12:16
Forum: General Discussion
Replies: 3
Views: 1579

Re: Best-practice to design a view that bases heavily on data in Blend

Hey maherne, I guess I could work with a hybrid. Start prototyping with my option b, and shift over to your proposal when we leave the rapid prototyping state and enter the actual game for the first time. In that phase, the DataModel should be quite known, and the overhead of keeping every class in ...
by manuel
08 Feb 2023, 15:14
Forum: General Discussion
Replies: 3
Views: 1579

Best-practice to design a view that bases heavily on data in Blend

Hey everyone, currently, I am prototyping a UserControl that utilizes a TreeView to display nested ObservableCollections . To build the individual elements of my HierarchicalDataTemplate I need to have SampleData available : on one hand, at design-time to bind the UI elements to the DataModel and to...
by manuel
13 Jan 2023, 10:40
Forum: General Discussion
Replies: 4
Views: 306

Re: CustomConverter: What is the target type of a DoubleAnimation targeting RenderTransform.X?

Thanks to both of you. That helped a lot. I totally forget about the Nullables. Though I am a bit confused why I do check for a Nullable<float> but do only return Box<float> and not Box<Nullable<float>>. I checked both and cannot spot a difference, though I do not make use of NULL. And none of the f...
by manuel
11 Jan 2023, 13:49
Forum: General Discussion
Replies: 4
Views: 306

CustomConverter: What is the target type of a DoubleAnimation targeting RenderTransform.X?

Hey everyone, simple question and maybe obvious to answer... but is it? As it is a DOUBLEAnimation, "double" seems to be obvious, but Noesis uses floats in C++ for performance reasons. So I would expect that "float" is the correct answer here. The error message hints towards &quo...
by manuel
19 Dec 2022, 10:56
Forum: General Discussion
Replies: 5
Views: 443

Re: Custom TextureProvider: Error while images are loading asynchronously

Yes, thanks for the hint. There was something wrong with my pixel and our technical artist provided me with a proper one :)
by manuel
15 Dec 2022, 10:42
Forum: General Discussion
Replies: 5
Views: 443

Re: Custom TextureProvider: Error while images are loading asynchronously

Yes, it actually works. By returning a default texture, there is no Error Output anymore. Nevertheless, I can see this black texture for a split second now. Is your original fallback texture a transparent pixel? Would it hurt the performance when I return a transparent pixel? Edit: I've tried a tran...
by manuel
14 Dec 2022, 13:26
Forum: General Discussion
Replies: 5
Views: 443

Custom TextureProvider: Error while images are loading asynchronously

Hey everyone, Situation within my current view, the animations stutter whenever I switch back and forth between the menus. I could identify that the loading of the necessary images causes this. And it isn't only stuttering the first time an image is shown. As far as I am aware, the usual fix would b...
by manuel
02 Dec 2022, 17:29
Forum: General Discussion
Replies: 2
Views: 615

Re: Plain Properties with INotifyPropertyChanged VS Dependency Properties

Yes, indeed that helps a lot. I was quite confused seeing that the API creates two default objects at startup but their copy constructor has never been used. So they seemed to be worthless at first glance. Now knowing that this is done in favor of a CloneOverride method, makes sense to me.

Thanks
  • 1
  • 2