C
C#13mo ago
OoogaBooga

X:Bind not working trouble

I'm trying to bind some text into my textblock from another document but I can't manage to do it, can someone help me please
<CalendarView.CalendarViewDayItemStyle>
<Style TargetType="CalendarViewDayItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Grid
Margin="5"
VerticalAlignment="Center"
HorizontalAlignment="Center"
>
<TextBlock FontSize="14"/>
<Button x:Name="Test123" Opacity="0">
<Button.Flyout>
<Flyout>
<StackPanel>
<TextBlock Style="{ThemeResource BaseTextBlockStyle}" Text="{x:Bind , Mode = OneWay}"/>
</StackPanel>
</Flyout>
</Button.Flyout>
</Button>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</CalendarView.CalendarViewDayItemStyle>
</CalendarView>
<CalendarView.CalendarViewDayItemStyle>
<Style TargetType="CalendarViewDayItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Grid
Margin="5"
VerticalAlignment="Center"
HorizontalAlignment="Center"
>
<TextBlock FontSize="14"/>
<Button x:Name="Test123" Opacity="0">
<Button.Flyout>
<Flyout>
<StackPanel>
<TextBlock Style="{ThemeResource BaseTextBlockStyle}" Text="{x:Bind , Mode = OneWay}"/>
</StackPanel>
</Flyout>
</Button.Flyout>
</Button>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</CalendarView.CalendarViewDayItemStyle>
</CalendarView>
1 Reply
OoogaBooga
OoogaBoogaOP13mo ago
the part where x:Bind (empty) is where Im trying to write the specific location of the text to bind but I can't seem to figure out how to bind any text
Want results from more Discord servers?
Add your server