Giter Club home page Giter Club logo

buildit's People

Contributors

builttoroamadmin avatar maikub avatar mkieres avatar nickrandolph avatar themiao 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

buildit's Issues

BuildIt.Forms package profile version

What profile version does this require? I successfully installed BuildIt.General and BuildIt.States into an XF project targeting PCL 4.5 - Profile259 but getting this with BuildIt.Forms in VS for Mac:

"Could not install package 'BuildIt.Forms 1.1.0.103'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author."

What do I need to target?

ContentButton, Pressed Event, View not updating

I just encountered a strange issue using a ContentButton that I can't explain. I've got a view with several conventional buttons on the page and I've switched one of them out for a contentbutton. When any of the buttons is pressed I call MyMethod on a ViewModel.

Here's how this looks using Caliburn.Micro actions to wire up the Pressed event to the ViewModel action:

<bitctrls:ContentButton WidthRequest="55" x:Name="A"
HeightRequest="{Binding ButtonHeight}" Grid.Row="0" Grid.Column="0" Margin="0"
VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" cal:Message.Attach="[Event Pressed] = [Action MyMethod('A')]">



</bitctrls:ContentButton>

And now here's the same thing with a regular button in the same view:

The ViewModel has a property on it called "Note" and the view has a label which is bound to "Note" and displays either 'A' or 'B' depending on which button was pressed.

Whenever I click on the ContentButton this Note label is not updated to display the value of 'A'. However, when I press the conventional button, B, the binding is updated to display 'B'.

I've verified that the press event is being raised and that the ViewModel method is being called in both cases. I've tested by replacing the Caliburn Micro action syntax and using a Pressed event handler which calls the method directly on the ViewModel with the same result.

This illustrates that it doesn't have anything to do with Caliburn.Micro's idiosyncratic "Action" syntax. It seems to have something to do with how the Pressed event is being raised. Replacing the ContentButton with a normal Button fixes the problem. The view just isn't updating on this pressed event for some reason.

Is there something different about the way the "Pressed" event is being raised that might account for why the Xamarin Forms view is not being updated? Let me know if I need to provide more code in order to reproduce the issue.

PCL Version

Hi,

It is very nice to use the VisualState in Xamarin Forms. Do you have the version to support PCL ?

Thanks.

Previous / Old State in WhenChangedTo

Hi there.

I've been using your States library for a recent Xamarin.Forms project. New requirements emerged and inone control i need to make different animations depending on the previous state ('navigation' translation vs fade).

Is there a way to get the previous / old state somehow? I thought about using DefineStateWithData and pass the old state in as data, but i probably misinterpreted the role 'data' plays, because it is required to implement INotifyPropertyChanged.

Cheers,
Johannes

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.