Where communities thrive


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

    delete-merged-branch[bot] on nuget

    (compare)

  • Aug 12 10:22
    github-actions[bot] closed #1995
  • Aug 12 10:22

    github-actions[bot] on develop

    Bump Verify.NUnit from 17.8.1 t… Merge pull request #1995 from C… (compare)

  • Aug 12 10:21
    dependabot[bot] labeled #1995
  • Aug 12 10:21
    dependabot[bot] opened #1995
  • Aug 12 10:21

    dependabot[bot] on nuget

    Bump Verify.NUnit from 17.8.1 t… (compare)

  • Aug 10 10:23

    delete-merged-branch[bot] on nuget

    (compare)

  • Aug 10 10:23

    github-actions[bot] on develop

    Bump Microsoft.NET.Test.Sdk fro… Merge pull request #1994 from C… (compare)

  • Aug 10 10:23
    github-actions[bot] closed #1994
  • Aug 10 10:22
    dependabot[bot] labeled #1994
  • Aug 10 10:22
    dependabot[bot] opened #1994
  • Aug 10 10:22

    dependabot[bot] on nuget

    Bump Microsoft.NET.Test.Sdk fro… (compare)

  • Aug 09 10:16

    delete-merged-branch[bot] on nuget

    (compare)

  • Aug 09 10:16
    github-actions[bot] closed #1993
  • Aug 09 10:16

    github-actions[bot] on develop

    Bump Verify.NUnit from 17.5.0 t… Merge pull request #1993 from C… (compare)

  • Aug 09 10:16

    dependabot[bot] on nuget

    (compare)

  • Aug 09 10:16
    github-actions[bot] auto_merge_disabled #1992
  • Aug 09 10:16
    dependabot[bot] closed #1992
  • Aug 09 10:16
    dependabot[bot] commented #1992
  • Aug 09 10:16
    dependabot[bot] labeled #1993
Geert van Horrik
@GeertvanHorrik
I think this is completely related to either Costura (Fody) or anything. Not sure if this is related to Catel?
Tomáš Kubát
@TomasKubat0
Hello people, just discovered Catel and it looks very interesting. Wanted to ask a quick question, is there a functionality built into catel's tabcontrol that allows you to pop out the tab into a new window?
Geert van Horrik
@GeertvanHorrik
No, that would need something like https://dragablz.net/
malibVB
@malibVB

Hello, I get following warning from fody when compiling :

Fody/Catel: No call to base.OnPropertyChanged(e) or a custom implementation in 'NumericSetViewModel', cannot weave this method to automatically raise on dependent property change notifications

Can you tell me what this means ?

Shyam Sundar Sah
@shahshyam_gitlab
Hi to bind selection change in Orc:datepicker using Catel.MVVM
<orc:DatePicker Grid.Row="1" Grid.Column="1" AllowNull="True" Value="{Binding EndDate}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectedDateChanged">
<catel:EventToCommand Command="{Binding SaveStartDateCommand}" DisableAssociatedObjectOnCannotExecute="False" />
</i:EventTrigger>
</i:Interaction.Triggers>
</orc:DatePicker>
VM detail
public Command SaveStartDateCommand { get; private set; }
private void OnSaveStarDatetExecute()
{
//Never hit here
}
private bool CanSaveStarDatetExecute()
{
return true;
}
it hits on CansaveStartDate
malibVB
@malibVB
Hello, is there a way to map or push the validation results from viewmodel to the model ?
Geert van Horrik
@GeertvanHorrik
I don't think it can be done automatically. It can be exposed from model => view model, but not the other way around.
malibVB
@malibVB

Thank you for the reply.

I know this way, but I need it from ViewModel to Model.

About my problem:
I have Models they are only viewed when I select the ParentModel / ViewModel from a List.The validation is only valid/active for the viewed Model/ViewModel. But I need all the validation results from all Parents and Childs, Models and ViewModels from the List, to activate or deactivate a save button. I don't want to put all the validations in the Model because some props only needed in the ViewModel for the View.

