Skip to content
Discussion options

You must be logged in to vote

always work it out after i've posted. i should just start by posting!

anyways, this still feels overkill, i had to use a converter, but it works with this datatemplate assigned:

<DataTemplate x:Key="AnnLabelTemplate" x:DataType="controls:AnnotatedScrollBarLabel"> <Border Padding="6,2"> <TextBlock Text="{x:Bind Content, Converter={StaticResource InspectableToStringConverter}}" Foreground="{ThemeResource SystemControlForegroundBaseHighBrush}" FontWeight="SemiBold"/> </Border> </DataTemplate>

once i used x:bind instead of binding it complained about hstring constructors which was a clue, so i had to use a converter:

`
winrt::Windows::Foundation::IInspectable InspectableToStringConverter::Con…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RR7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant