michaeled / formspopup Goto Github PK
View Code? Open in Web Editor NEWXamarin.Forms Popup View
License: MIT License
Xamarin.Forms Popup View
License: MIT License
Hi,
If Xamarin forms was updated to version 2.1 and above, the entire popup initializer page was not responding. An unable to perform any user actions inside that page.
Just curious if I can have a slide up and have the background see through to the page behind it?
is there a nuget package for this FormsPopUp
I am trying build a form in the popup. I'm using MVVM architecture with FreshMVVM library.
But in the modal, the binding property doesn't work:
Entry cantidad = new Entry ();
cantidad.SetBinding(Entry.TextProperty, "Amount", BindingMode.TwoWay);
What I am doing worng?
Hey,
I have a popup that slides up from the bottom of the screen. The animation works fine for when it opens, but im not sure how to get it to work when it closes?
This is the code I have:
closeButton.Clicked += async (s,e) => {
double original;
await _popup.HideAsync(async p =>
{
await Task.WhenAll
(
p.SectionContainer.TranslateTo(0, 250, 250)
);
});
};
But when I click to close it just instantly closes without sliding offscreen first.
Hi, are you planning to support UWP? If so, how soon?
Thanks.
It would be cool if you had an example where a modal pops up, and the rest of the screen gets dark with input disabled
Hi,
Congratulations for your project!
When I add an image to close the popup in the header, tapped the event does not fire. This error occurs only in iOS. Android is working!
Thanks,
Homero
This is great popup sample.
By the way, i want use this sample over content view.
Is there any way to do?
Thanks
Michael,
Great popup!
However, I think I may be pushing its limits.
I have a list view (see below) in the popup. It displays just fine, however, selection of an item is very tough. If I touch an item, the item is not highlighted, the ItemSelected property is not set and the ItemSelected event is not fired. I've tried with xaml bound events and when binding the event in code. I can get the item selected, highlighted, the property set and the event fired if I press and hold or drag a bit -- but rarely.
Note:
Your assistance is very much appreciated!
<popup:Popup x:Name="NewPopup"
XPositionRequest=".5"
YPositionRequest=".5"
ContentWidthRequest=".8"
ContentHeightRequest=".5"
TopBorderColor="Gray"
LeftBorderColor="Gray"
BottomBorderColor="Gray"
RightBorderColor="Gray"
>
<popup:Popup.Header>
<StackLayout Orientation="Horizontal"
VisualElement.BackgroundColor="White"
>
<Label Text="{res:Translate NewPopupHeader}"
HorizontalTextAlignment="Start"
HorizontalOptions="StartAndExpand"
VerticalOptions="Center"
/>
<Button Text="{res:Translate DoneButton}"
Clicked="OnNewPopupOkClicked"
HorizontalOptions="End"
VerticalOptions="Center"
/>
</StackLayout>
</popup:Popup.Header>
<popup:Popup.Body>
<ListView x:Name="NewList"
IsGroupingEnabled="True"
GroupDisplayBinding="{Binding Name}"
HasUnevenRows="True"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout Orientation="Vertical">
<Label Text="{Binding Path=TypeName}"
HorizontalOptions="StartAndExpand"
FontSize="Small"
/>
<Label Text="{Binding Path=TypeDescription}"
HorizontalOptions="StartAndExpand"
FontSize="Micro"
/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</popup:Popup.Body>
</popup:Popup>
Great work on this by the way!
I've tried to implement rounded corners by using a custom boxview and then a contentview renderer, but have had no luck.
has anyone tried this successfully, or is there something else I'm missing?
thanks
Please help me with this. I have already dowloaded this project and works pretty well, but when I try to use it on another solution, the first time I show the popup this is showed at the left margin of the page and only when I turn my phone to the landscape mode the popup shows rigth, and then, when I show the popup, it shows correctly. Thank you for your help and sorry for my english.
Hi,
You've created a great component for use in XF. I've tested in our project and I noticed that the popup in iOS 9 always has a width of 0 and is placed in the top left corner the first time when you open the popup. If you rotate the screen and show the popup again, it's placed correctly. It seems that the width is calculated wrong somewhere.
Can you have a look at this? I've tested this with iOS9 simulator and XF 1.5.0.6446.
Best regards,
Johan.
Hey there,
Noticed when you have an input box on one of the popups on Android, the keyboard opening throws it off. For example my modal that is centered in the middle of the screen is not visible when the keyboard is open. It gets pushed off the screen.
Great job , is it possible to put 2 or more pops up in the same page ?
Is there a way to host multiple popups on a single ContentPage? Or are you limited to a single popup per ContentPage?
Doesnt seem to be working, set all 4 to black, no borders anywhere.
Hi,
im actually using an entry on my contentpage, when using:
new PopupPageInitializer(this) {Handler.popup};
the entry element gets unusable.
Is there anything i can do bout it? Im using latest xamarin.forms.
Entry reference: https://developer.xamarin.com/guides/xamarin-forms/user-interface/text/entry/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.