Orchestra is a composable shell built on top of Catel
People
Repo info
Activity
advapiIT
@advapiIT
Hello ppl, it's possible to set an orchestra app to go to the systray as it starts?
Geert van Horrik
@GeertvanHorrik
Sure. You can grab the main window in the splash screen and tell it to go to the systray. You can even hide both the splash and main window at startup with the latest prerelease version
advapiIT
@advapiIT
is there a doc about this?
Geert van Horrik
@GeertvanHorrik
nope
advapiIT
@advapiIT
good. I'll give a try on the return
advapiIT
@advapiIT
excuse me geert, I've downloaded orchestra from github (again) but I got this error messagwe
Severity Code Description Project File Line Suppression State Error MSB3644 The reference assemblies for framework ".NETFramework,Version=v4.7" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. Orchestra.Shell.Ribbon.Fluent C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 1179
Hello! 2 question about orchestra.... when I close the application I've to invoke a dispose of a service (absolutely, no way, otherwise the process remains zombie), where should I do this? since Orchestra.Shell is inside another assembly
should I've kept the orchestra.shell project inside the solution?
Geert van Horrik
@GeertvanHorrik
You can create a watcher that subscribes to Application.Exit event?
I also think we have an ICloseApplicationService, but that could be in our internal libs which are not open source
advapiIT
@advapiIT
Done, thanks!
advapiIT
@advapiIT
Excuse me, how do I inject the ILog in a viewmodel setting that's related to that class I mean
sometime in code I do private static readonly ILog Log = LogManager.GetCurrentClassLogger();
is there a way I can Inject the ILog and let the DI to set the currentclass clogger_
Geert van Horrik
@GeertvanHorrik
why would you want to use DI for logging? You can always query LogManger.GetLogger(typeof(x))
advapiIT
@advapiIT
because I tought it would be the right approach
for example SimpleInjector has an adapter to resolve the DI of ILog
Geert van Horrik
@GeertvanHorrik
sure, you could register it as open generic, but that doesn't work with Catel logging
each logging fx is a bit different
_
advapiIT
@advapiIT
ok
and about destructuring as Serilog does have u managed to do something similar?
advapiIT
@advapiIT
Excuse me Geert, I've written a keep alive service that monitors a WPF application developed with Orchestra.... if the service goes down I have to execute it (I use Process.Start("cmd /C filepath")
If I use a WPF application (a simple default one), it works. with Orchestra after the splash screen it shows for a second the shell, then it closes... can i be related to the splashscreen?
advapiIT
@advapiIT
Errata Corrige : It was my fault... with the resolution of an Icon when calling from a differen app domain.... +1 kudos Geert!
redrabbit007
@redrabbit007
Just started with Orchestra/Mahapps, my shell window shows up much larger than my main view. The shell is about 1400x1000 pixels, with the view about 820x800. How do I get the shell to be smaller so it just fits the view? Do I need to implement my own custom shell?
Geert van Horrik
@GeertvanHorrik
You shouldn't set any size on the main view, it should fill up the shell for you. Don't you want the app to be runnable in full screen / maximized?
As you can see here, there is a ShellDimensionsHelper that respects the dimensions from the main view
so you can use Max / Min properties and they will be used by the shell as well
redrabbit007
@redrabbit007
Is there a way to set the default size of the shell/main window? I see how the min/max width/height get set from the MainView. Is there a way to set the defaults?
Geert van Horrik
@GeertvanHorrik
if you have your own shell service, you can simply override InitializeBeforeShowingShellAsync and customize anything you need
redrabbit007
@redrabbit007
Do you mean override InitializeBeforeShowingShellAsync in my ApplicationInitializationService?
Geert van Horrik
@GeertvanHorrik
correct
venom_aa
@venomAA
wasnt there an example project for orchestra? I cant find it in the main site or the github site
venom_aa
@venomAA
nvm...found it
advapiIT
@advapiIT
Hello! Is there a way I can easily show in the splash screen the application's icon?
Geert van Horrik
@GeertvanHorrik
Yes, there should be. It's actually not the icon, but CompanyLogoForSplashScreenUri should do the trick
advapiIT
@advapiIT
§tHANKS
advapiIT
@advapiIT
Excuse me , in the case I've referenced the Orchestra.Shell.Ribbon.Fluent for orchestra and not copied all the files from the solution, it's possible to set up the CompanyLogoForSplashScreenUri as well?
Geert van Horrik
@GeertvanHorrik
Sure, if your company supports us on Open Collective, I am happy to help out there
Tender Ticante
@TenderTicante
Hi Geert, I've tried to use PleseWaitService, the first time I saw it was with Catel, but now doesn't work, so I searched and I found it works with Orchestra, but it doen't wotk, can you give an example or a documentation page to help me? Thanks for all your effort with Catel project <3
Geert van Horrik
@GeertvanHorrik
It works, but it has been replaced with a different one. For example, now it uses the progress bar at the bottom of the Orchestra shell (the fluent ribbon demo shows this nicely)
Tender Ticante
@TenderTicante
sorry for bother, I saw that example but I'm looking for a lock wait screen that appears when the information is loading in background there's an example code that I tried but I doesn't work.