Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:05

    delete-merged-branch[bot] on nuget

    (compare)

  • 11:05

    GeertvanHorrik on develop

    Bump Verify.NUnit from 8.6.1 to… Merge pull request #1720 from C… (compare)

  • 11:05
    GeertvanHorrik closed #1720
  • 08:13
    dependabot-preview[bot] labeled #1720
  • 08:13
    dependabot-preview[bot] opened #1720
  • 08:13

    dependabot-preview[bot] on nuget

    Bump Verify.NUnit from 8.6.1 to… (compare)

  • Nov 25 08:25

    delete-merged-branch[bot] on nuget

    (compare)

  • Nov 25 08:25

    GeertvanHorrik on develop

    Bump Verify.NUnit from 8.6.0 to… Merge pull request #1719 from C… (compare)

  • Nov 25 08:25
    GeertvanHorrik closed #1719
  • Nov 25 08:12
    dependabot-preview[bot] labeled #1719
  • Nov 25 08:12
    dependabot-preview[bot] opened #1719
  • Nov 25 08:12

    dependabot-preview[bot] on nuget

    Bump Verify.NUnit from 8.6.0 to… (compare)

  • Nov 24 17:12

    GeertvanHorrik on 5.12.11

    (compare)

  • Nov 23 14:50

    delete-merged-branch[bot] on nuget

    (compare)

  • Nov 23 14:50

    GeertvanHorrik on develop

    Bump Verify.NUnit from 8.4.2 to… Merge pull request #1718 from C… (compare)

  • Nov 23 14:50
    GeertvanHorrik closed #1718
  • Nov 23 14:40
    dependabot-preview[bot] labeled #1718
  • Nov 23 14:40
    dependabot-preview[bot] opened #1718
  • Nov 23 14:40

    dependabot-preview[bot] on nuget

    Bump Verify.NUnit from 8.4.2 to… (compare)

  • Nov 23 09:44

    GeertvanHorrik on develop

    Update build scripts #1713 Add support for .NET 5.0 Non-dependency package maintena… and 9 more (compare)

tm1k
@tm1k
In the Wizard NavigationStrategy gives the page index of previous and next pages, but is it possible to overwrite them in order to skip some pages when going backwards in the wizard?
Geert van Horrik
@GeertvanHorrik
I think that was the point of the navigation strategy. Btw you can navigate to any page manually whenever you like. We use this to implement hyperlinks in the summary page to quickly go to a specific page to customize data
tm1k
@tm1k
This seems to solve my problem. I'll have a look
ssc19940105
@ssc19940105
Help me!How to deserialize XML files into ViewModel?
tm1k
@tm1k
Doesn't xmlSerializer.Deserialize work?
Geert van Horrik
@GeertvanHorrik
you can use any serialization method, it's irrelevant from the vm?
ssc19940105
@ssc19940105

MyObject myObject = null;

using (var fileStream = File.Open(@"C:\myobject.dob", FileMode.Open))
{
myObject = ModelBase.Load<MyObject>(fileStream, SerializationMode.Xml);
}

