Controls missing in UWP application - c#

(I am new to UWP environment)
There are missing controls under the toolbox menu in VS 2022: I cannot find labels, tab controls and many other items I would use.
Thanks in advance

UWP does not support controls from WinForms WPF and other
Instead of a label, you could use a TextBlock.
This is the new UWP tabcontrol you could use:
https://learn.microsoft.com/en-us/windows/apps/design/controls/tab-view
You can also check out the WinUi 2 Gallery. Every UWP control is listed there: https://apps.microsoft.com/store/detail/winui-2-gallery/9MSVH128X2ZT

As #FrozenAssassine mentioned, UWP development is different from the traditional desktop app development. The controls are not the same as those you used to use before. The link he provides is really useful.
In addition to his answer, as you are new to UWP development, you could also go through this document: Develop UWP apps. This document could help you start the UWP development.

Related

Is it possible to create a true Dialog in Xamarin Forms WPF

Dialogs created in Xamarin Forms (e.g. Alert Dialog or a custom Dialog) are shown within the bounds of the application window. This is fine for mobile devices but on the Windows Desktop one would expect to have a true Dialog (e.g. MessageBox, Custom Dialog) that has its own window.
Is this possible with Xamarin Forms WPF?
From the document, the Xamarin.Forms WPF support is still in Preview, so will not be as complete/stable as Android/iOS/UWP support.
This is a preview, so you should expect that not everything is
production ready. Not all NuGet packages for Xamarin.Forms are ready
for WPF, and some features might not be fully working.
I find a forms-wpf-progress file and there is nothing like the MessageBox, Custom Dialog as you mentioned in the question. So I think it is not possible to create such a thing so far.
Maybe you can use a DependencyService to add your own support for features in WPF.

Where can i find some themes/demo for UI in WPF application?

I want to design a modern looking UI using visual studio designer in xaml. It gives me a nice toolbox which I can use to create a UI visually by drag and drop. As it is almost behaving like HTML, I was wondering if it too has a rich library of themes. I found some, but they are not editable through designer.
Can someone please help me out and direct me to appropriate links where I can find editable themes for xaml for my WPF project?
I use this:
Mahapps.metro http://mahapps.com/
I very good looking thems and it is free. More info https://stackoverflow.com/a/15500408/5816153
Others:
Modern UI for WPF (MUI) - https://github.com/firstfloorsoftware/mui
And for more info on SO: Making WPF applications look Metro-styled, even in Windows 7? (Window Chrome / Theming / Theme)

How to set Themes in Windows Application as in Web?

I am Creating a Windows Application in which there numerous forms. I want to create a general theme for all forms like style sheets or theme files in webapplication. Is there any way for setting themes in Windows application?
Unfortunately this is something that lacks support in WinForms. There are third party controls allowing you to achieve this but nothing out of the box. This concept has been introduced in WPF which is intended to replace WinForms.
You can use a third party dll to change theme of your windows form like DotnetSkin, DevExpress etc.

ActiveX controls are disabled during design time in WPF application

I am developing WPF windows application using VS 2008 and .NET 3.5. I am trying to use Mozilla Web browser activeX control in my application. I have added it to my tool box. The control is visible in tool box but it is disabled state. I am not able to use it during design time. This does not happen with normal Windows Form Application, I am able to use same control during design time.
Can anybody help me to understand this strange behavior?
Thanks,
Omkar
WPF doesn't directly support ActiveX controls. You'll need Winforms to give it a hospitable runtime environment and leverage the auto-generated AxHost wrapper. The WindowsFormHost control is available to embed winforms controls in a WPF window. The walkthrough that shows the technique is available here.

Windows Explorer control for WPF?

Is there a way to have a Windows Explorer on WPF? The closes I can get is the Web Browser, but it's not really what I need.
Please assist.
Thanks
Check these out -
http://www.codeproject.com/KB/WPF/WPF_Explorer_Tree.aspx
and
http://gargmanoj.wordpress.com/2009/03/27/wpf-101-a-simple-windows-explorer-like-directory-browser/
JAM Software recently released a WPF edition of their ShellBrowser controls. They contain a wrapped Windows Explorer as well as custom built tree and list controls. Also included is a preview control similar to the one in the Windows Explorer on the right. Full disclosure: I am one of the developers of ShellBrowser.
Check out the explorer browser control in the Windows API Code Pack. Compatible with Vista and 7, I believe.
I have written a WinForms library that might help. It's not WPF but you can host it in a WPF application.
You can find the library at: http://gong-shell.sourceforge.net/
You can also check this out. It's fresh to the market and you'll need to pay, but it was designed to be identical in every way to the Windows Explorer Chrome:
http://www.teraque.com/products/explorer-chrome-suite/
The controls you get for free from WPF look like crap. They are only meant to get developers started.

Categories

Resources