Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
wondering how to create such app like Microsoft Expression Blend 4, with the modern design.
Very interested with the scroll and tab panel. The scroll is modern look, small and thin, unlike those wide scroll bars normally found in Windows Explorer.
Expression Blend 4 is a Windows Presentation Foundation (WPF) Application.
WPF allows you to customize nearly every aspect of the UI (including the scrollbars if you'd like).
Since you specifically call out the scroll panels, here's a tutorial that shows you specifically how to customize the look of the scroll bar by modifying the WPF template:
sachabarber.net >> Styling a ScrollViewer/Scrollbar in WPF
The nice thing about WPF is that once you understand how to modify things by changing their template, you can use the same method to change the look/feel of just about anything.
You could use DevExpress components for Windows Forms or WPF.
WPF is the way to go. Look at some of the themes here to get an idea.
There is even an Expression Dark theme.
Telerik has a sweet WinForms suite that has many sleek looking controls. That might be a good starting point.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm trying to find a Windows friendly UI development environment that I can translate what experience I do have into something usable, maintainable, and current. I like the idea of a web based UI, but that introduces another problem since a local Windows platform is required to perform various computations (because that's where the binaries and licenses are available).
I've decided on WPF + a well supported MVVM framework like Prism as a starting point. I have looked at the WPF samples they provide here:
https://github.com/PrismLibrary/Prism-Samples-Wpf
For the Prism supplied "examples", there isn't much of a description for what is going on in each step. There is mention of a Hello World example being added 3 years ago, but that doesn't seem to exist anymore.
Does anyone know of a good, simple example, based on the current Prism WPF Template, showing how to implement a "Hello World" type application? In my mind, something where you click a button that fires off an activity that when complete, will update a text box, or any other text/numeric control on the UI?
Based on further explanation in the comments.
PRISM has a huge amount of cruft rather than least and I suggest you instead look at mvvmlight. The way I would usually work is to create a new wpf app then add mvvmlightibs as a package using nuget.
I put together two samples you might find relevant:
https://social.technet.microsoft.com/wiki/contents/articles/31915.wpf-mvvm-step-by-step-1.aspx
https://social.technet.microsoft.com/wiki/contents/articles/32164.wpf-mvvm-step-by-step-2.aspx
The second uses mvvmlight.
I'm not suggesting you read just my articles but I have a bunch of them on wpf and a lot are aimed at newbies.
https://social.technet.microsoft.com/wiki/contents/articles/30959.user-page-andy-oneill.aspx
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am researching 3D and 2D rendering animation. I found the PictureBox control
is pretty okay for this purpose, but I feel I have only very beginner level knowledge. I am curious to know if it is possible to make a moderately complex level of rendering applications with the PictureBox control. In short, which is the best control in the Windows application tool box to be selected for my intended purpose?
I am making a Windows Forms application with C#.
I'm not sure what exactly you are doing with the PictureBox control for this purpose. But if you're using Windows Forms, then you may want to consider making your own Control subclass with all of your drawing operations handled using GDI+ calls in the OnPaint method. You could pair this with a Timer object called every so often to determine when to refresh.
This is an approach I have personally used for drawing previews of simulated mechanical objects in 2D, so this might work for your purposes as well.
Unless you can tell us what exactly you are trying to draw or provide some existing code for us to look at, it will be hard to give you a precise answer. But MSDN has some pages covering this topic, which you can take a look at to get started and for further reading:
Custom Control Painting and Rendering
Rendering a Windows Forms Control
User-Drawn Controls
Control.OnPaint Method (PaintEventArgs)
Graphics Class
The latest libraries you can use are from Xamarin,
SkiaSharp
UrhoSharp
They wrap over Skia and Urho engine so that you can render 2D or 3D contents in WinForms or WPF or any other kind of applications.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Using Spy++ tool, it seems that some Microsoft apps use NetUIHWND and DirectUIHWND window classes; e.g.: Word 2010's ribbon seems to be a NetUIHWND, instead Windows Live Messenger window seems to be a DirectUIHWND.
These window classes seem to host kind of cool graphics (with shadows, gradients, etc.); is it possible to use these window classes in our own Win32 C++ apps? Is there any documentation about them?
Yes, it has been around for a while already. But it gets especially a lots of usage in Windows7. Unfortunately, they keep this one to themselves, it is undocumented. You can try to reverse-engineer it, use a ListView as a guide to what it might do. But your code will almost certainly break in the next version of Windows. Which I think was the point of not documenting it, they need something they don't have to keep backwards compatible to be able to improve the look-and-feel of the operating system.
NetUIHWND and DirectUIHWND are the Win32 class types for different GUI toolsets.
From Win32 perspective they are a self drawn panel.
So you wouldn't use these classes directly, you would use the other GUI toolsets to build the UI.
Not sure about the Messenger UI, but you can use the ribbon control in your own apps.
On WTL: https://www.codeproject.com/Articles/54116/Relook-your-Old-and-New-Native-Applications-with-a
On MFC: https://learn.microsoft.com/en-us/cpp/mfc/reference/cmfcribbonbar-class
Use the Microsoft Active Accessibility API:
There is no need to reverse engineer this thing, you can enumerate this class structure using the Microsoft Active Accessibility API.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there any opensource implementation of a winforms control like the one on Windows Update window where "No important updates available" or another status is displayed? It looks like a bordered bar wih a tight vertical color bar - green or red depending on the information displayed, a large icon and several lines of text more to the right.
At least what's its name?
There isn't one that I'm aware of, but it should take only a few minutes to implement yourself.
You could create a new class deriving from Control, and paint the bar using a LinearGradientBrush. The rest is just creating the labels and images, placing them, and hooking up properties.
If you aren't comfortable doing this yourself, I suggest you learn how to do it anyways and use this control as a nice, relatively easy way to learn. It'll help tremendously in the future when you will undoubtedly run into this issue again. GDI+ painting and creating custom controls are skills any WinForms developer should know.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I need a WeifenLuo replacement that'll run on both .NET and Mono, on Windows, Linux and Mac, preferrably licensed under the MIT license.
I'd appreciate if the API was similar to WeifenLuo's, but I understand that such may not be available.
Also, since I couldn't find anything on Google, I believe this might not exist.
In this case, I'd like some hints regarding how to implement this.
I have some(not much) Windows.Forms experience, and I must not use any P/Invoke. I already know out how to detect window motion and how to create a borderless translucent window on a given position and with a given size.
So here are some problems I am facing:
WeifenLuo supports multiple left/right/top/bottom panes, allowing them to be resized and contain more than one panel.
It also supports splittable tabs.
Is there anything else I should be aware of before starting? Are there similar open-source projects available?
It is possible to disable all PInvoke to Win32 API when running on Mono. The price you pay is to lose drag and drop support on Mono/Linux, which may be acceptable in some cases.
Edited: http://www.lextm.com/2012/05/a-call-to-the-community-dockpanel-suite-history-and-future-2/ A fork of DPS is now hosted on GitHub, http://github.com/dockpanelsuite/dockpanelsuite
I have been wanting the same thing. I have been testing a basic layout system for win forms and found that the mono Mac version of WinForms is not 100% complete like drag and drop has not been implemented and is slow.
From my own searching GTK# has the best support across all platforms. The other way is to split the UI for each platform i.e. WinFoms, GTK# (linux) and Cocoa (cocoa#/monobjc).
GTK# looks nice, but involving, and there is a learning curve. Myself, I tried QuickSharp, but couldn't find support anywhere, and the weifenluo docking system lacked a few features and was difficult to implement form sizes.
I ended up going with [dockDotNet][1] which allows for a minimumsize parameter, and is very easy to work with. You can set nearly all the floated form properties right there with the property manager - even setting the form icon!