Questions tagged [xaml-islands]

41 questions
1
vote
1 answer

Setting UWP NavigationView Content To Page Displays Page's Type Name

I'm using XAML Islands to display a UWP NavigationView control from within a .NET Core WPF application window (I don't need the whole navigation infrastructure -- I just want the navigation view control). I also have a class derived from Page called…
JeffFerguson
  • 2,952
  • 19
  • 28
1
vote
2 answers

Windows Toolkit XamlHostControl in WinForms

I am trying to run through the very basic example on the page below, following the instructions for WinForms https://learn.microsoft.com/en-us/windows/communitytoolkit/controls/wpf-winforms/windowsxamlhost I keep getting errors when trying to drag a…
SWiggins
  • 13
  • 2
1
vote
1 answer

How do I add an item in a WindowsXamlHost ListView?

I tried to add an item to a WindowsXamlHost whose InitialTypeName is set to Windows.UI.Xaml.Controls.ListView. I am trying to add an item to the WindowsXamlHost listview. Here is my code: List listFiles = new List(); OpenFileDialog…
1
vote
1 answer

How can we show UWP user control on vertical-top edge of the parent window?

Following XAML in this Microsoft tutorial is showing too much gap between the top edge of the parent window and the UWP user control. Question: How can we make the user control align to the top edge of parent window? Remark: The…
nam
  • 21,967
  • 37
  • 158
  • 332
1
vote
0 answers

Xaml islands - 3rd party controls

Following tutorials such as Host UWP XAML Controls in desktop apps (XAML Islands), I can add Microsoft UWP controls to WPF apps. Based on the doco, it appears third party and custom UWP controls can also be used like this. What do I need to do to…
1
vote
1 answer

What is the true minimum supported version of Windows 10 for hosting UWP controls in a WPF application using XAML Islands?

I will be working on a C#/WPF application for release in February 2020, and I would like it to have a modern user interface. The term "modern user interface" can be taken to mean a user interface that is made up of views (i.e. custom controls)…
Adam Goodwin
  • 3,951
  • 5
  • 28
  • 33
0
votes
0 answers

winrt::hresult_class_not_registered When I try to use a C++/Winrt User Control In a C++ Win32 application

I'm using visual studio 2022. I'm trying to host a WinUI3 Control inside a C-style Win32 Desktop application. This WinUI3 Control Library has several simple components. These simple components are working fine in the Win32 application. The WinUI3…
0
votes
0 answers

Why does the Windows Store modifies the app package?

I'm building a WPF application and I'm using Xaml Islands to add Windows 10 look and feel to the app. I'd like to use the Lottie library to play Adobe After Effects animations. Everything works fine until now. When packaging the desktop bridge…
Attila Szász
  • 707
  • 4
  • 22
0
votes
0 answers

Cleaning existing images in PersonPicture WinRT/C++

In my application, there are two functions to add and clean image in PersonPicture. However, I don't know of a way to clean up the image that has been added in the PersonPicture. So, how to clean the image that has been added in the…
Donny1605
  • 31
  • 2
0
votes
2 answers

Getting error C2139 undefined class is not allowed - when using xaml island in MFC app

I'm trying to embed a WinUI control in a legacy C++ MFC application using Xaml Islands. I have followed the Host a custom WinRT XAML control in a C++ desktop (Win32) app as a guide. My MFC application compiles up to the moment I follow the "Host…
0
votes
1 answer

Using NavigationView in WPF Project

I want to use navigationView with xaml islands in a WPF project. I added the NavigationView to the project. There is no problem in terms of appearance. If I create a new page in code-behind I can switch between pages. But when I want to open an…
voltac
  • 33
  • 7
0
votes
1 answer

How to unit test a WPF application which uses XamlIslands?

I'm developing a WPF application and I'm using Xaml Islands to display win10 UI components. For this I needed to create a UWP project where I can implement those components. I'd like to write unit tests for my business logic, which is in the WPF…
Attila Szász
  • 707
  • 4
  • 22
0
votes
1 answer

How to use Windows 10 style resource in WPF with XAML Islands

I'm using XAML Islands to make my app and I want to use Windows 10 styling in my WPF app like here. For example would result in: But this doesn't work in WPF (It does work in…
ELIAS YOUSSEF
  • 69
  • 4
  • 11
0
votes
1 answer

How to propagate Home/End button press to a UWP RichEditBox inside of a WPF ScrollViewer?

In a WPF application (targeting .NET core 3.1) on one of the windows, I have a ScrollViewer and inside the ScrollViewer (among other elements) I placed a custom UWP control, which contains a RichEditBox. I added this custom UWP control via…
Attila Szász
  • 707
  • 4
  • 22
0
votes
1 answer

How to add XamlHost to WPF project?

Based on this issue, I migrated my WPF project (which was targeting .NET Framework) to target .NET Core 3.1. Theoretically this step would allow to use Microsoft.Toolkit.Wpf.UI.XamlHost in order to host Windows 10 controls in my WPF app. I created a…
Attila Szász
  • 707
  • 4
  • 22