Where communities thrive


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

    dependabot[bot] on nuget

    (compare)

  • 12:02

    GeertvanHorrik on develop

    Bump Verify.NUnit from 13.3.0 t… Merge pull request #1876 from C… (compare)

  • 12:02
    GeertvanHorrik closed #1876
  • 10:17
    dependabot[bot] labeled #1876
  • 10:17
    dependabot[bot] opened #1876
  • 10:17

    dependabot[bot] on nuget

    Bump Verify.NUnit from 13.3.0 t… (compare)

  • Oct 25 10:19

    delete-merged-branch[bot] on nuget

    (compare)

  • Oct 25 10:18

    github-actions[bot] on develop

    Bump Fody from 6.5.5 to 6.6.0 … Merge pull request #1875 from C… (compare)

  • Oct 25 10:18
    github-actions[bot] closed #1875
  • Oct 25 10:18
    dependabot[bot] labeled #1875
  • Oct 25 10:18
    dependabot[bot] opened #1875
  • Oct 25 10:18

    dependabot[bot] on nuget

    Bump Fody from 6.5.5 to 6.6.0 … (compare)

  • Oct 22 10:19

    delete-merged-branch[bot] on nuget

    (compare)

  • Oct 22 10:19

    github-actions[bot] on develop

    Bump Fody from 6.5.4 to 6.5.5 … Merge pull request #1874 from C… (compare)

  • Oct 22 10:19
    github-actions[bot] closed #1874
  • Oct 22 10:19
    dependabot[bot] opened #1874
  • Oct 22 10:19
    dependabot[bot] labeled #1874
  • Oct 22 10:19

    dependabot[bot] on nuget

    Bump Fody from 6.5.4 to 6.5.5 … (compare)

  • Oct 19 10:21

    delete-merged-branch[bot] on nuget

    (compare)

  • Oct 19 10:21

    github-actions[bot] on develop

    Bump Fody from 6.5.3 to 6.5.4 … Merge pull request #1873 from C… (compare)

Offline
@Offline-R503B
Really improves the workflow :)
Offline
@Offline-R503B
@GeertvanHorrik I think I found out when it happens. We still encounter it but only if changes are applied to the project
And not all changes ill post my findings in a bit
Offline
@Offline-R503B
Do you happen to have an use for a diagnostic output from Catel.Fody weaving?
image.png
Geert van Horrik
@GeertvanHorrik
Yes, definitely. Where is this chat room, is it public? Maybe we can discuss there?
Offline
@Offline-R503B
On discord, I could invite you :)
Geert van Horrik
@GeertvanHorrik
(see private chat)
Galgemaennle
@Galgemaennle
Hi. I'm using the great Catel Framework and especially the DataWindow to serve a GUI to modify a model. It's compiled as a dll to be loaded as a plugin into a 3rd party program. That Program loads the dll and searches its interface by Assembly.LoadFile(...).GetTypes(). Unfortunately, the DLL can't be loaded. I'm able to recreate the issue in an console app. I get System.Reflection.ReflectionTypeLoadException with Catel.MVVM, Version=5.12.16.0 can't be found or a dependency is missing. I've double checked that all dependencies are in the same location to be dynamically loaded. I've also used fody costura to statically merge them together. I also made sure, my dll is compiled with <= .net framework version as the calling app. Figgured out that, using a second dll wrapped around the gui dll and serving the interface works fine (When Catel.MVVM is not part of GetTypes() ). It's somehow hiding some stuff. I'm kinda lost. Any advice very much appreciated
Geert van Horrik
@GeertvanHorrik
Are you sure it's not a first-chance exception, for example for the resource assemblies?
Galgemaennle
@Galgemaennle
I have 7 assemblies from assembly.GetReferencedAssemblies(), event AppDomain.CurrentDomain.AssemblyResolve is fired 3 times. Catel.MVVM, Catel.Core, Catel.Core (all of them for the same version). So all other can be loaded without issues (all of them also merged along with fody). When I load missing catel.dlls manually in the resolve event, it's fine. But I can't append the 3rd party sw. Also don't know why this only fails with catel related dlls. Also tried to add those dlls to the LoadAssembliesOnStartup in the fody weavers. I'm kinda lost, also can't debugs for further details. Hoped, you might give some hints ;)
Geert van Horrik
@GeertvanHorrik
Could it be possible that your assembly is not being loaded and thus not yet kicking in? Maybe try to use:
  1. Costura (embed Catel.Core + Catel.MVVM)
  2. ModuleInit (allows you to execute code when the 3rd party loads your assembly)
rfuzzo
@rfuzzo

Hello, I have a question about the IUIVisualizerService.
I'm using it like so var result = await _UIVisualizerService.ShowAsync(viewModel)
and it constructs the view and everything correctly, the result is true when I click OK, so far everything works.

What I want is to use custom OK and Cancel buttons, I have implemented it with a Command binding to the DataWindow ViewModel, executing this.CloseViewModelAsync(true) inside the ViewModel.
private void ExecuteFinish() => this.CloseViewModelAsync(true);

It closes the View alright, but the result from the IUIVisualizerService is null (bool? is null). Why is that so, and can't I use CloseViewModelAsync to pass the dialogresult?

thanks!

rfuzzo
@rfuzzo
hmm I think I found it... this.CancelAndCloseViewModelAsync(); and this.SaveAndCloseViewModelAsync();
Geert van Horrik
@GeertvanHorrik
Fully correct 👍
rfuzzo
@rfuzzo

thanks, it works great now... after a bit of digging I also found that I have to set base(DataWindowMode.Custom) to remove the standard buttons when using UIVisualizerService.ShowAsync. but in the end, everything is handled via the viewmodel and not the view 👍

I also had to use a catel:DataWindow and not a catel:UserControl, and I abandoned writing a DataWindow wrapper for usercontrols to display modally. It wasn't possible to getViewForViewmodel from within the nested control, but maybe I was just not seeing it. simply calling the 1st order Viewmodel works fine now

yangzhang1908
@yangzhang1908
Hello, i have a question: is there a solution for us in wizard for all UserControl, we can prevent the "Esc " key from closing all window?
yangzhang1908
@yangzhang1908
i have found that, in Orc.wizard, the "Esc" key will call CloseAsync(), not CancelAsync(). where can i set the "Esc" key not to call the CloseAsync()? thanks a lot.
Geert van Horrik
@GeertvanHorrik
I think it's a window setting (CanCloseUsingEscape).
yangzhang1908
@yangzhang1908

I think it's a window setting (CanCloseUsingEscape).

Thanks a lot, it works well for normal UserControl or normal Window; my problem is: this "CanCloseUsingEscape" in UserControl element works not for the whole Wizard, it can not prevent closing. when i click"Esc" on keyBorad, the whole Wizard closed. i didn't find where can i make settings for the whole wizard.

yangzhang1908
@yangzhang1908
image.png
Hallo, i have a question, in the Orc.wizard pages, the "Next" and "cancel " buttons work well when the system language english/ german, but when the system language Chinese, it works like this,
which not in chinese, but perhaps russian.
it works automatish, how can i fix it? thanks a lot.
Geert van Horrik
@GeertvanHorrik
If you are interested, you can do a pull request with the correct translations for the Chinese file.
yangzhang1908
@yangzhang1908
okay thanks i'll try it later.
AtlantisDe
@AtlantisDe
Catel.Fody Hello, can the unmanaged C# dll be packaged as a single exe?
I don't seem to see any useful information. Can I do this?
Geert van Horrik
@GeertvanHorrik
I think this is completely related to either Costura (Fody) or anything. Not sure if this is related to Catel?