How to have a frame centered in the screen. The frame will have only a Label, an Entry of maximum 6 numbers width and a button.
Center frame in a tablet screen
Flip An Image
Has anyone figured out a way to flip in Image in Xamarin Forms? Not rotate it - I use that for something else - but to flip it on the vertical axis? It does not appear that Xamarin supports the ScaleTransform I could use to do this w/ MSFT.
thanks!
Force Change of android:textColor at runtime
I have the a TabbedPage Application and want to change the textcolor at runtime.
<Label Text="Color change works for this label, as i set textcolor" TextColor="{DynamicResource MyTextColor}"/>
<Label Text="but i want to have it work for all labels and other elements without DynamicResource=MyTextColor"/>
public partial class TabPage : ContentPage
protected override void OnAppearing()
{
// this works
Resources["MyTextColor"] = DarkTheme ? Color.Red : Color.Blue;
// this does not work at runtime, textcolor defined in styles <item name="android:textColor">#43d5e6</item> does not update at runtime
SetTheme(DarkTheme ? Resource.Style.MainTheme_Dark: Resource.Style.MainTheme_Light);
}
item name="android:textColor> is differently defined in MainTheme_Dark and MainTheme_Light and gets at once applied to new Pages (for example Navigation.PushModalAsync(new NavigationPage(new NewPage())), but it gets not applied to existing TabPage. I have to close my app and only afterwards, it correctly applies the new "item name=android:textColor> from the selected MainTheme.
How can I force to change android:textColor at runtime in the OnAppearing()-event?
DependencyService and sensor leading to console lag and multiple threads occasionally starting up
I have set up a service that gives me the attitude readings of CMDeviceMotion on iOS but I am experiencing lag in the console printing the readings. And I see thread 200 etc starting up. It does not seem very nice. Is there some way I can improve it? Is there a limitation in the DependencyService when using it with sensors?
This is inside the namespace of my service:
public delegate void ReadingChanged(Reading reading);
public interface IOrientationSensor
{
event ReadingChanged OnReadingChanged;
void Start();
void Stop();
}
// https://developer.apple.com/documentation/coremotion/getting_processed_device-motion_data/understanding_reference_frames_and_device_attitude
public class Reading
{
public double X;
public double Y;
public double Z;
public Reading(double x, double y, double z)
{
this.X = x;
this.Y = y;
this.Z = z;
}
}
And inside the iOS project it looks like so:
[assembly: Dependency(typeof(OrientationSensor)) ]
namespace MyProject.iOS
{
public class OrientationSensor : IOrientationSensor
{
// https://github.com/xamarin/Essentials/blob/master/Xamarin.Essentials/Platform/Platform.ios.tvos.watchos.cs
CMMotionManager motionManager = new CMMotionManager();
NSOperationQueue queue = new NSOperationQueue();
public event ReadingChanged OnReadingChanged;
public void Start()
{
motionManager.StartDeviceMotionUpdates(CMAttitudeReferenceFrame.XTrueNorthZVertical, queue, DataUpdated);
}
public void Stop()
{
motionManager.StopDeviceMotionUpdates();
}
void DataUpdated(CMDeviceMotion data, NSError error)
{
if (data == null)
return;
var attitude = data.Attitude;
var reading = new Reading(attitude.Pitch, attitude.Roll, attitude.Yaw);
OnReadingChanged(reading);
}
}
}
Note I am aware of the OrientationSensor in Xamarin.Essentials. I am experiencing a problem with it that I am trying to get around.
Shell close animation stuttering on Android
Hi,
today I experimented a bit with the "new" (not that new anymore) shell component in order to set up a simple hamburger menu.
I'm facing the same issue as with the MasterDetailPage in the past, were the animation of closing the menu is stuck for a second before actually closing.
For the Masterdetail it was solved by adding a delay (which was bad already) but I can't find a way to solve it for shell.
Does anyone know how to improve the closing animation? Right now it is unusable.
Here is my xaml setup:
<?xml version="1.0" encoding="UTF-8"?>
<Shell BackgroundColor="#D4503B" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:page="clr-namespace:MyApp.ContentPages" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MyApp.AppShell">
<FlyoutItem Title="Dashboard" >
<Tab>
<ShellContent ContentTemplate="{DataTemplate page:Page1}"/>
</Tab>
</FlyoutItem>
<FlyoutItem Title="Train ticket request">
<Tab>
<ShellContent ContentTemplate="{DataTemplate page:Page2}" />
</Tab>
</FlyoutItem>
<FlyoutItem Title="Parking spot reservation">
<Tab>
<ShellContent ContentTemplate="{DataTemplate page:Page3}" />
</Tab>
</FlyoutItem>
</Shell>
Page 1 is almost empty, just two buttons without any styling are shown there but the same problem. Page2 and 3 are a bit more complex but still not overwhelmingly crazy.
One of my ideas was to manually tell when to open and close and navigate but I didn't find a way how to implement it (For example, how to get the menu icon click event?)
Any ideas?
I'm using Xamarin.Forms 4.3.0.947036
References confirming the bug (One is marked as solved but clearly isn't):
https://github.com/xamarin/Xamarin.Forms/issues/7521
https://github.com/xamarin/Xamarin.Forms/issues/5216
References to fix MasterDetail in the past:
https://github.com/xamarin/Xamarin.Forms/issues/4398
https://stackoverflow.com/questions/48115810/how-can-i-make-the-masterdetailpage-faster-on-android
ViewCell Selected Background Color in iOS 13
Prior to iOS 13, you could set a background color in a ViewCell, and change that background color to another color when the cell is pressed. The color change would start on the press down and reset on release. The press feedback no longer works in iOS 13 if you use a cell background color other than transparent.
I need to use a cell background color to get the style I want in my app. Does anyone know a way to use a cell background color and get a touch effect in iOS 13 in a ListView? I've tried a number of approaches, but they all just capture the press release, not the press down. I did manage a workaround for cells in a TableView, but I still need help for cells in a ListView. Thanks!
How to implement WKWebview in xamarin.forms ?
Hello,
I want to pass one url in my webview. But as IOS appstore gives error so I want to implement WKWebview but I want to know how can implement it? Please help me out its urgent.
How to fit the height of CollectionView when it is wrapped by ScrollView?
Hi to everyone!
I do not know if is a problem or a misunderstanding by me (maybe the second one) but I can not success to set any height size to my CollectionView.
I am starting to use Xamarin and I was trying to use the CollectionView object when I realized that the height of this View is very large (and other View Objects had an addecuate size, for example Label Views).
The height is more or less like the height Page.
Firstly I think that was a problem with the inside objects. I tried with strings and custom objects without success.
After a lot of tests, I tried with an empty CollectionView (with the BackgroundColor set in LightBlue) and I realized that my problem is not in the collectionView objects, but is in the CollectionView object itself.
When I was trying to reproduce the problem to publish it here I realized that the CollectionView was fitting its own size to the page size (the height is still very big but less than the height Page).
So, finally, I checked my code and found that the CollectionView is inside a StackLayout and this StackLayout is in a ScrollView.
I mean:
<ScrollView>
<StackLayout>
<CollectionView>
</CollectionView>
</StackLayout>
</ScrollView>
When I wrap the StackLayout in a ScrollView, the CollectionView height increase (I didn't measure it, but the height is more or less like the height page).
This height is very large and I didn't find an option to change its height.
I am using the latest stable version of Xamarin (3.6.0.344457). But I also checked the latest preliminar version (4.0.0.394984-pre) without success.
To test the program I am using an emulator with Android 9.0 (Api 28) and my own smartphone (Nexus 5X with Android 8.1, Api 27).
To reproduce the problem I created a new Mobile Application (Xamarin.Forms) project, select a Shell template and, in ItemDetailPage.xaml, I added the ScrollView, two labels and the CollectionView.
This is the full code of ItemDetailPage.xaml with my own modifications:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http: //xamarin.com/schemas/2014/forms"<!-- Here I added a space between "http:" and "//" because I can not publish urls in the forum-->
xmlns:x="http: //schemas.microsoft.com/winfx/2009/xaml"<!-- The same here-->
x:Class="XamarinTest.Views.ItemDetailPage"
Title="{Binding Title}">
<ScrollView>
<StackLayout Spacing="20" Padding="15">
<Label Text="Text:" FontSize="Medium" />
<Label Text="{Binding Item.Text}" FontSize="Small"/>
<Label Text="Description:" FontSize="Medium" />
<Label Text="{Binding Item.Description}" FontSize="Small"/>
<Label Text="CollectionView:"></Label>
<CollectionView BackgroundColor="LightBlue">
</CollectionView>
<Label Text="End CollectionView"></Label>
</StackLayout>
</ScrollView>
</ContentPage>
I only want a CollectionView that it only has the necessary height, the enough to wrap it's own children.
Thanks in advance!
Android Foreground Service Preventing Memory Release?
I created an android application with a foreground service that is always running. Initially, when the application is completely shut down (both process and service is not running), I try to use a broadcast to wake up the service, then my application take up 36MB of memory.
Next, I open the application and the memory usage grow up to 121MB. Finally, I tried to swipe out to kill the app, OnDestroy() method in MainActivity get called and I manually called GC.Collect() within this method, however, it's still take up 109MB of memory
My foreground service is just listening to step detector sensor and store the result to 'SharedPreferences' so I believe it won't take over hundred MB. Is there anyway to release more memory when the app is swiped out by user? Thank you.
Xamarin.Forms consum SOAP web service on android procect
Hi,
i want to consum a soap web service with xamarin forms on adroid. I use VS2019, .netstandard 2.0 and Xamarin 16.3.0.278. I generated a web reference and in created reference.cs the important code is:
[System.Web.Services.Protocols.SoapHeaderAttribute("Activation")]
[System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestElementName="report.bundle.operation", RequestNamespace="example.com/webService", ResponseElementName="report.bundle.operationResponse", ResponseNamespace="example.com/webService", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[return: System.Xml.Serialization.XmlElementAttribute("report.bundle.operationResponse")]
public reportbundleoperationResponseType reportbundleoperation([System.Xml.Serialization.XmlElementAttribute("report.bundle.operationRequest")] reportbundleoperationRequestType reportbundleoperationRequest) {
object[] results = this.Invoke("reportbundleoperation", new object[] {
reportbundleoperationRequest});
return ((reportbundleoperationResponseType)(results[0]));
}
The used wsdl file show me the follow code part for my funktion:
wsdl:operation name="report.bundle.operation"
wsdl:input message="bo:report.bundle.operationRequest"
wsdl:output message="bo:report.bundle.operationResponse"
wsdl:fault message="bo:Result" name="FaultName"
wsdl:operation
Then i call the method reportbundleoperation from my code. When i call the method from a windows forms project with .net 4.7 the web service works fine, but wenn i try to call the method from my xamarin forms project the service is connectet but i get an error "UnknownMethod: Method 'reportbundleoperation' is unknown in Object 'WebService' every time.
Then i watched the outgoing traffic with fiddler and it showed me follow:
soap:Body soap:encodingStyle="schemas.xmlsoap.org/soap/encoding
q1:reportbundleoperation xmlns:q1="example.com/webService"
reportbundleoperationRequest href="#id1"
q1:reportbundleoperation
The outgoing call try to call the method with name reportbundleoperation in place of report.bundle.operation
I think, the problem is the part [System.Web.Services.Protocols.SoapRpcMethodAttribute("", RequestElementName="report.bundle.operation" .... .
I call the method with the name reportbundleoperation and in the web service the method named report.bundle.operation. I think the RequestElementName should transfer the name reportbundleoperation to report.bundle.operation .. isn't it?
Can sombody help me, can sombody tell me, if there is a bug in the .netstandard or in mono?
with best reguards
MH
Raising Events in a Custom Control
I am relatively new to Xamarin.Forms & C# (most of my experience is in UWP & VB.NET). I have a custom control that contains a CheckBox, and I want users of the custom control to be able to see & handle the CheckedChanged event of that CheckBox (in other words, I want my custom control to have a CheckedChanged event). How would I do this? Thanks.
Unable to add a LaunchScreen.Storyboard to a new XF app.
Hi Dear Reader, I have created a simple XF project in VS 2019 - latest upgrades, with Xamarin Forms (latest stable) using a Blank template. When I tried to add a LauncScreen.storyboard (becasue none was created in the template) I got the messages below.
When I created a new Tabbed project (including UWP) it created a LaunchScreen.storyboard, but when I double clicked it, the editor was opened but I got a similar set of errors.
Any ideas as to what is wrong with my installation?
Where can I find a site that has current instructions for creating a Launch screen in Xamarin Forms - iOS?
Thanks!
Will
System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> MonoTouch.Design.Client.InvalidSessionException: Error in the application.
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning) in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 235
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning) in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 252
at MonoTouch.Design.Client.ServerProcessConnection.CreateSession() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 111
at MonoTouch.Design.Client.ServerProcessConnection.b__28_0() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 116
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task
1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task1.get_Result() at MonoTouch.Design.Client.IPhoneDesignerSession.<>c__DisplayClass289_1
1.b__1(Task1 t) in E:\A\_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\IPhoneDesignerSession.cs:line 2073 at System.Threading.Tasks.ContinuationResultTaskFromResultTask
2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at MonoTouch.Design.Client.IPhoneDesignerSession.<>c__DisplayClass289_01.<EnsureSession>b__0() in E:\A\_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\IPhoneDesignerSession.cs:line 2139 at System.Threading.Tasks.Task
1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MonoTouch.Design.Client.IPhoneDesignerSession.d__191.MoveNext() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\IPhoneDesignerSession.cs:line 748
--- End of stack trace from previous location where exception was thrown ---
at MonoTouch.Design.Client.IPhoneDesignerSession.d__191.MoveNext() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\IPhoneDesignerSession.cs:line 755
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MonoTouch.Design.Client.IPhoneDesignerSession.d__190.MoveNext() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\IPhoneDesignerSession.cs:line 733
--- End of stack trace from previous location where exception was thrown ---
at MonoTouch.Design.Client.IPhoneDesignerSession.d__190.MoveNext() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\IPhoneDesignerSession.cs:line 741
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at MonoTouch.Design.Client.IPhoneDesignerSession.d__186.MoveNext() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\IPhoneDesignerSession.cs:line 622
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MonoTouch.Design.Tasks.d__1.MoveNext() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Shared\TaskExtensions.cs:line 28
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MonoTouch.Design.Client.IPhoneDesignerSession.d__185.MoveNext() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\IPhoneDesignerSession.cs:line 574
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> MonoTouch.Design.Client.InvalidSessionException: Error in the application.
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning) in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 235
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning) in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 252
at MonoTouch.Design.Client.ServerProcessConnection.CreateSession() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 111
at MonoTouch.Design.Client.ServerProcessConnection.b__28_0() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 116
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task
1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task1.get_Result() at MonoTouch.Design.Client.IPhoneDesignerSession.<>c__DisplayClass289_1
1.b__1(Task1 t) in E:\A\_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\IPhoneDesignerSession.cs:line 2073 at System.Threading.Tasks.ContinuationResultTaskFromResultTask
2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
---> (Inner Exception #0) MonoTouch.Design.Client.InvalidSessionException: Error in the application.
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest(CommandRequest req, Boolean throwIfNotRunning) in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 235
at MonoTouch.Design.Client.ServerProcessConnection.SendRequest[TResponse](CommandRequest req, Boolean throwIfNotRunning) in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 252
at MonoTouch.Design.Client.ServerProcessConnection.CreateSession() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 111
at MonoTouch.Design.Client.ServerProcessConnection.b__28_0() in E:\A_work\129\s\Xamarin.Designer.iOS\MonoTouch.Design.Client\Connection\ServerProcessConnection.cs:line 116
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)<---
<---
and the listing goes on and on - way too long for this post...
How can i get selected item with button click event in listview?
<ListView ItemsSource="{Binding .}"
HasUnevenRows="True"
IsPullToRefreshEnabled="True"
Refreshing="RefreshItems"
BackgroundColor="White"
x:Name="listtodo"
ItemSelected="SelectedItem">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.2*"/>
<ColumnDefinition Width="0.6*"/>
<ColumnDefinition Width="0.2*"/>
</Grid.ColumnDefinitions>
<Image Source="{Binding ProductImageUrl}"
VerticalOptions="Center"
HorizontalOptions="Start"
x:Name="txtProductImage"
WidthRequest="100"
Aspect="AspectFit"
HeightRequest="100"
Margin="10,0,0,0"
Grid.Column="0"/>
<Label Text="{Binding ProductName}"
x:Name="txtProductName"
FontSize="Medium"
TextColor="Black"
VerticalOptions="Center"
HorizontalOptions="Start"
Grid.Column="1"/>
<ImageButton Source="checked.png"
VerticalOptions="Center"
x:Name="btnchecked"
HorizontalOptions="Center"
Command="{Binding ButtonClicked}"
CommandParameter="{Binding}"
Grid.Column="2"
Aspect="AspectFit"
BackgroundColor="#FF5D7F"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
This is my xaml code how can i get selected item from c#
How to exclude nested components in ScrollView from scrolling
I can scroll elements (horizontally) in the Grid component only if I wrap the main AbsoluteLayout schema with ScrollView.
The problem here is all elements in the page scrolling horizontally.
Can anyone help me to exclude other nested elements (Label) from scrolling?
Here is my code:
<ScrollView Orientation="Horizontal">
<AbsoluteLayout VerticalOptions="FillAndExpand" BackgroundColor="White">
<AbsoluteLayout>
<Frame
Padding="10,30,0,0"
HasShadow="false"
IsClippedToBounds="true" >
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="9*" />
</Grid.ColumnDefinitions>
<Image
Grid.Row="0"
Grid.Column="0"
Source="eventnote27x32px.png"
Aspect="AspectFit"/>
<Label
Grid.Row="0"
Grid.Column="1"
FontSize="Large"
TextColor="Gray"
Text="Invitations recu (privee / publique)"/>
</Grid>
</Frame>
</AbsoluteLayout>
<AbsoluteLayout
AbsoluteLayout.LayoutBounds="0.1,0.5"
AbsoluteLayout.LayoutFlags="PositionProportional"
x:Name="scrollviewEvent">
<Grid
ColumnSpacing="20"
Padding="5"
x:Name="grdEvents">
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="10*" />
</Grid.RowDefinitions>
</Grid>
</AbsoluteLayout>
</AbsoluteLayout>
</ScrollView>
iOS 13.0 Broke MasterDetailPage on iPads?
I have noticed that after updating iOS to v13.0, the MasterDetailPage is broken on iPads but it's still working on iPhones and Androids.
By broken I mean the whole page is white, without content.
The only way to fix this is to update Xamarin.Forms to the latest v4.2+.
The problem is that some other packages are not compatible (XF broke something else after v4.0) so I cannot update XF yet.
The App Store is rejecting my app because it shows a white screen on iPads with iOS 13.0+....so I would have to stop targeting iPads!
Try for yourself, here is a basic sample repo with MasterDetail page (the default Xamarin Forms template with MasterDetailPage).
https://github.com/stesvis/MasterDetailTest2
The same happens with Prism MasterDetailsPage:
https://github.com/stesvis/MasterDetailTest
- iPhones: works
- iPad -> iOS 12.2: works
- iPad -> iOS 13.0: white screen
Any solution for this HUGE headache?
How to display image in app from firebase storage using image url.
How to display images in app from firebase storage using image url. it is not displaying image from image url.
How to write/read Data Table in step definition from Scenario Outline in (Xamarin UI test, Specflow)
Hi, I want to know how to write/read/call Data Table values in step definition from Scenario Outline (feature file) in (Xamarin UI test, Specflow)
Feature: DataTable
@mytag
Scenario Outline: eating
Given there are cucumbers
When I eat cucumbers
Then I should have cucumbers
Examples:
| start | eat | left |
| 12 | 5 | 7 |
| 20 | 5 | 15 |
| 10 | 5 | 5 |
| 15 | 10 | 5 |
Stepdefinition.cs
[Given(@"there are (.*) cucumbers")]
public void GivenThereAreCucumbers(int p0)
{
ScenarioContext.Current.Pending();
}
[When(@"I eat (.*) cucumbers")]
public void WhenIEatCucumbers(int p0)
{
ScenarioContext.Current.Pending();
}
[Then(@"I should have (.*) cucumbers")]
public void ThenIShouldHaveCucumbers(int p0)
{
ScenarioContext.Current.Pending();
}
please let me know anyone having solution/examples for this.
Itemtemplate exceeds count 23 when adding data template dynamically on xamarin forms
Plugin.media manager in xamarin forms
Can any one help me on this I am using Plugin.MediaManager.Forms for playing the videos.
1)so i could not able to get the CrossMediaManager.Current.MediaQueue.QueueEnded += this method used to play list of videos as a playlist
2)How can i get the current video(playing) index of playlist
3)I want make a video player to run the video a specific time (example i want to play a video A for 15 sec after that want to stop and play another video ) and span only how can i pass the duration to the video in playlist
Please help me on this.
Cannot Find where to add Service Reference using Visual Studio Xamarin
How do i read an asmx webservice in Visual studio 2019 Xamarin.Forms Cross platform Application?