Code Monkey home page Code Monkey logo

formspopup's People

Contributors

jon-davis-xamarin avatar michaeled avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

formspopup's Issues

Bindinng in 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?

Animating popup closing

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.

Support for UWP?

Hi, are you planning to support UWP? If so, how soon?
Thanks.

Having problems with ListView in Xaml Popup

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:

  • I'm setting ListView's ItemSource in code - the items show and scroll as expected.
  • This is without a Tapped event handler - I've removed it because it seemed to interfere.
  • Testing with Visual Studio emulator, iOS V9, iPhone 6; Xamarin forms v2.3.3.175 (latest)

Your assistance is very much appreciated!

Stephen

<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>

a way to get rounded corners?

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

Popup does't show in the page

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.

popuperror 1

Popop has zero width in iOS9

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.

Issue with modals and input boxes on Android

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.

Multiple popups on a page

Is there a way to host multiple popups on a single ContentPage? Or are you limited to a single popup per ContentPage?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.