C# UWP Flyout 剪切文本
C# UWP Flyout cuts text
图片上可以看到文字被剪掉了
弹出菜单的宽度足够长,但为什么我的文本被剪切了?
<!--Button Optionen Flyout-->
<Button x:Name="button_optionen_flyout" x:Uid="mainBT_Optionen" Content="Optionen" Height="42" Width="105" FontSize="20" Margin="22,429,0,0" VerticalAlignment="Top" IsEnabled = "False">
<Button.Flyout>
<MenuFlyout>
<MenuFlyoutSubItem x:Uid="mainBT_Sprache" Text="Sprache" FontSize="20">
<ToggleMenuFlyoutItem x:Name="Sprache_DE" x:Uid="mainBT_Deutsch" Text="Deutsch" FontSize="20" HorizontalAlignment="Left" Width="150" IsChecked="True" Click="Deutsch_Click"/>
<ToggleMenuFlyoutItem x:Name="Sprache_EN" x:Uid="mainBT_Englisch" Text="Englisch" FontSize="20" HorizontalAlignment="Left" Width="150" IsChecked="False" Click="English_Click"/>
</MenuFlyoutSubItem>
<MenuFlyoutSeparator/>
<MenuFlyoutItem Text="Reset STM" x:Uid="mainBT_STM" FontSize="20" HorizontalAlignment="Left" Click="FlyoutResetSTM_Click" Width="150"/>
<MenuFlyoutSeparator/>
<ToggleMenuFlyoutItem x:Name="Button_Debug" x:Uid="mainBT_Debug" Text="Debug" FontSize="20" HorizontalAlignment="Left" Width="150" IsChecked="True" Click="Debug_Click"/>
<MenuFlyoutSeparator/>
<MenuFlyoutItem x:Uid="mainBT_Reboot" Text="Neustart" FontSize="20" HorizontalAlignment="Left" Click="FlyoutReboot_Click" Width="150"/>
<MenuFlyoutItem x:Uid="mainBT_Shutdown" Text="Herunterfahren" FontSize="20" HorizontalAlignment="Left" Click="FlyoutShutdown_Click" Width="150"/>
</MenuFlyout>
</Button.Flyout>
</Button>
不知道为什么要把Width
设置成150,但是显然是不够显示文字的
图片上可以看到文字被剪掉了
弹出菜单的宽度足够长,但为什么我的文本被剪切了?
<!--Button Optionen Flyout-->
<Button x:Name="button_optionen_flyout" x:Uid="mainBT_Optionen" Content="Optionen" Height="42" Width="105" FontSize="20" Margin="22,429,0,0" VerticalAlignment="Top" IsEnabled = "False">
<Button.Flyout>
<MenuFlyout>
<MenuFlyoutSubItem x:Uid="mainBT_Sprache" Text="Sprache" FontSize="20">
<ToggleMenuFlyoutItem x:Name="Sprache_DE" x:Uid="mainBT_Deutsch" Text="Deutsch" FontSize="20" HorizontalAlignment="Left" Width="150" IsChecked="True" Click="Deutsch_Click"/>
<ToggleMenuFlyoutItem x:Name="Sprache_EN" x:Uid="mainBT_Englisch" Text="Englisch" FontSize="20" HorizontalAlignment="Left" Width="150" IsChecked="False" Click="English_Click"/>
</MenuFlyoutSubItem>
<MenuFlyoutSeparator/>
<MenuFlyoutItem Text="Reset STM" x:Uid="mainBT_STM" FontSize="20" HorizontalAlignment="Left" Click="FlyoutResetSTM_Click" Width="150"/>
<MenuFlyoutSeparator/>
<ToggleMenuFlyoutItem x:Name="Button_Debug" x:Uid="mainBT_Debug" Text="Debug" FontSize="20" HorizontalAlignment="Left" Width="150" IsChecked="True" Click="Debug_Click"/>
<MenuFlyoutSeparator/>
<MenuFlyoutItem x:Uid="mainBT_Reboot" Text="Neustart" FontSize="20" HorizontalAlignment="Left" Click="FlyoutReboot_Click" Width="150"/>
<MenuFlyoutItem x:Uid="mainBT_Shutdown" Text="Herunterfahren" FontSize="20" HorizontalAlignment="Left" Click="FlyoutShutdown_Click" Width="150"/>
</MenuFlyout>
</Button.Flyout>
</Button>
不知道为什么要把Width
设置成150,但是显然是不够显示文字的