HandyOrg / HandyOrg/HandyControl

prism框架下,在hc:tabcontrol页面中执行导航不显示标题

Open
#1,298 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
7.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

prism框架下,在hc:tabcontrol页面中执行导航不显示标题,原生控件tabcontrol则没问题
xaml:
<hc:TabControl x:Name="tab1" BorderThickness="0" Margin="5,0" prism:RegionManager.RegionName="MainTab" ShowCloseButton="True" IsAnimationEnabled="True" IsDraggable="False" IsScrollable="True">
hc:Interaction.Triggers
<hc:RoutedEventTrigger RoutedEvent="hc:TabItem.Closed">
<hc:EventToCommand Command="{Binding ClosedCmd}" PassEventArgsToCommand="True"/>
</hc:RoutedEventTrigger>
</hc:Interaction.Triggers>
<hc:TabItem Header="首页" ShowCloseButton="False" x:Name="index">
Views:IndexView/
</hc:TabItem>
hc:TabControl.ItemTemplate





</hc:TabControl.ItemTemplate>
hc:TabControl.ContentTemplate

<hc:TransitioningContentControl TransitionMode="Left2Right">

</hc:TransitioningContentControl>

</hc:TabControl.ContentTemplate>
</hc:TabControl>

<TabControl.ItemTemplate>





</TabControl.ItemTemplate>
<TabControl.ContentTemplate>

<hc:TransitioningContentControl TransitionMode="Left2Right">

</hc:TransitioningContentControl>

</TabControl.ContentTemplate>

viewmodel:
var n1 = new NavigationParameters();
n1.Add("ViewName", "222");
_regionmanager.RequestNavigate("MainTab", "PermissionView", n1);
_regionmanager.RequestNavigate("MainTab2", "PermissionView", n1);
tabcontrol页面中执行导航
不显示标题

Steps to reproduce the bug

prism框架下,在hc:tabcontrol页面中执行导航不显示标题

Expected behavior

No response

Screenshots

tabcontrol页面中执行导航
不显示标题

NuGet package version

HandyControl 3.3.0

IDE

Visual Studio 2022

Framework type

.Net 6.0

Windows version

Windows 11 (22000)

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided XAML and navigation calls with HandyControl 3.3.0 on .NET 6 and compare the hc:TabControl behavior with the native TabControl. Trace how the Prism region navigation creates tab items and binds ViewName; done when navigated tabs display their titles in the HandyControl control.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.