Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 22 06:41
    dependabot-preview[bot] edited #108
  • Aug 22 06:41

    delete-merged-branch[bot] on nuget

    (compare)

  • Aug 22 06:41

    GeertvanHorrik on develop

    Bump MethodTimer.Fody from 3.0.… Merge branch 'develop' into dep… Merge pull request #108 from Wi… (compare)

  • Aug 22 06:41
    GeertvanHorrik closed #108
  • Aug 22 06:41
    GeertvanHorrik synchronize #108
  • Aug 22 06:41

    GeertvanHorrik on nuget

    Bump Fody from 5.2.0 to 6.0.0 … Bump ModuleInit.Fody from 2.0.0… Merge pull request #106 from Wi… and 5 more (compare)

  • Aug 22 06:40
    dependabot-preview[bot] edited #108
  • Aug 22 06:40

    delete-merged-branch[bot] on nuget

    (compare)

  • Aug 22 06:40

    GeertvanHorrik on develop

    Bump Obsolete.Fody from 5.0.0 t… Merge branch 'develop' into dep… Merge pull request #109 from Wi… (compare)

  • Aug 22 06:40
    GeertvanHorrik closed #109
  • Aug 22 06:40
    GeertvanHorrik synchronize #109
  • Aug 22 06:40

    GeertvanHorrik on nuget

    Bump Fody from 5.2.0 to 6.0.0 … Bump ModuleInit.Fody from 2.0.0… Merge pull request #106 from Wi… and 2 more (compare)

  • Aug 22 00:16
    dependabot-preview[bot] labeled #109
  • Aug 22 00:16
    dependabot-preview[bot] opened #109
  • Aug 22 00:16
    dependabot-preview[bot] labeled #108
  • Aug 22 00:16

    dependabot-preview[bot] on nuget

    Bump Obsolete.Fody from 5.0.0 t… (compare)

  • Aug 22 00:16
    dependabot-preview[bot] opened #108
  • Aug 22 00:16

    dependabot-preview[bot] on nuget

    Bump MethodTimer.Fody from 3.0.… (compare)

  • Aug 22 00:14

    dependabot-preview[bot] on nuget

    (compare)

  • Aug 22 00:14

    dependabot-preview[bot] on develop

    Bump ModuleInit.Fody from 2.0.0… Merge pull request #107 from Wi… (compare)

dbrosy
@dbrosy
I am trying out the wizard but am having trouble loading the wizard on startup
how do i call the wizard from mainwindow.cs
to load on startup
im not sure how to use "await _wizardService.ShowWizardAsync<ExampleWizard>();" to load ExampleWizard on startup
Geert van Horrik
@GeertvanHorrik
WPF needs a main window to stay alive. So if you want to show a wizard before the main window, either (temporarily) change the ShutdownMode of the application or show the main window and overlap it with the wizard
Patrick Näf
@herzbube
Hi Geert. As you may have noticed I finally submitted the PR for customizing wizard navigation. I have a 3-4 more requests, but now that I've read through CONTRIBUTING.md I thought I would run these by you first here in chat before submitting. Is that OK with you?
And by the way: I hope you had a relaxing Easter weekend :-)
Geert van Horrik
@GeertvanHorrik
@herzbube yes, thanks for noticing that. It would be a shame if you would put many hours in something we would not want to accept.
but... the good thing is that we are open for all suggestions :)
Patrick Näf
@herzbube
Right. So the first thing I would like to suggest is, provide a means to customize texts. Specifically, I would like to customize 1) the message that is shown when the user clicks "Cancel"; and 2) the text displayed by the "Finish" button. Maybe this can already be done, e.g. via ILanguageService? If so, I don't know how, and a brief pointer in the right direction would be very welcome.
Geert van Horrik
@GeertvanHorrik
Text customization can be done via the LanguageService. That is not sufficient?
so you can implement (override if you wish) the LanguageService, then return your required text when the specified key is requested
If you need help, let me know
Patrick Näf
@herzbube
OK, will have a look at this. 99% that this is sufficient, but if I run into trouble I will ask again.
Second suggestion: Add a "Help" button to the wizard. The button is not visible by default, but can be made visible by a concrete wizard implementation. Handling the click by the user is entirely up to the concrete implementation.
Patrick Näf
@herzbube
How does this sound? I can imagine that you are reluctant to add this, because where does it end? Someone else might want button X, or button Y - there is no end to customization. If you don't like a general "Help" button I can probably find another solution, but I just thought I'd ask.
Third, and for the moment last, suggestion: Make the wizard dialog resizable.
Geert van Horrik
@GeertvanHorrik
That sounds really good
so 2: open to pr
I'm not sure if the Help command should be put on the Wizard model or somewhere else, but if there is no Help command (ReferenceToCollapsingVisibilityConverter) the button will be hidden
3: Open to this as well, but want to make this configurable. Maybe something with Min and Max sizes as well?
Patrick Näf
@herzbube
2: OK, will provide a PR sometime in the next few days, then.
Patrick Näf
@herzbube
3: I'm not terribly versed in WPF. I saw that System.Windows.Window has properties ResizeMode, Min/MaxWidth, Min/MaxHeight, so it might already be possible to set these from somewhere within the custom code. The only problem at the moment is that I'm not sure how I can get the window object that represents the wizard dialog. Maybe via service locator? I'll research this a bit more, if I am successful maybe no PR will be necessary.
Anyway, thanks for your feedback! I'll get back to you when I have more questions/results.
Geert van Horrik
@GeertvanHorrik
The thing is that the resize mode must be set on the window, and that's taken care of for you by Orc.Wizard. So I think if you want to control it, there must be some services / properties exposing the min / max size and whether resizing should be possible
ChrisK91
@ChrisK91
So this might be a really dump question... But what is the best way to use the data of the wizzard? I guess I have to override the SaveAsync manually? If I want to access the various pages, do I have to do this by Pages[index] or is there better way (e.g. accessing them by model name)?
Geert van Horrik
@GeertvanHorrik
@ChrisK91 At the beginning of the wizard you need to create some wizard model. This model should have all the info at the end of the run
ChrisK91
@ChrisK91
This is the one, in which I add the pages, with AddPage, right? But the data is actually contained in every pages Model. I'm not sure how to access these models, once SaveAsync is called on the wizzard... Or do I have to override SaveAsync in every model of a wizzard page?
You can retrieve all pages via Wizard.Pages
to run a custom model, use this code:
var wizard = new MyWizard();