Geert van Horrik
@GeertvanHorrik
if the child vms are catel view models, they should automaticallye xpose their validation to the parent?
but if you use virtualization, you should validate on the call of save, etc, otherwise it will have too much impact on your app anyway
malibVB
@malibVB
This is also what I expected.
They are all catel vms.
And there is no virtualization.
I am probably doing something wrong.
Geert van Horrik
@GeertvanHorrik
Maybe you are deferring validation until the first save call? I am not sure about your app, but try to make this work inside a normal parent / child scenario first. Maybe set DeferValidationUntilFirsTSave (or something named very similar to this) to false
malibVB
@malibVB
Yes, I'm using deffering validation.
I will try it now.
malibVB
@malibVB

I set deffering validation to false but the problem is still there.

I will provide you a GIF here if it possible.

b9c64aa5-075e-49a4-8c03-739095e7ca5c.gif
Geert van Horrik
@GeertvanHorrik
I recommend always enabling the save button and validate all child models before actually saving
malibVB
@malibVB
But how I can trigger the validation in the vms if I only have the models of the childs in the parent vm.
Remeber: not all deepest childs are viewed at the same time.
Geert van Horrik
@GeertvanHorrik
You should be able to access child vms from a view model? Otherwise introduce your own service with currently available vms that you register / u register in Initialize /Closs
malibVB
@malibVB
Hmm, I'm not sure what you mean !?
Is there a way to force a separate View/ViewModel for each Model in a List ?
Geert van Horrik
@GeertvanHorrik
Yes, via view model injection via data context
malibVB
@malibVB
Do you have an example or an link ?
Geert van Horrik
@GeertvanHorrik
No example of this, but we are available for hire for consultancy of such detailed questions.
malibVB
@malibVB
Okay, thank you. I will discuss this option with my colleagues.
AtlantisDe
@AtlantisDe
Can anyone please help me how to use Costura.Fody to package LevelDB.Standard ? Got this error System.TypeInitializationException: ""LevelDB.LevelDBInterop" This is the Demo code I made for reference. matjazbravc/Embedded-SQLite-Demo#1
Geert van Horrik
@GeertvanHorrik
I am not sure how this relates to Catel?
BlueM
@bluejack2000
Where can I make a pull request for the documentation? I often use the converters page as reference but the layout is broken for some time now. https://docs.catelproject.com/vnext/catel-mvvm/converters/
Geert van Horrik
@GeertvanHorrik
and at the bottom of the page (very lightgray) is an "improve this page" button
BlueM
@bluejack2000
Thank you! Will try to fix it
Geert van Horrik
@GeertvanHorrik
Thank you
BlueM
@bluejack2000
Catel/Catel.Docs#16 Wan't sure if I have to do more steps than fixing the source.
Geert van Horrik
@GeertvanHorrik
Once we approve, it will auto generate the docs again
BlueM
@bluejack2000
OK
looking good, thank you for the contribution
BlueM
@bluejack2000
Maybe check hugo update as the converter did not consider the <br> elements in the table cell
Geert van Horrik
@GeertvanHorrik
bumped hugo to the latest version
BlueM
@bluejack2000
I can check if there is a config options which has to be set. Could be that the markdown converter requires unsafe mode to forward <br>. But I did not find any other way to make newlines work in a table cell. It also worked in my IDE.
BlueM
@bluejack2000
Found a better solution for linebreaks without the need to enable unsafe mode Catel/Catel.Docs#17
Tested it locally with hugo
Geert van Horrik
@GeertvanHorrik
It worked, thanks again for your contributions
BlueM
@bluejack2000
Catel/Catel.Docs#18 and again I have to supply a fix for the pipe symbol in the enum example which unfortunately didn't work as html entity with hugo.
Didn't spot that bug on first sight.
Oh wait I have to fix another quotation mark leftover in there.
BlueM
@bluejack2000
All fine now. Can be merged