Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    advapiIT
    @advapiIT
    That's the "Problem"... if I put
      protected override async Task InitializeAsync()
            {
                await base.InitializeAsync();
    
                DeferValidationUntilFirstSaveCall = false;
    
            }
    it works
    Geert van Horrik
    @GeertvanHorrik
    Please comment on the ticket, I might look into this later tonight, need to work on other stuff now.
    advapiIT
    @advapiIT
    Hello, if I use Orc.FluentValidation, can this be applied to a Model instead of the Viewmodel?
    Geert van Horrik
    @GeertvanHorrik
    I don't believe the lib even references CAtel.MVVM, so yes
    maybe you'll need ValidatableModelBase, not entirely sure
    advapiIT
    @advapiIT
    it works thevalidation geert
    I had to use the messageMediator between models btw
    happy to hear you've replicated the issue with Shell and Validation
    advapiIT
    @advapiIT
    excuse me, I've checked the doc on orchestra, but have found no answer. how do I disable the reset settings at startup when something has gone wrong'
    ?
    Geert van Horrik
    @GeertvanHorrik
    I don't think you can
    maybe override the service?
    advapiIT
    @advapiIT
    it's a solution...but the problem seems another, I've to dig, if I'm under debugger and I've got an error on last run, the execution after the restore settings jumps the code inside the code inside InitializeAfterCreatingShellAsync
    for example
     public override async Task InitializeAfterCreatingShellAsync()
            {
                Log.Info("Delay to show the splash screen");
    
                Thread.Sleep(1500);
    
                var viewModelLocator = _serviceLocator.ResolveType<IViewModelLocator>();
                var viewmodelFactory = _serviceLocator.ResolveType<IViewModelFactory>();
                var uiVisualizerService = _serviceLocator.ResolveType<IUIVisualizerService>();
    
                var loginViewModel = viewmodelFactory.CreateViewModel<LoginViewModel>(new LoginModel());
    
                await uiVisualizerService.ShowDialogAsync(loginViewModel, null);
    
                var lastSyncronizationViewModelType = viewModelLocator.ResolveViewModel<LastSyncronizationViewModel>();
    
                var viewmodel = viewmodelFactory.CreateViewModel<LastSyncronizationViewModel>(null);
    
                await uiVisualizerService.ShowDialogAsync(viewmodel, null);
            }
    the loginViewModel and lastSyncronizationView model are not shown, if outside the debugger it works
    this only happens if there's an error on last run, btw I' ll create a repo
    and if it happens I send you an issue on git
    Daniel Mittelstadt
    @DMtsdt
    Hey all,
    I've recently decided to migrate my project (a plugin based MDI) to Orchestra
    I've implemented Orc.Extensibility in my shell, but I'm having a hard time getting the PluginFinder to locate my plugins.
    Most of my plugins are inheriting from a type constrained abstract base, and I have the finder running in the ApplicationInitializationService InitializeBeforeCreatingShellAsync task while the splash screen is being displayed, if that makes any difference. (I can see it going through a lot of referenced assemblies but none of my own plugins).
    I also don't fully understand the purpose of the ConfigurationKeys class, so I'd very much appreciate a word or two on that
    Thanks :)
    Geert van Horrik
    @GeertvanHorrik
    ConfigurationKeys is just a class to define constants to read from the config. You can use anything, but we like to work with compilation constants
    I need more code than this, but where are your plugins located? From the top of my head, the extensibility locator checks a few locations out of the box
    Daniel Mittelstadt
    @DMtsdt

    Right now I'm outputting to debug, so each plugin outputs to its own directory. For now I just I have the PluginFinder go 2 directories up, and the plugins are found

    protected override void FindPluginsInDirectory(PluginProbingContext context, string pluginDirectory)
    {
        base.FindPluginsInDirectory(context, Path.GetFullPath(Path.Combine(pluginDirectory, @"..\..\")));
    }

    Still can't load them, I'll be giving the MultiplePluginService a thorougher look today

    Offline
    @Offline-R503B
    Hey, I was wondering how I use the FluentRibbon theme in a CatelData window that is not my main window?
    (I mean the glow border + way better looking titlebar)
    Geert van Horrik
    @GeertvanHorrik
    yes, but in such case you'll need to use your own window "definition".
    you could copy the shell window and launch it as a data window
    Offline
    @Offline-R503B
    Ah okay, I ended up using windowstyle = none + transparancy + custom border thats tied to the theme accent :)
    Another small question I had I couldn't find in the examples is : It is mentioned on the github page you can theme the splashscreen , where do I find an example to do this ?
    Geert van Horrik
    @GeertvanHorrik
    the theme is the color (accent color from Orc.Theming) and possibile a splash image
    Offline
    @Offline-R503B
    Ah thanks !