HO-COOH

Results 111 comments of HO-COOH

@jonwis Can't get it working. Still exceptions at the launch line. Updated code: ```cpp winrt::Windows::System::LauncherOptions options; options.TargetApplicationPackageFamilyName(winrt::Windows::ApplicationModel::Package::Current().Id().FamilyName()); winrt::check_hresult(options.as()->Initialize(GetHwnd(*this))); /*Get hwnd of this window*/ winrt::Windows::System::Launcher::LaunchUriAsync( winrt::Windows::Foundation::Uri{ L"ms-settings:appsfeatures-app" }, options ); ```

@lhak Now things gets interesting. Directly using `Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings:appsfeatures-app"));`, it will correctly launch to app setting on Windows 11, but on Windows 10, it does not. It opens this page,...

@jonwis Yes, self-packaging winui3 project on both OS. Also if the `TargetApplicationPackageFamilyName` is supposed to be used to open another app's settings, it should also able to open itself's settings...

@jonwis I was using the "winui3 project (packaged)" template from visual studio, and yes it would be packaged to msix, that has a package family name. That's why it doesn't...

I uploaded a [sample](https://github.com/HO-COOH/WinUI-Bug/blob/main/7-AppSettingsUri/7-AppSettingsUri-WinUI3/MainWindow.xaml.cpp) to demo everything I tried. There is called with parameter, without parameter, and with other apps' family name as parameter, nothing works on Windows 10 17763.

@marcelwgn Nope. Even if I put random content in `DataTemplate` gives me same error. ```xml ```

UPDATE: The issue seems to be that I cannot specify any `x:DataType` in a resource dictionary that does not have a code-behind. And this is quite ridiculous, since this is...

> x:Bind relies on code-generation and needs a backing file to generate in. I'm doing this extensively in one of our libraries. Example: https://github.com/Esri/arcgis-maps-sdk-dotnet-toolkit/tree/main/src/Toolkit/Toolkit.WinUI/UI/Controls/BookmarksView `x:Bind` relies on code-behind, yes, but...

@Skittles2519 Thanks, this solves my issue. What if the resource dictionary contains multiple templates for templated control? Like the default visual studio file template created a `Theme/Generic.xaml`, which seems to...

@dotMorten So I can conclude that the default generated `Theme/Generic.xaml` (when I add a new Templated Control) should contain `x:Class` for the first templated control I added?