CS0117 C# ModelBase does not contain a definition for 'Load'
Geert van Horrik
@GeertvanHorrik
yeah, this seems to come from a very old example
please use IXmlSerializer (or whatever you use) to read from a (file)stream
Or use SavableModelBase
ssc19940105
@ssc19940105
Thanks
venom_aa
@venomAA
tried the new templates for creating a new catel app from the online repository
question..must i use the 4.6.2 framework always..or how can i change the target framework?
Geert van Horrik
@GeertvanHorrik
we only use netcoreapp3.1 nowadays
you can change it at the top of the csproj
venom_aa
@venomAA
but older versions can use the standard framework right?
still Geert, something is kind of wrong i think, cause i have the 7.0 framework and it was still showing errors on the version cause it was waiting for the 6.2. From what i can remember 7.0 is compatible with the 6.2 version right?
Geert van Horrik
@GeertvanHorrik
all versions can target 4.6.2, but you can target anything you want
not sure what you mean with 7.0 and 6.2, both are not related to Catel?
venom_aa
@venomAA
i mean NET 4.6.2 and 4.7.0. I changed the target framework to 4.6.1 and eliminated the core 3.0 from it to, it no longer showed errors on the dependencies. Still had an error on the main point of entry for the program when i compiled but im sure thats non related to the .NET framework version.
When i tried moving to 4.7.0, it kept showing dependencies problems, and im sure this laptop has the 4.7.0 .Net Framework. Also have the doubt about it not running when targeting to .Net 4.6.2. cause should not it run under machine with .Net 4.7.0 since 4.7.0 allows apps targeting 4.6.2 to run on it?
Geert van Horrik
@GeertvanHorrik
it's always compatible with lower versions
venom_aa
@venomAA
yup, even found the old project template files and they still work. Only had to modify some lines for it to run
tm1k
@tm1k
Again a question concerning the wizard: say, I have a wizard procedure which needs to performed several times (user decides how many repetitions will be shown). Can I do this dynamically? Does the wizard initialization require the "addPage" method for every page or can I add more pages inside other pages?
Geert van Horrik
@GeertvanHorrik
We build up wizards dynamically all the time.
What we even though sometimes is show subwizards
(so a wizard launches another wizard on top, and you can repeat that process as often as you'd like)
tm1k
@tm1k
hm, I don't have a real idea how to let the wizard launch another one, but I'll try to do it dynamically. Previously, I did this by an addPage-block in the wizard's main file
Geert van Horrik
@GeertvanHorrik
You can launch a wizard from any VM, including a wizard page VM.
tm1k
@tm1k
Hm, do I need to do anything to update the wizard view after I dynamically added new pages? It still consists of the first page, no "Next" button showing up...
tm1k
@tm1k
When I add some pages before, the next button is displayed and I can navigate through the dynamically added pages, but the numbers in the top of the wizard do not change
Geert van Horrik
@GeertvanHorrik
I will need more than text to think of a good solution. You cannot dynamically add pages once the wizard is instantiated. I don't believe the wizard component actively updates the breadcrumb, etc.
tm1k
@tm1k
I solved it like this: I add the absolutely necessary pages in the Wizard initialization and add the two pages per cycle which are entered by the user. This works, I am satisfied with this solution by now
tm1k
@tm1k
One more question: Is there a callback that I can use when Next and Previous are pressed?
Geert van Horrik
@GeertvanHorrik
@tm1k could you send me an email at firstname @ catenalogic.com? Would like to ask you a few questions.
Alan Brault
@vaecors
Anyone have any insights on why objects present within an FastObservableCollection (that are based off ValidatableModelBase) are not getting garbage collected? The collections do not have events attached to them but if I null out the property it will GC the objects in the collection (sometimes).
Geert van Horrik
@GeertvanHorrik
Are they bound to VM's in any way? The collection and change wrapper could be subscribing here, but it should all be weak events.
And are you using .NET Core? It has a slightly different way of GC (we had to fix all the unit tests since we cannot rely on objects being collected by GC.Collect)
Alan Brault
@vaecors
Full .NET Framwork (would love to move to Core but there are blockers preventing this). These are basically collections bound to the ItemsSource dependency property of a RadGridView.
I have the feeling it may be the way I’m handling instantiation and population however.
Geert van Horrik
@GeertvanHorrik
There is no other object referencing this object? And it only happens in FastObservableCollection?
Just checked the code for FOC, don't see any subscriptions there. Maybe it's the RAD grid subscribing to property changed of the objects inside collection?
Alan Brault
@vaecors
That’s the issue, I cannot seem to track down the root culprit and dotMemory is not showing anything that pops out. My only other route I have left to try is changing how the collection is instantiated and populated.
Geert van Horrik
@GeertvanHorrik

weird, I would expect dotMemory to show some sort of relation, even if it's via an event subscription.

Just a few double checks

  1. Is the collection cleared (are items removed from the list)?
  2. Is the collection no longer part of a VM?
  3. Is the VM closed / no longer attached to a view?
Alan Brault
@vaecors
Yeah so would I but it hasn't been rather forthcoming. But as an example:
  1. I have a ViewModel for the sake of this example called GridViewModel<TDomainModel>
  2. The ViewModel has a member property called Rows which is a FastObservableCollection<TDomainModel>
  3. Rows is an inline initialization -- public FastObservableCollection<TDomainModel> Rows { get; } = new FastObservableCollection<TDomainModel>
  4. Items are retrieved from an external source and added to Rows in InitializeAsync via AddItems
  5. The property Rows is cleared during OnClosingAsync()
  6. dotMemory shows that all the objects within Rows survived the closing and disposing of the ViewModel along with their ValidationContext
Geert van Horrik
@GeertvanHorrik
4 sounds alarm bells in my head
are you sure the external sourec is not holding it somehow?
Alan Brault
@vaecors
So 4 would be a manager class that handles mediation between the VM and the DAL. It basically does the query to the DB and converts the entity model to a domain model. You may be right though I should probably have the ViewModel discard the property that holds the manager class on dispose