Catel | An application development platform | Model View Controller library
kandi X-RAY | Catel Summary
kandi X-RAY | Catel Summary
Catel.Core is the library you want to include in all your projects, whether you are writing a UI project or not. It contains lots of useful helper methods. The most important features are listed below:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Catel
Catel Key Features
Catel Examples and Code Snippets
Community Discussions
Trending Discussions on Catel
QUESTION
I have a WPF Application with Catel.Core, Catel.MVVM, Catel.Analyzers and Catel.Fody installed.
When I start the application and try to resolve a Data Access Repository (ILigaMannschaftenZuordnungenRepository
) the exception Catel.IoC.TypeNotRegisteredException gets thrown. When I call dependencyResolver.CanResolve();
it returns true.
I made an extension method to register every service and repository in a single place.
...ANSWER
Answered 2022-Feb-10 at 19:56Okay, after debugging for quite some time and checking multiple things, I looked into my Data Access Repositories again. And I realized that my repository's implementation had an internal
constructor instead of a public constructor. The cause was the base Repository, which had an internal constructor. After changing from internal
to public
the DI Container resolved the types correctly.
If you are running into this problem, check if your types have public constructors.
Bad:
QUESTION
I've some nested UserControls on an MVVM/WPF project using .NET 6.0 and Catel 5.12.22 Google led me to this, all be it an old article https://www.codeproject.com/Articles/129920/Catel-Part-3-of-n-The-MVVM-Framework#mapping
I can't find the UserControl anymore in the Catel 5.12
Lots of dead links to old documentation currently, so please advise where I can find this, or how it works now.
Jeroen
...ANSWER
Answered 2022-Feb-04 at 18:38The UserControl still exists in Catel.
Here is the full documentation.
To use it in xaml, use this code:
QUESTION
I have an issue where every single view model that inherits from Catel.MVVM.ViewModel
is never calling InitializeAsync()
. What could I be missing that blocks this call?
I'm using Catel.MVVM v5.12.22.
...ANSWER
Answered 2021-Nov-29 at 20:34The fix is to change the control type from UserControl
to catel:UserControl
.
QUESTION
I'm currently working on a WPF project with .NET 5.0 using Catel 5.12.19 and Microsoft.EntityFrameworkCore 5.0.11.
For the EF part I use a code first approach.
When setting up everything using this catel documentation I noticed the necessary extensions are moved to Orc.EntityFramework, but this supports EF 6 and up only.
For EF Core I find Orc.EntityFrameworkCore but only as Alpha versions.
I wondered how stable this is, anyone expercienes?
I'm specifically looking to the .IgnoreCatelProperties() extension
Jeroen
...ANSWER
Answered 2021-Nov-11 at 14:22For now it seems sufficient to add the following Ignores to the OnModelCreating
QUESTION
I'm using Catel 5.12.19 with an MVVM application
I have the following 2 interfaces:
...ANSWER
Answered 2021-Nov-11 at 13:30IService
interface is blank, therefore any code using IService
can perform no actions with it.
CustomerSearchFilterList
is defined as belonging to ICustomerSearch
interface.
Thus for dependency injection you should be using concrete classes based upon ICustomerSearch
instead of IService
.
You can combine interfaces to form more complex ones e.g.
QUESTION
I have a (WPF) Catel DataWindow with a DataGrid, where the SelectedItem property is bound to a VM property, and has two buttons indented to launch different Catel TaskCommands on the selected data grid item.
Note the CommandParameters are bound in different ways to what seems - but isn't - the same value:
...ANSWER
Answered 2021-Oct-04 at 04:49I think this is caused by the moment the commands get (re)evaluated.
You probably have the InvalidateCommandsOnPropertyChange
property set to true
(default value). For more info, see https://github.com/catel/catel/blob/develop/src/Catel.MVVM/MVVM/ViewModels/ViewModelBase.cs#L1016
At this stage, the binding probably didn't have a chance yet to update itself and is thus sending the previous version.
A workaround for this issue could be to use the dispatcher service inside the VM to re-evaluate the commands yourself:
In the ctor:
QUESTION
I have some old libraries coded in .net 4.0 using an old version of Catel (3.9). Now I'm trying to upgrade to .net 4.7.2 using the latest Catel. I've added Orc.Controls instead of Catel.Extensions.Controls, but CreateStyleForwardersForDefaultStyles and StyleHelper are missing. Do I need to adjust all of my xaml files manually or there is some other solution?
...ANSWER
Answered 2021-Jul-09 at 08:41The StyleHelper and other style related code has been moved to Orc.Theming and Orchestra.
The example apps for both libraries (should) show how to use them.
QUESTION
I created a little software with 4 Tabs inside the DataWindow Control. Each Tab inherits a CustomControl. The problem is, that the window automatically resizes based on the content (In one tab there is list that needs more width and in another tab the list is way smaller).
I tried the "Custom Data Window Style". Didn't work.
Example:
...ANSWER
Answered 2021-Jun-17 at 18:05You can set SizeToContent to Manual.
QUESTION
I am having an issue using Catel.Fody
in a .NET Core 3.1 WPF application. I add the NuGet package Catel.Fody
and the FodyWeavers.xml
file is generated, shown below.
The using Catel.Fody;
statement gives an error: the namespace Catel cannot be found
.
Is Catel.Fody not compatable with .NET Core WPF?
...ANSWER
Answered 2020-Dec-01 at 21:46They should all be compatible. Please check out the Orc components (https://github.com/wildgums). These are all.net core 3.1 and.net 5.0 compatible and use Catel.Fody.
QUESTION
I create an application that uses english language no matter the current system culture. For all catel windows this is no problem by using DataWindowMode.Custom and e.g.
AddCustomButton(new DataWindowButton("Save", "SaveCommand"));
in the constructor.
Now I created a wizard (Orc.Wizard) with some pages, but I can not find a way to change the culture for the used buttons and the popup windows when e.g canceling the wizard. Changing the Current(UI)Culture and DefaultThreadCurrent(UI)Culture has no effect.
Is there an easy way to change the uiculture for Orc.Wizard, or do I have to customize the default implementation of the wizard (copy pasta)?
...ANSWER
Answered 2020-Nov-04 at 23:49So, after checking the examples I found out that you have to use the catel language service. I added this in App.xaml.cs
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Catel
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page