Where communities thrive


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

    delete-merged-branch[bot] on nuget

    (compare)

  • 11:05

    GeertvanHorrik on develop

    Bump Verify.NUnit from 8.6.1 to… Merge pull request #1720 from C… (compare)

  • 11:05
    GeertvanHorrik closed #1720
  • 08:13
    dependabot-preview[bot] labeled #1720
  • 08:13
    dependabot-preview[bot] opened #1720
  • 08:13

    dependabot-preview[bot] on nuget

    Bump Verify.NUnit from 8.6.1 to… (compare)

  • Nov 25 08:25

    delete-merged-branch[bot] on nuget

    (compare)

  • Nov 25 08:25

    GeertvanHorrik on develop

    Bump Verify.NUnit from 8.6.0 to… Merge pull request #1719 from C… (compare)

  • Nov 25 08:25
    GeertvanHorrik closed #1719
  • Nov 25 08:12
    dependabot-preview[bot] labeled #1719
  • Nov 25 08:12
    dependabot-preview[bot] opened #1719
  • Nov 25 08:12

    dependabot-preview[bot] on nuget

    Bump Verify.NUnit from 8.6.0 to… (compare)

  • Nov 24 17:12

    GeertvanHorrik on 5.12.11

    (compare)

  • Nov 23 14:50

    delete-merged-branch[bot] on nuget

    (compare)

  • Nov 23 14:50

    GeertvanHorrik on develop

    Bump Verify.NUnit from 8.4.2 to… Merge pull request #1718 from C… (compare)

  • Nov 23 14:50
    GeertvanHorrik closed #1718
  • Nov 23 14:40
    dependabot-preview[bot] labeled #1718
  • Nov 23 14:40
    dependabot-preview[bot] opened #1718
  • Nov 23 14:40

    dependabot-preview[bot] on nuget

    Bump Verify.NUnit from 8.4.2 to… (compare)

  • Nov 23 09:44

    GeertvanHorrik on develop

    Update build scripts #1713 Add support for .NET 5.0 Non-dependency package maintena… and 9 more (compare)

ssc19940105
@ssc19940105
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.
tm1k
@tm1k
Found it! For some reason SeletedItem was set to "TwoWay" mode which seemed to work in the past. I removed it, now it works as before
Geert van Horrik
@GeertvanHorrik
Glad it's fixed :)
tm1k
@tm1k
In the Wizard NavigationStrategy gives the page index of previous and next pages, but is it possible to overwrite them in order to skip some pages when going backwards in the wizard?
Geert van Horrik
@GeertvanHorrik
I think that was the point of the navigation strategy. Btw you can navigate to any page manually whenever you like. We use this to implement hyperlinks in the summary page to quickly go to a specific page to customize data
tm1k
@tm1k
This seems to solve my problem. I'll have a look
ssc19940105
@ssc19940105
Help me!How to deserialize XML files into ViewModel?
tm1k
@tm1k
Doesn't xmlSerializer.Deserialize work?
Geert van Horrik
@GeertvanHorrik
you can use any serialization method, it's irrelevant from the vm?
ssc19940105
@ssc19940105

MyObject myObject = null;

using (var fileStream = File.Open(@"C:\myobject.dob", FileMode.Open))
{
myObject = ModelBase.Load<MyObject>(fileStream, SerializationMode.Xml);
}

CS0117 C# ModelBase does not contain a definition for 'Load'
Geert van Horrik
@GeertvanHorrik
yeah, this seems to come from a very old example
please use IXmlSerializer (or whatever you use) to read from a (file)stream
Or use SavableModelBase
ssc19940105
@ssc19940105
Thanks
venom_aa
@venomAA
tried the new templates for creating a new catel app from the online repository
question..must i use the 4.6.2 framework always..or how can i change the target framework?
Geert van Horrik
@GeertvanHorrik
we only use netcoreapp3.1 nowadays
you can change it at the top of the csproj
venom_aa
@venomAA
but older versions can use the standard framework right?
still Geert, something is kind of wrong i think, cause i have the 7.0 framework and it was still showing errors on the version cause it was waiting for the 6.2. From what i can remember 7.0 is compatible with the 6.2 version right?
Geert van Horrik
@GeertvanHorrik
all versions can target 4.6.2, but you can target anything you want
not sure what you mean with 7.0 and 6.2, both are not related to Catel?
venom_aa
@venomAA
i mean NET 4.6.2 and 4.7.0. I changed the target framework to 4.6.1 and eliminated the core 3.0 from it to, it no longer showed errors on the dependencies. Still had an error on the main point of entry for the program when i compiled but im sure thats non related to the .NET framework version.
When i tried moving to 4.7.0, it kept showing dependencies problems, and im sure this laptop has the 4.7.0 .Net Framework. Also have the doubt about it not running when targeting to .Net 4.6.2. cause should not it run under machine with .Net 4.7.0 since 4.7.0 allows apps targeting 4.6.2 to run on it?
Geert van Horrik
@GeertvanHorrik
it's always compatible with lower versions
venom_aa
@venomAA
yup, even found the old project template files and they still work. Only had to modify some lines for it to run
tm1k
@tm1k
Again a question concerning the wizard: say, I have a wizard procedure which needs to performed several times (user decides how many repetitions will be shown). Can I do this dynamically? Does the wizard initialization require the "addPage" method for every page or can I add more pages inside other pages?
Geert van Horrik
@GeertvanHorrik
We build up wizards dynamically all the time.