Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 13 18:35
    GeertvanHorrik commented #1741
  • Jan 13 18:32
    GeertvanHorrik commented #1741
  • Jan 13 14:42
    gofrogi commented #1741
  • Jan 13 14:42
    gofrogi commented #1741
  • Jan 13 14:37
    GeertvanHorrik commented #1741
  • Jan 13 14:37
    GeertvanHorrik commented #1741
  • Jan 13 14:35

    delete-merged-branch[bot] on 20210113-143511

    (compare)

  • Jan 13 14:35

    GeertvanHorrik on develop

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

  • Jan 13 14:35
    GeertvanHorrik closed #1742
  • Jan 13 14:35
    GeertvanHorrik opened #1742
  • Jan 13 14:35

    GeertvanHorrik on 20210113-143511

    GitHubSync update (compare)

  • Jan 13 14:31
    gofrogi edited #1741
  • Jan 13 14:24
    gofrogi opened #1741
  • Jan 13 14:12

    delete-merged-branch[bot] on 20210113-141154

    (compare)

  • Jan 13 14:12

    GeertvanHorrik on develop

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

  • Jan 13 14:12
    GeertvanHorrik closed #1740
  • Jan 13 14:12
    GeertvanHorrik opened #1740
  • Jan 13 14:12

    GeertvanHorrik on 20210113-141154

    GitHubSync update (compare)

  • Jan 13 08:11

    delete-merged-branch[bot] on 20210113-081059

    (compare)

  • Jan 13 08:11

    GeertvanHorrik on develop

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

Geert van Horrik
@GeertvanHorrik
And you can control the size of the wizard from within the wizard model
tm1k
@tm1k
Hm, the size is already set in the wizard model. Seems the theming error prevents it from be shown correctly?
tm1k
@tm1k
Somehow I can't either find a method for the initialization of ThemeManager nor anything in the Orc.Wizard.Example that I have not implemented. The error is still "Theming is not yet initialized, make sure to initialize a theme via ThemeManager first"
or use the AccentColor / BaseColorScheme methods and it should auto-apply it for you
tm1k
@tm1k
Boom! It works. Thanks a lot!
tm1k
@tm1k
Is it possible to access variable inside a wizard page that has been set by the user in a previous wizard page?
Geert van Horrik
@GeertvanHorrik
yes
a wizard page has a Wizard property, and that contains all the wizard pages available inside the wizard (including the state).
tm1k
@tm1k
I have a page selected with Linq from wizardPage.Wizard.Pages , but the ViewModel is null, so I cant access any variable. Am I missing something?
Geert van Horrik
@GeertvanHorrik
whenever a view model gets saved (SaveAsync), it's recommended to write data back to the Page model (view models are short-living objects).
In the example wizard, you can see how the summary page uses all other pages to determine the summary at the end
tm1k
@tm1k
I have not seen any constructor parameter injection within orc.wizard and my attempt of using typeFactory.CreateInstanceWithParameters is not working. Is this possible in general?
Geert van Horrik
@GeertvanHorrik
CerateInstanceWithPArametersAndAutoCompletion
tm1k
@tm1k
Also tried this, _typeFactory.CreateInstanceWithParametersAndAutoCompletion<Wizard.MyWizard>(Parameter); also gives me a System.NullReferenceException.
Geert van Horrik
@GeertvanHorrik
enable Catel logging, it will tell you why it fails
LogManager.AddDEbugListener(true) or something like that
tm1k
@tm1k
I have it activated, the return value of _typeFactory.CreateInstance... is null which I give the wizardService.ShowWizardAsync
Geert van Horrik
@GeertvanHorrik
yes, but the typefactory tells you why it cannot instantiate
tm1k
@tm1k
Got it! It was the order of the parameters in MyWizard
It is now MyWizard(Parameter, ITypeFactory typerFactory) : base(typeFactory) - what a bad mistake
Geert van Horrik
@GeertvanHorrik
mistakes happen, that's why we are glad we have logging :)
ssc19940105
@ssc19940105
var configurationService = new ConfigurationService();
Constructor without corresponding parameters
This is example in doc,but it is incorrect
Geert van Horrik
@GeertvanHorrik
Good catch! It probably requires dependencies now. A good usage now would be dependency injection (preferred0 or resolving it using ServiceLocator.Default.ResolveType<IConfigurationService>();
if you want, you can contribute to the docs with a fix :)
ssc19940105
@ssc19940105
configuration.SetValue(ConfigurationContainer.Local, "config", Config);

