Thanks to github, CBR & Co has got a brand new web site…
Grâce à github, CBR & Co a un tout nouveau site web …
Thanks to github, CBR & Co has got a brand new web site…
Grâce à github, CBR & Co a un tout nouveau site web …
With the MVVM pattern, it’s quite difficult to handle context menu commands because context menu are not in the same tree view and we generally don’t want to bind on business commands that are in menu item view models. It’s the same problem for tool windows and so on, because we want to reuse the existing commands.
I describe below the “Forward” command pattern used in CBR. Note that MVVM is implemented via MVVMLight.
First, extend your ViewModelBase to have a ViewModelBaseExtended that will implement a ForwardCommand for all your view models. With also an overrideable method GetForwardCommandContext
CommandContext is an helper class that will contain the command to execute as string and an additional command parameter
#region ----------------COMMANDS---------------- private ICommand forwardCommand; public ICommand ForwardCommand { get { if (forwardCommand == null) forwardCommand = new RelayCommand<string>( delegate(string param) { Messenger.Default.Send<CommandContext>(GetForwardCommandContext(param), ViewModelBaseMessages.ContextCommand ); }, delegate(string param) { return CanForwardCommand(param); }); return forwardCommand; } } protected virtual CommandContext GetForwardCommandContext(string param) { return new CommandContext(); } protected virtual bool CanForwardCommand(string param) { return false; } #endregion } public class CommandContext { public string CommandName { get; set; } public object CommandParameter { get; set; } }
Hi,
A new version is under certification. It brings :
Good reading…
Bonjour à tous,
Une nouvelle version est en cours de certification. Cela apporte :
Bonne lecture….
That’s it – I found a new name for it : Com’Iko and it’s published on the store !
https://www.microsoft.com/fr-fr/store/p/comiko/9mvhjjlkkztk
Hi all,
I am writing a new version of C.B.R for Universal Windows Platform. I start from the ground with a MS sample Lunch scheduler (https://github.com/Microsoft/Windows-appsample-lunch-scheduler) and hope this new version will be available under 2 or 3 months…
I will write a few articles about trouble i have with my solutions like customize the title bar and the full screen mode because it is quite hard to find help and tips about this new platform.
Improvments : I will do it like “Groove” : give a folder, and CBR will create catalogs and books for you. No more need to create everything by hand
Screenshots to come
Version 1.5 is on the way (and also a new release for the desktop)
Mainly improvments and a new wallpaper funtion to improve the design. Will see if I can put a bit more…
I am trying a free host on http://comicbookreader.esy.es/
wait and see if it work and reply to the needs
CBR 1.4 for windows 8 and RT is on the store. It mainly brings performance improvements and the ability to change the library cover.
CBR 0.9 for desktop is available on Codeplex. It brings some technical changes like the Framework 4.5 and also the publish function to share your book with CBR RT.
Have fun !!
As i changed from free.fr to another provider, I have no more access to my FTP web site…I am actually searching for a better solution, but if you have any suggestion, feel free to submit.
Finally, this version is out there. I hope it will solve most of the trouble users have encountered.
Mostly it brings internal rss reading and the synchronization with CBR for Desktop. An official version has not been released yet, but I hope comes shortly.
See you soon.