|
However, I need to add multiple buttons, with positions calculated at runtime. |
Could you please provide us more details about your requirement, user case scenario and how you are getting the coordinates at run time for us to understand your requirement more and help you with better solution. |
|
var button = new Button();
button.Text = "Demo Button";
Console.WriteLine("Adding Stamps");
button.WidthRequest = 96;
button.HeightRequest = 240;
viewer.AddStamp(button, 1, new Point(95.79192, 171.73758)); |
sfReader.DocumentLoaded += (sender, args) =>
{
AddStamps(sfReader);
};
sfReader.DocumentLoaded += async (sender, args) =>
{
await Task.Delay(500);
AddStamps(sfreader);
};
Hi Michal,Thanks for your update. We were able to reproduce the issue, “Stamp annotation is not added while navigating using page Number property” in Xamarin.Forms Android platform with the version 19.1.0.54 from nuget.org . But this issue has been resolved in the patch ( SyncfusionNuget_19.1.0.54_948104_5132021083057529)we have provided earlier in this forum. We suspect that due to the NuGet cache was not cleared properly this issue occurred. Kindly clear the NuGet cache and install the patch NuGet we have provided to resolve this issue.To resolve the issue in your end, we have provided the demo video illustrating how to install the custom NuGet in Xamarin Forms Application.Please refer the below link to clear the NuGet cache,Regards,Muralitharan K
|
var grid = new Grid();
grid.VerticalOptions = LayoutOptions.FillAndExpand;
grid.HorizontalOptions = LayoutOptions.FillAndExpand;
grid.ColumnDefinitions = new ColumnDefinitionCollection
{
};
grid.RowDefinitions = new RowDefinitionCollection
{
};
var box = new BoxView();
box.VerticalOptions = LayoutOptions.FillAndExpand;
box.HorizontalOptions = LayoutOptions.FillAndExpand;
box.BackgroundColor = Color.Red;
grid.Children.Add(box);
Console.WriteLine("Adding Stamps");
viewer.AddStamp(grid, 1, new Rectangle(0, 0, 100, 100)); |