如何将 ActivityIndi​​cator 添加到 shell 弹出窗口

问题描述

我在 shell 的 FlyoutFooter添加一个注销按钮。点击后,连接服务器需要一定的等待时间,所以需要在弹出窗口中添加ActivityIndicator

  <Shell.FlyoutFooter>
        <Grid>
            <Button Text="logout"
                    Clicked="Button_Clicked"/>
        </Grid>
    </Shell.FlyoutFooter>

我如何在那里添加它?

解决方法

您可以使用 FlyoutContent 属性:

+-----+---------+-----+
| col1| Max_col2| col3|
+-----+---------+-----+
|    1|      700|  12 |
|    2|      800|  15 |
+-----+---------+-----+
   <Shell.FlyoutFooter>
        <Grid>
            <Button Text="Logout"
                    Clicked="Button_Clicked"/>
        </Grid>
    </Shell.FlyoutFooter>

enter image description here enter image description here