Skip to content

Commit

Permalink
修复部分 x:Bind 警告
Browse files Browse the repository at this point in the history
  • Loading branch information
natsurainko committed Feb 4, 2025
1 parent 0de0d83 commit fe11b11
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Natsurainko.FluentLauncher/Views/Cores/ConfigPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@
Style="{ThemeResource CaptionTextBlockStyle}"
TextTrimming="CharacterEllipsis"
TextWrapping="NoWrap">
<Run Text="{x:Bind local:ConfigPage.GetAccountTypeName(Type), Mode=OneWay}" />
<Run Text="{x:Bind local:ConfigPage.TryGetYggdrasilServerName((acc:Account)), Mode=OneWay}" />
<Run Text="{x:Bind local:ConfigPage.GetAccountTypeName(Type)}" />
<Run Text="{x:Bind local:ConfigPage.TryGetYggdrasilServerName((acc:Account))}" />
</TextBlock>
</Grid>
</DataTemplate>
Expand Down
4 changes: 2 additions & 2 deletions Natsurainko.FluentLauncher/Views/OOBE/AccountPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
Style="{ThemeResource CaptionTextBlockStyle}"
TextTrimming="CharacterEllipsis"
TextWrapping="NoWrap">
<Run Text="{x:Bind local:AccountPage.GetAccountTypeName(Type), Mode=OneWay}" />
<Run Text="{x:Bind local:AccountPage.TryGetYggdrasilServerName((acc:Account)), Mode=OneWay}" />
<Run Text="{x:Bind local:AccountPage.GetAccountTypeName(Type)}" />
<Run Text="{x:Bind local:AccountPage.TryGetYggdrasilServerName((acc:Account))}" />
</TextBlock>
</StackPanel>
<Button
Expand Down
2 changes: 1 addition & 1 deletion Natsurainko.FluentLauncher/Views/ShellPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="Column0" Width="Auto" />
<ColumnDefinition x:Name="Column1" Width="1*" />
<ColumnDefinition x:Name="Column2" Width="144" />
<ColumnDefinition x:Name="Column2" Width="130" />
</Grid.ColumnDefinitions>

<Border
Expand Down

0 comments on commit fe11b11

Please sign in to comment.