Skip to content

utu:AncestorBinding or ItemControlBinding from Data template to parented Grid.ColumnDefinition.Width #1357

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

Open
11 tasks done
DevTKSS opened this issue Feb 26, 2025 · 0 comments
Labels
kind/contributor-experience Categorizes issue or PR as related to improving the experience of contributors kind/documentation Categorizes an issue or PR as relevant to 3rd party dependencies that are consumed by this project triage/untriaged Indicates an issue requires triaging or verification.

Comments

@DevTKSS
Copy link

DevTKSS commented Feb 26, 2025

What would you like to be added:

Sample for how to access the ColumnEidth of the Patented Grid.ColumnDefinitions.ColumnDefinition[0]. ActualContentWidth (or similar just to get the available width (recognizing defined padding!) from there.
My attempt is following one, but struggling on the effective type which could be ColumnDefinition but no selection of which I want? 🤔 maybe the collection? And which property would be the fitting one?

<Page.Resources>
   <DataTemplate [...]>
      <StackPanel Width="{utu:AncestorBinding AncestorType=

Grid, ColumnDefinition or ColumnCollection might be possible...

Why is this needed:

Had multiple applications where this would be nice to have known the solution for this

For which Platform:

  • WebAssembly
  • Android
  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Skia
    • WPF
    • GTK (Linux)
    • Linux Framebuffer
    • Tizen
  • Windows

Anything else we need to know?

I would be willing if anyone can help me solve this knowledge void, to add it to the docs for future people searching for it

@DevTKSS DevTKSS added kind/contributor-experience Categorizes issue or PR as related to improving the experience of contributors kind/documentation Categorizes an issue or PR as relevant to 3rd party dependencies that are consumed by this project triage/untriaged Indicates an issue requires triaging or verification. labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/contributor-experience Categorizes issue or PR as related to improving the experience of contributors kind/documentation Categorizes an issue or PR as relevant to 3rd party dependencies that are consumed by this project triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

1 participant