.NET Core 5 WinForms SystemMenu - winforms

How can I update the SystemMenu (the one that appears when we click on the icon in the top left of our window) in WinForms when using DotNet Core 5.0 in Linux?

Related

.NET Core 3.1 Windows Forms Designer Bug?

I've created a .NET Core 3.1 Windows Forms app and am trying to add a RadioButton inside a Panel inside a TabPage using the designer but it won't let me. Am I doing something wrong, or is this a bug?
In addition, I cannot reposition the Panel using the mouse, only cursor keys.
I can do this just fine in a .NET 4.7.2 app.
You can double click to user control on components panel.
It will be added to 0,0 coordinate on Windows form.

RibbonWindow.Hide() and Window.ShowDialog() problems on .net 4.5

I changed the .net Version of my WPF Application from .net 4.0 to 4.5 and replaced the old ribbonlibrary with the new one (System.Windows.Controls.Ribbon).
After that I noticed some strange behaviour on the following case (which works fine before):
The Main Window is a RibbonWindow.
A RibbonButton executes a Command with this simplified code:
App.Current.MainWindow.Hide();
new Window().ShowDialog();
When the modal Dialog shows up the CPU goes mad:
If I remove the Hide() line, it works fine.
Am I missing a change on the ribbon controls library for .net 4.5 or do I using it wrong?

How to call a Win 8 project from a Winforms project?

I have an existing Winforms project that currently runs on our Win 7 machines. Now I need to add camera access to it so that we can also run it on Win 8.1 tablets and take photos.
I understand that I can build WPF application for Win 8.1 to access camera.
I know that I can run my Winforms application on Win 8.1 as is.
My question is - do I have to rewrite my whole winforms application into Win 8.1 WPF to get access to the camera, or I can somehow create just the image capture form in Win 8.1 WPF and call it from my existing Winform application?
I was hoping that creating WPF Custom Control would work, but it seems that I only can create WPF Custom Controls for Windows 7, not for Win 8.1.
My question is - do I have to rewrite my whole winforms application
into Win 8.1 WPF to get access to the camera...
You can use Version to check if an OS is Win8, then do appropriate actions.
Version win8Version = new Version(6, 2, 9200, 0);
if (Environment.OSVersion.Platform == PlatformID.Win32NT &&
Environment.OSVersion.Version >= win8Version)
{
// Win8 or higher
}
else
{
// Do something if it isn't
}

When Internet Explorer 8 opens then WPF application UI freezes

System Information:
Win 7 32-Bit,
Internet Explorer 8,
.Net Framework 4 Installed.
Issue that;
When Internet Explorer 8 opens then WPF application UI freezes, application continues to work on the taskmanager without not-respond or have any exception. WPF window gets non-clickable and focusable UI.

What version of Blend supports WPF 4.5, Portable Class Library?

I am setting up the project structure for a new greenfield application. Our initial release will only support a WPF client, but we want to eventually roll out Metro and Silverlight clients as well. I decided on the following:
Core Library - Portable class library targeting .NET for metro, .NET 4.5, SL4, Windows Phone 7.5
WPF Application - Targeting .NET 4.5
Our Model/ViewModel layer is defined in the Core Library, View defined in the WPF Application. I chose .NET 4.5 in order to support defining the viewmodel in the core library in a way that can be consumed by both WPF and Metro.
This works fine in the Visual Studio 11 Beta running on Windows 7 Pro. I have a working view that is data bound to the ViewModel defined in the Core Library. My problem is Blend. When I open the View in Blend, I get no designer. I suspect the problem here is support for WPF on .NET 4.5. I have tried Blend 4 and Blend for VS11 Beta.
Does anyone know how to get the designer working in Blend for WPF views as described above?
*Status as of 2012-05-10:
No combination of VS11 and Blend appear to support WPF 4.5.
Since Visual Studio 2012, Update 2, the preview version of Blend (Blend + Sketchflow Preview for VS2012) has been merged with into the vanilla "Blend for Visual Studio 2012". This means that there is now a single designer application for all XAML platforms:
With Blend (for Visual Studio 2012), you can design and build:
Windows Store apps
Windows Phone apps
Sketchflow prototypes
Microsoft Silverlight and Windows Presentation Foundation (WPF) applications
edit: At this time, there's no Blend support for WPF 4.5. Here's the relevant info:
You need to install Visual Studio 11 Beta (Ultimate, Premium, or Professional -- NOT Express since it lacks the Blend pieces you want) on a Windows 8 preview build. That's just how they decided to line things up. Even once you do this, you still won't have WPF support:
Please be aware that in the Visual Studio beta, the XAML authoring
support for Windows 8 is not quite at the same level of stability and
completeness yet as the HTML authoring support.
Windows 8 requirement: http://blogs.msdn.com/b/devschool/archive/2012/03/01/blend-5-and-visual-studio-11-awesome.aspx
Visual Studio versions: http://blendinsider.com/technical/visual-authoring-for-the-windows-8-consumer-preview-with-blend-and-visual-studio-2012-02-29/

Resources