builttoroam / buildit Goto Github PK
View Code? Open in Web Editor NEWBuild It is the set of libraries developed by Built to Roam that makes it easier and quicker to build applications
License: MIT License
Build It is the set of libraries developed by Built to Roam that makes it easier and quicker to build applications
License: MIT License
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
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.
Hi,
It is very nice to use the VisualState in Xamarin Forms. Do you have the version to support PCL ?
Thanks.
It would be nice if you could specify an easing function for the StateAnimations.
Thanks,
Sean
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?
As said in the title, embedding the ContentButton in a ScrollView and then scrolling the view causes the button to move with the user's finger, so the command is sent on release.
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.