How to use MVVM in AvalonDock 2.0 - c#

I am developing a WPF app that requires Docking control.
I downloaded Telerik's RADDock but I understand it is not native MVVM control (Have I got to the right conclusion??)
So later I downloaded and installed Avalaon dock 2.0, which has built-in MVVM support, however I can't understand how to use it..
I have a User control I created (Terminal control that encapsulates a TextBox) and I want to dynamically add new terminal instances to the AvalonDock LayoutDocumentPane, through my view model.
Can anyone please guide me through this, maybe supply a simple code example that demonstrates how this can be done.
Thanks in advance friends.

There are plenty of info on how to use AvalonDock 2.0 in MVVM-style on the net.
However, the most interesting ideas were proposed by Ashley Davis. But his library works with AvalonDock 1.3, so it can't be used straight-forward. If you have enough resources and project is pretty big, you can translate that ideas into AvalonDock 2.0 world and publish it somewhere. That'd be huge for the community. =)

Related

Is prism used with other gui-frameworks than wpf multiplatform compatible?

I was wondering if I can use the Prism framwork together with AvaloniaUI and if my app would still be multiplatform then.
I only have a windows right now and it works, however, does it work with linux/macOS aswell?
Started creating a port of prism for avalonia, it is still based on perspex, but that shouldnt be a problem. I dont think that it needs a lot of work to get it wotking on avalonia. https://github.com/KeKl/Prism

Simple 2D chart/graph control for winforms .NET 2.0

I am looking for a .NET 2.0 compatible simple Chart/Graph control to embed in my Winform application. So far I could only found Zed Graph. While it has all the functionality I need and then some, my problem is that its looks too professional for its own good. I tried customizing it and playing with its styling properties but the graph still looked dull.
I need a snazzy looking control which can give a chart that looks similar to this one
I don't really need all the details Zed Graph gives.
Can someone suggest a free control that can do this. Please bare in mind that the control should work with .NET 2.0
Regards
NPlot
NPlot (formerly known as scpl) is a free charting library for .NET. It boasts an elegant and flexible API. NPlot includes controls for Windows.Forms, ASP.NET and a class for creating Bitmaps.

Quick way to integrate Xaml in asp.net?

I have a WPF/C# application.
It contains some .XAML pages.
i would like to integrate this application into my ASP.NET/C# web application.
I want the application to show in an asp.net page.
What is the best way to do this?
I heard that I can use Silverlight.
I never worked with silverlight before. Can I do it without knowing silverlight or should I have a knowledge in silverlight before doing it?
Any help is greatly appreciated.
Thank you very much
You can either deploy your WPF application as an XBAP or migrate it to Silverlight. I'd recommend the latter because you'll get better browser/os support.
Just create a new Silverlight project and copy your xaml files into it. Probably, everything will be compatible since both frameworks have a lot in common. Silverlight is a bit more restrictive since it's a web framework, but it also has other features that WPF doesn't. If you find something that's not compatible, just search for an alternative here.

What is name of this component

Please say name of this component and does c# have it?
As others have suggested, this is commonly called an Outlook Bar after it's most famous usage in the Microsoft Outlook application.
Something similar is available in most third-party control suites, but if you're looking for something that is free and easily customizable, you might check out the OutlookBar control available on CodeProject:
The control itself is pretty simple, and implemented entirely in managed C# code as a UserControl.It should work under all versions of the .NET Framework back to 1.1, and is painless to integrate into your application. Best of all, with the source code freely downloadable, it's infinitely customizable to fit your specific needs!
I think it is called accordion, at least in jQuery.
And I do not know of any such in the basic controlles that comes with c# but I am cetrain that there are many 3:rd party components like this.
ComponentArts or Telerik are the first that comes to mind.
In WinForms, this is called an Outlook Bar or Navigation bar.
Most (if not all) third-party control suites, such as DevExpress, offer it.
I think its name is Accordion and it doesn't exists natively on Windows Forms Architecture.
Accordion ? Try searching among different control toolkits - there should be an implementation.

Non-standard UI in C#

I'm still learning C#, and I know don't know about WinForms yet but I will very soon. However I want to know how I would create an application which shows a customized notifier, like Growl on a Mac. Here's a mock up:
http://img25.imageshack.us/img25/3793/41151387.jpg http://img25.imageshack.us/img25/3793/41151387.jpg
Could anyone point me in the right direction? And I know I should learn more about C# before trying this, but I've always liked to peek on complicated stuff.
Take a look at this third-party WPF NotifyIcon control, I think it does what you want out of the box, hopefully something like this will be part of WPF in the future. I have used this one before for the exact same reason, and it is really good: you can use standard tooltips or "toast" popups, or create your own which could be just like the one in the example you posted if you wanted.
WPF would be a great place to start. you can make UIs in pure XAML without even touching C#
Here is an example of an "notification" implementation using WPF
Here are some reference links:
http://en.wikipedia.org/wiki/Windows_Presentation_Foundation
http://windowsclient.net/wpf/
You should probably look into WPF (Windows Presentation Foundation) to design some of the nonstandard UI stuff.
However, I would recommend becoming familiar with UI design in general before diving into nonstandard stuff.
Since you are starting from scratch, I would consider learning WPF rather than Winforms.
Here are two examples are a pop-up notifier in WPF:
WPF Taskbar Notifier - A WPF Taskbar Notification Window
PopUp window on a specific time in WPF?
WPF is Definitely what you are looking for if you want something like the image you provided. My project uses notification popups similar to that in the screenshot. Its really simple to get the wanted results after looking at a few samples of others who have done it. If you would like some help, you can send a message my way.

Categories