Как сделать кнопку с фиксированной позицией в прокручиваемом xaml - PullRequest
0 голосов
/ 17 июня 2020
• 1000 вниз, аналогично фиксированным кнопкам возврата вверх в html.

Я попытался вывести кнопку за пределы области прокрутки и установить для горизонтального и вертикального значения «КОНЕЦ», но он помещает ее под содержимое сетки, даже если сетку не нужно прокручивать, я хочу, чтобы она всегда отображалась на экране в правом нижнем углу.

1 Ответ

0 голосов
/ 17 июня 2020

Легко достичь с помощью Grid:

<Grid Margin="20">

    <ScrollView VerticalOptions="FillAndExpand">
            <Label Text="FOR the most wild,d, yet most homely narrative which I am about to pen, I neither expect nor solicit belief. Mad indeed would I be to expect it, in ad, yet most homely narrative which I am about to pen, I neither expect nor solicit belief. Mad indeed would I be to expect it, in ad, yet most homely narrative which I am about to pen, I neither expect nor solicit belief. Mad indeed would I be to expect it, in ad, yet most homely narrative which I am about to pen, I neither expect nor solicit belief. Mad indeed would I be to expect it, in ad, yet most homely narrative which I am about to pen, I neither expect nor solicit belief. Mad indeed would I be to expect it, in a yet most homely narrative which I am about to pen, I neither expect nor solicit belief. Mad indeed would I be to expect it, in a case where my very senses reject their own evidence. Yet, mad am I not -- and very surely do I not dream. But to-morrow I die, and to-day I would unburthen my soul. My immediate purpose is to place before the world, plainly, succinctly, and without comment, a series of mere household events. In their consequences, these events have terrified -- have tortured -- have destroyed me. Yet I will not attempt to expound them. To me, they have presented little but Horror -- to many they will seem less terrible than barroques. Hereafter, perhaps, some intellect may be found which will reduce my phantasm to the common-place -- some intellect more calm, more logical, and far less excitable than my own, which will perceive, in the circumstances I detail with awe, nothing more than an ordinary succession of very natural causes and effects." />
    </ScrollView>

    <Button BackgroundColor="Red" Text="Press Me" HorizontalOptions="End" VerticalOptions="End"/>

</Grid>

Вот результат:

enter image description here

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...