remi.nz
remi.nz
CC#
Created by remi.nz on 9/18/2024 in #help
✅ Help with Tooltip content binding
!close
8 replies
CC#
Created by remi.nz on 9/18/2024 in #help
✅ Help with Tooltip content binding
Solved it myself: I binded the CaptionText to the Button Tag and used it from there
Tag="{Binding CaptionText, ElementName=ucToolTip}"

<TextBlock Style="{DynamicResource ToolTipText}" Text="{Binding PlacementTarget.Tag, RelativeSource={RelativeSource AncestorType=ToolTip}}" Margin="5,0,5,5" />
Tag="{Binding CaptionText, ElementName=ucToolTip}"

<TextBlock Style="{DynamicResource ToolTipText}" Text="{Binding PlacementTarget.Tag, RelativeSource={RelativeSource AncestorType=ToolTip}}" Margin="5,0,5,5" />
8 replies
CC#
Created by remi.nz on 9/18/2024 in #help
✅ Help with Tooltip content binding
Any help would be appreciated, thanks
8 replies
CC#
Created by remi.nz on 9/18/2024 in #help
✅ Help with Tooltip content binding
PS: x:Name="ucToolTip" does exists on the very top so idk why is it not finding it properly, secondly I'm not using a UserControl for just a button with tooltip, there are more elements to the UserControl, the tooltip is just a part of it, I removed the other elements from the xaml and code behind so that it's easier for anyone to understand who decides to help
8 replies
CC#
Created by remi.nz on 9/18/2024 in #help
✅ Help with Tooltip content binding
It only happens inside the <Button.ToolTip> tags If I use
<Button Style="{DynamicResource TweakInfo}" Tooltip="{Binding CaptionText, ElementName=ucToolTip}" />
<Button Style="{DynamicResource TweakInfo}" Tooltip="{Binding CaptionText, ElementName=ucToolTip}" />
It seems to work just fine but I need my custom Style for it
8 replies
CC#
Created by remi.nz on 9/18/2024 in #help
✅ Help with Tooltip content binding
I tried using
RelativeSource={RelativeSource self}
RelativeSource={RelativeSource AncestorType=UserControl}
RelativeSource={RelativeSource AncestorType=local:UCToolTip}
RelativeSource={RelativeSource self}
RelativeSource={RelativeSource AncestorType=UserControl}
RelativeSource={RelativeSource AncestorType=local:UCToolTip}
None of them worked
8 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
!close
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
❤️
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
thank you so much
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
it works just fine now
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
ok nvm
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
Still the same
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
Alr
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
It's driving me crazy cuz it's the only View which has binding errors
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
Yes idk why
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
I tried ElementName as well
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
it doesn't work
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
Even if I bind it normally like Command={Binding OpenAppLocation}
25 replies
CC#
Created by remi.nz on 6/15/2024 in #help
✅ Problem with Data Binding
ignore the first two because I haven't implemented those but why is it looking in the view not the viewmodel 🥹
25 replies
CC#
Created by remi.nz on 5/25/2024 in #help
✅ Help with XAML
!close
12 replies