Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WASM] muxc:TabViewItem.ContentTemplate is not working #6040

Open
2 of 24 tasks
Xiaoy312 opened this issue May 19, 2021 · 0 comments
Open
2 of 24 tasks

[WASM] muxc:TabViewItem.ContentTemplate is not working #6040

Xiaoy312 opened this issue May 19, 2021 · 0 comments
Labels
area/navigationview 🧭 Categorizes an issue or PR as relevant to the NavigationView control difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/items 🧾 Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)

Comments

@Xiaoy312
Copy link
Contributor

Current behavior

muxc:TabViewItem.ContentTemplate is not working

How to reproduce it (as minimally and precisely as possible)

https://playground.platform.uno/#a6832bb4

<muxc:TabView xmlns:muxc="using:Microsoft.UI.Xaml.Controls" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <muxc:TabViewItem Header="content template" Content="is not working">
        <muxc:TabViewItem.ContentTemplate>
            <DataTemplate>
                <TextBlock Text="is working" /> 
            </DataTemplate>
        </muxc:TabViewItem.ContentTemplate>
    </muxc:TabViewItem>
</muxc:TabView>

Workaround

use a ContentControl for Content instead, and move the Content+ContentTemplate onto the ContentControl

Environment

Nuget Package:

  • Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
  • Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
  • Uno.SourceGenerationTasks
  • Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
  • Other:

Nuget Package Version(s): Uno.UI.WebAssembly @ 3.7.0-dev.60

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Skia
    • WPF
    • GTK (Linux)
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

IDE:

  • Visual Studio 2017 (version: )
  • Visual Studio 2019 (version: )
  • Visual Studio for Mac (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )
  • Visual Studio Code (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

@Xiaoy312 Xiaoy312 added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels May 19, 2021
@jeromelaban jeromelaban added difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI project/items 🧾 Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...) and removed difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. triage/untriaged Indicates an issue requires triaging or verification labels May 20, 2021
@MartinZikmund MartinZikmund changed the title [wasm] muxc:TabViewItem.ContentTemplate is not working [WASM] muxc:TabViewItem.ContentTemplate is not working Jul 10, 2023
@MartinZikmund MartinZikmund added the area/navigationview 🧭 Categorizes an issue or PR as relevant to the NavigationView control label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/navigationview 🧭 Categorizes an issue or PR as relevant to the NavigationView control difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/items 🧾 Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
Projects
None yet
Development

No branches or pull requests

3 participants