LoginSignup
3
2

More than 5 years have passed since last update.

Xamarin.FormsのUWPアプリでNavigationBarに出てくる...ボタンを消す方法

Posted at

NavigationBarにToolBarItemを追加すると一緒に右上の...ボタン(その他ボタン?)が出て来ます。

EllButton.png

消し方に詰まったのでググって見つけた解決法を書いておきます。
このボタンは、UWPプロジェクト内のApp.xamlを編集し、<Applicaton>と</Application>の間に以下のコードを書くと消えます。

App.xaml
    <Application.Resources>
        <Style x:Key="EllipsisButton" TargetType="Button">
            <Setter Property="MaxWidth" Value="0"/>
        </Style>
    </Application.Resources> 

なぜか効かないVisibilityではなくMaxWidthを0にするという荒業ですが消えてくれます。

というのがこの記事に書いてありました。
もっと良い方法がありましたらぜひ教えて頂けると助かります。

Xamarinはいいぞ。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2