Skip to content

Conversation

@Avid29
Copy link

@Avid29 Avid29 commented Jan 7, 2026

Fixes #31

PR Type

What kind of change does this PR introduce?

Other... Please describe:

What is the current behavior?

Long filenames get cutoff

What is the new behavior?

Hovering a tab item or an explorer item with a long name will reveal a tooltip

PR Checklist

Please check if your PR fulfills the following requirements:

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest dev branch of XAML Studio
  • Tested code with current supported SDKs
  • Tests for the changes have been added (if applicable)
  • License Header has been added to all new source files
  • Contains NO breaking changes to save/state files

Other information

image image

Copy link
Contributor

@michael-hawker michael-hawker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Avid29! It's these little things that get overlooked sometimes, so appreciate the assist. 🦙❤️

Let me know if you're good to look at the suggestions here, otherwise can merge this as-is for now and update later too.

Style="{ThemeResource BodyTextBlockStyle}"
Text="{x:Bind ((storage:StorageFile)Content).Name}" />
Text="{x:Bind ((storage:StorageFile)Content).Name}"
ToolTipService.ToolTip="{x:Bind ((storage:StorageFile)Content).Name}" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the Tooltip version, should we grab the fullpath along with this so that you can distinguish two files with the same name in different directories?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line specifically is in the work space tree view and should have no such confusion. Line 158 could use it though

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes, good point. I wasn't noticing where it was in the relation to the whole context. Thanks for redirecting my comment's intent to the right location. 🙂

I'll pull this down later and then get it merged in. I also forgot I hadn't setup a CI yet. I'll have to get on that later this week. 😅

<FontIcon Margin="-12,0,8,0"
FontFamily="{ThemeResource SymbolThemeFontFamily}"
Glyph="&#xE160;" />
<TextBlock HorizontalAlignment="Left"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the TextBlock ones, should we also add TextTrimming so that the filename is truncated more nicely?

@Avid29
Copy link
Author

Avid29 commented Jan 7, 2026

Thanks @Avid29! It's these little things that get overlooked sometimes, so appreciate the assist. 🦙❤️

Let me know if you're good to look at the suggestions here, otherwise can merge this as-is for now and update later too.

Your comments just look like more good little things that I overlooked. I'll quickly tack them on and then it should be ready to merge! 😊

@Avid29
Copy link
Author

Avid29 commented Jan 7, 2026

Here's the changed in that new PR:

TabView and open editors got TextTrimming:
image

Full path in tooltop in open editors and TabView:
image

I did not add full path tooltips to the WorkSpace Folder since the folder is explicit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filename too long gets clipped in Explorer/Tab display

2 participants