Developer technologies | .NET | Xamarin
A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello
in platforrm xamarin android
I try to show a blade cutting some material. the blade moves from right to left and when it reaches
the left edge of the panel it has to stop .
The problem is that the blade stop only if put a breakpoint at line timerblade.Stop()
private void Timerblade_Elapsed(object sender, ElapsedEventArgs e)
{
RunOnUiThread(() =>
{
var plx = (RelativeLayout.LayoutParams )plxareatop.LayoutParameters;
var bld = (RelativeLayout.LayoutParams)blade.LayoutParameters;
var plt = (RelativeLayout.LayoutParams)plate.LayoutParameters;
bld.LeftMargin -= 2;
if( bld.LeftMargin <= plx.LeftMargin + plt.LeftMargin+ 50)
timerblade.Stop();
blade.LayoutParameters = bld;
});
}
thanks
A Microsoft framework for building cross-platform mobile apps using .NET and C# with native performance and user interfaces.
I found my mistake the i have two timer and have forgot to stop the other