Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 04 08:18
    lock[bot] locked #1562
  • Apr 04 08:18
    lock[bot] commented #1562
  • Apr 02 16:51

    delete-merged-branch[bot] on GitHubSync-20200402-165111

    (compare)

  • Apr 02 16:51
    GeertvanHorrik closed #1563
  • Apr 02 16:51

    GeertvanHorrik on develop

    GitHubSync update Merge pull request #1563 from C… (compare)

  • Apr 02 16:51
    GeertvanHorrik opened #1563
  • Apr 02 16:51

    GeertvanHorrik on GitHubSync-20200402-165111

    GitHubSync update (compare)

  • Apr 02 14:36
    lock[bot] locked #1556
  • Apr 02 14:36
    lock[bot] commented #1556
  • Apr 02 14:36
    lock[bot] locked #1558
  • Apr 02 14:36
    lock[bot] commented #1558
  • Apr 02 14:36
    lock[bot] locked #1560
  • Apr 02 14:36
    lock[bot] commented #1560
  • Apr 02 14:34
    lock[bot] locked #1550
  • Apr 02 14:34
    lock[bot] commented #1550
  • Apr 02 14:34
    lock[bot] locked #1557
  • Apr 02 14:34
    lock[bot] commented #1557
  • Apr 02 14:34
    lock[bot] locked #1559
  • Apr 02 14:34
    lock[bot] commented #1559
  • Apr 02 14:34
    lock[bot] locked #1531
Geert van Horrik
@GeertvanHorrik
You can use orccontrols:TabControl ;-)
venom_aa
@venomAA
hmm
XD
forgot about that one
Geert van Horrik
@GeertvanHorrik
Released Catel 5.12 beta, the biggest "minor" release we've ever made! See https://www.catelproject.com/2019/11/06/released-catel-5-12-beta/
In other words: start testing this beta release and let us know if we introduced any issues.
venom_aa
@venomAA
nice
tune ups :)
advapiIT
@advapiIT
Great geer!
Geert!
advapiIT
@advapiIT
Excuse me, if I've a model with nested properties (that're bound to nested VM/Views), at the MainModel, does the OnPropertyChanged beign fired?
it seems to me that is's not, and so my validation fails
googling around the old loved intrested in , I should use a messagemediator
is it right_
advapiIT
@advapiIT
I managed it...
 public class MainModel : ValidatableModelBase
    {
        private readonly IMessageMediator messageMediator;
        public string TextMessage { get; set; }
        public InnerModel Inner { get; set; }

        public MainModel()
        {
            messageMediator = ServiceLocator.Default.ResolveType<IMessageMediator>();
            Inner = new InnerModel();

            messageMediator.Register<RefreshValidationMessage>(this, OnMessageReceived);
        }

        private void OnMessageReceived(RefreshValidationMessage obj)
        {
            this.RaisePropertyChanged("");
        }
    }

    public class InnerModel:ValidatableModelBase
    {
        private readonly IMessageMediator messageMediator;

        public InnerModel()
        {
            messageMediator = ServiceLocator.Default.ResolveType<IMessageMediator>();
        }

        public  DateTime? Date { get; set; }

        protected override void OnPropertyChanged(AdvancedPropertyChangedEventArgs e)
        {
            base.OnPropertyChanged(e);

            messageMediator.SendMessage(new RefreshValidationMessage());
        }
    }

    public class RefreshValidationMessage
    {

    }
but I don't really like to put the .Register(....) in the constructor
advapiIT
@advapiIT
Hello my friends... I've found a strange VS behavior when opening a Catel's Usercontrol
I got this
image.png
first the modal it shows..seems to be the Catel's DataWindow without the content
and this is the stacktrace
image.png
It doesn't happen with FW ones
Geert van Horrik
@GeertvanHorrik
I don't think it uses converters, but please create a ticket with repro
advapiIT
@advapiIT
yes, hopening this still happens on your machine
advapiIT
@advapiIT
Ok this problem seems bound to a usercontrol i wrote
I'll dig into...
It's possible to have asingle instance of a viewmodel? I've abutton that call's a viewmodel on 3 different page, I need to serve the same
Geert van Horrik
@GeertvanHorrik
yup
advapiIT
@advapiIT
and how?
Geert van Horrik
@GeertvanHorrik
:-)
advapiIT
@advapiIT
uff
same answer thesupport >D
:D
Paw Hauge Byrialsen
@byrialsen
Hi @GeertvanHorrik . Long time as I have been away from Catel for a while. But just started a new Catel project with a .NetStandard 2.0 project. Added Catel.MVVM, but it doesn't seem to target .NetStandard anywore. Catel.Core still does. Is that correct??
Warning NU1701 Package 'Catel.MVVM 5.11.2' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
Geert van Horrik
@GeertvanHorrik
Catel.MVVM never targeted .net standard. Catel.Core does have a .net standard 2.0 implementation
Paw Hauge Byrialsen
@byrialsen
Hmm been away to long....But I think a tried implementing my viewmodels in .NetStandard project
Ahh, maybe I did some multi target project setup
bigworld12
@bigworld12

hello @GeertvanHorrik ,
I am trying to build catel locally, but i am getting bombarded with warnings like this

1> MSBUILD : warning : Fody/Catel: Cannot determine the Catel version used for 'Catel.Data.ChildAwareModelBase', type will be ignored for weaving
the build is successful, but when i try to use the result library in my project Catel.Fody seems to break and not weave any properties at all

Geert van Horrik
@GeertvanHorrik
@bigworld12 , this is probably caused by the bump to 6.0. Will work on Catel.Fody soon
at this stage I don't really recommend to use 6.0, it's actually pre-alpha quality
Geert van Horrik
@GeertvanHorrik
@bigworld12 releasing a prerelease of Catel.Fody with support for 6.x
culer
@culer
Hello everyone, have been digging into Catel the last few days moving over from the Java world. One aspect I still don't quite understand: where does "normal business logic" go? I found a lot of guidance for UI logic (commands, behaviours, etc. which are being used in viewmodels). But for one layer below (domain layer/logic layer), I found a lot of documentation about ModelBase and all its advantages, but nothing about where to put the actual domain logic that is specific to a certain use-case within the application. Should this also go to services? Or just use methods in the classes deriving from ModelBase?
Thanks in advance for some hints
Geert van Horrik
@GeertvanHorrik
Mostly into services or api backends
A view model has the logic for a single view, services span multiple views in an app (basically state)
tm1k
@tm1k
Hello, I am looking for a tutorial to build apps with Catel. Do you have a recommendation for me?
Geert van Horrik
@GeertvanHorrik
@tm1k not really, you could look into the already open source apps built on Catel
tm1k
@tm1k
@GeertvanHorrik thanks, I will have a look