<?xml version="1.0" encoding="utf-8"?>

<DynamicConfiguration xmlns:ctl="http://schemas.catelproject.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<config ctl:type="System.String">YtbDownloader.Models.Config (ID = 1)</config>
</DynamicConfiguration>

ConfigurationService GetValue custom type does not get the expected result
Geert van Horrik
@GeertvanHorrik
is the object serializable? I think it's trying to serialize the ToString method for some reason
ssc19940105
@ssc19940105
Yes
Geert van Horrik
@GeertvanHorrik
Here is the logic that determines whether it should be serialized as string
tm1k
@tm1k
Is it a bug in the NumericTextBox that the entered value must be larger than the MinValue instantly or am I using it wrong? When the MinValue is set to e.g. 12 I can't enter a number at all, except I position the cursor in front of the zero and type '2' to get 20.
Geert van Horrik
@GeertvanHorrik
Hmmm, good question, that appears to be a bug
Adam Araminowicz
@aaraminowicz_gitlab
Any ideas why after updating Catel to version 5.12.7 I get error: "Cannot add instance of type 'EventToCommand' to a collection of type 'TriggerActionCollection'. Only items of type 'T' are allowed.", while I try to use EventToCommand? Before update it worked flawlessly. It must be something with dependencies versions, but I have no clue what has changed.
Geert van Horrik
@GeertvanHorrik
Yes. Probably because you are using an old (outdated) version of Interactions. Please migrate xamlbehaviors instead
tm1k
@tm1k
Since I updated my package versions, I can't bind a collection to a ListBox anymore. I get the error that the "collection must be empty before using ItemsSource". This has never been a problem before. It seems that I can't CreateInstanceWithParametersAndAutoCompletion and pass one of the parameters to a binding Object anymore. When the _uiVisualizerService.ShowDialogAsync is called, the error is thrown when using a ListBox
tm1k
@tm1k
Using the same binding with the ItemsSource of a ComboBox works fine
Adam Araminowicz
@aaraminowicz_gitlab
@GeertvanHorrik Thanks, however I had newest version of Microsoft.Xaml.Behaviors.Wpf (1.1.19, as required by Catel.MVVM 5.12.7). I downgraded Behaviors lib to version 1.1.3, which downgraded Catel.MVVM to version 5.12.5, and now everything works.
Geert van Horrik
@GeertvanHorrik
@aaraminowicz_gitlab please note that we made the change in 5.12.6 or 5.12.7, so if you use that version, you will need to use a different xaml namespace for your behaviors
@tm1k from what version to what version? We haven't had any issues with this so far
tm1k
@tm1k
5.11.2 to 5.12.7
Geert van Horrik
@GeertvanHorrik
yeah, that's a large update :)
tm1k
@tm1k
I am currently checking dependencies in NuGet
Geert van Horrik
@GeertvanHorrik
we would need a repro because it's too hard to figure out an issue just by symptoms
Geert van Horrik
@GeertvanHorrik
btw this could (should?!) be of interest to anyone using Catel: https://geertvanhorrik.com/2020/07/15/wpf-using-net-core-and-orc-theming/
tm1k
@tm1k
I now ported the whole project to a new one using Net4.7.2 updated all packages, rechecked dependencies, still the same error...
Geert van Horrik
@GeertvanHorrik
please create a repro so we can test
Adam Araminowicz
@aaraminowicz_gitlab
@GeertvanHorrik You were right. I removed Expression.Blend.Sdk.WPF packed and changed all Interaction namespaces to "http://schemas.microsoft.com/xaml/behaviors" and everything is back to normal. Thanks for help.