await wizardService.ShowWizardAsync(wizard);

// here your wizard model contains all the data
ChrisK91
@ChrisK91
Ah I see. Thanks for your help!
Patrick Näf
@herzbube
Hey Geert. I noticed that you have released Catel 4.5 and updated Orc.Wizard for that new release. Are you also going to make an official release for Orc.Wizard? Just adding a tag, say 1.1.0, would be a nice touch as it would create a much easier reference point than a commit hash.
Geert van Horrik
@GeertvanHorrik
@herzhube Yep. We are going for that soon (first week of august). We have a consolidation the first week of each month. At then end of that week, we will release the stable packages.
Patrick Näf
@herzbube
@GeertvanHorrik I noticed only now that IWizardService.ShowWizardAsync() returns Task<bool?>, but the convenient IWizardServiceExtensions.ShowWizardAsync() only returns a Task object. Is there a reason why IWizardServiceExtensions omits the dialog result? Because of the omission the client code that shows the wizard has has no way of knowing whether the wizard was finished normally or canceled (or am I missing something?).
Geert van Horrik
@GeertvanHorrik
@herzbube I think it's a bug / mistake. Probably we introduced the bool? in a later stage and forgot to fix it.
Patrick Näf
@herzbube
OK, thanks. I'll submit a PR in the next couple of weeks (I know it's only a small change, but I'm very busy right now, so it'll have to wait a little while longer).
Geert van Horrik
@GeertvanHorrik
I'll fix it now. We expect to release a stable version in the next 2 - 3 weeks so it's better to include this fix now
Patrick Näf
@herzbube
Even better! Thanks a lot!
Geert van Horrik
@GeertvanHorrik
Update should be available in about 2 minutes
version 1.1.0-unstable.38
Patrick Näf
@herzbube
Great! I won't be able to integrate on my side right now, though, because I would have to pull in the new Catel version as well, and I don't have the time to test that ATM. I'll probably wait for the stable release.
Geert van Horrik
@GeertvanHorrik
4.5.3 is just a hotfix (includes serialization only)
but I can imagine that
Let us know if you find more inconsistencies, we are trying to fix them before the stable version, thanks for this one!
Patrick Näf
@herzbube
Will do. I absolutely believe in Catel's stability, BTW, but unfortunately I must cater to team "dynamics".
Attiqe Ur Rehman
@attiqeurrehman
Hi I am developing a VSTO Add-in for the MS Excel and want to use Wizard control in User Control which will then be hosted in Windows Form, so my question is rather than showing the Wizard await _wizardService.ShowWizardAsync<ExampleWizard>(); Can I use them in designer ?
Geert van Horrik
@GeertvanHorrik
I don't think the wizard can be used inside a designer
Attiqe Ur Rehman
@attiqeurrehman
OK THANKS
for the quick response