Hello, community, I'm trying to execute a test case, but when the test is loading the system throws this: SetUp: System.Exception : Unable to determine simulator version for 15A323FC-7EDF-4EC8-8CC7-14E77283C7A2. I have searched in several forums, and copy and paste other simulators id's, but I haven't could yet. Thanks for your collaboration.
I cannot open iOS simulator.
马上放假回国了
马上放假回国了
就看
熊
就看
泼
尽快
哦
进口
拍
Don't start simulator when I am executing a test case.
Hello, community, I'm trying to execute a test case, but when the test is loading the system throws this: SetUp: System.Exception : Unable to determine simulator version for 15A323FC-7EDF-4EC8-8CC7-14E77283C7A2. I have searched in several forums, and copy and paste other simulators id's, but I haven't could yet. Thanks for your collaboration.
About DATAbinding,How to Binding a temporary object's properties to a INT array[] in C#?
我的程式預計要在C#中以迴圈創造數個物件,並將他們的Text依序綁到一個全域的整數陣列中,用以顯示陣列中隨時變化的數值
如此:
My Project want to creat Buttons in C#,and Binding their Text to the Target array[] to display it's number
Like this:
int target[100]=0;
void CreatButton()
{
for (int i = 1; i <= N; i++)
{
StackLaout_Hello.Children.Add( TheButton(i) );
}
}
以及 and
Button TheButton(int i)
{
Button B
{
--> BindingContext=???
text=???
};
--> B.SetBinding( Label.TextProperty , new Binding ( Source=target[i+1] );
return B;
}
我發現我若使用 setBinding 的方式來綁定的話,只有在執行 setBinding 這一行程式時才會更新一次目標數值,是不是我的綁訂條件出了點差錯,最好直接是定BindingContext的條件?
I Found a problem that if I use the code setBinding(QQQ,XXX) to Binding,it will be update Button'text only once when Run this Line,is my Binding code wrong somewhere?or should I set the BindingContext and Text properties Button?
泼
请
unwanted references to healthkit and carekit
My app has been rejected because of HealthKit and CareKit, because of some third party stuff I have to set linking behavior to don't link I then used the additional mtouch argument --linkskip=HealthKit
but resubmitting to apple resulted in the rejection once again.
"After further review, we still notice that Your app still uses the HealthKit or CareKit APIs but does not indicate integration with the Health app in your Application Description and clearly identify the HealthKit and CareKit functionality in your app's user interface.
If the app does not use HealthKit then it would be appropriate to remove HealthKit framework from your binary before resubmit it for review."
Custom control with content
Hello developers,
I have this control:
public static readonly BindableProperty TitleProperty = BindableProperty.Create(nameof(Title), typeof(string), typeof(FrameView), default(string));
public static readonly BindableProperty CardContentProperty = BindableProperty.Create(nameof(CardContent), typeof(View), typeof(FrameView), default(View));
public static readonly BindableProperty CommandProperty = BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(ItemView), default(ICommand));
public static readonly BindableProperty CommandParameterProperty = BindableProperty.Create(nameof(CommandParameter), typeof(object), typeof(ItemView), default(object));
public string Title
{
get => (string)GetValue(TitleProperty);
set => SetValue(TitleProperty, value);
}
public View CardContent
{
get => (View)GetValue(CardContentProperty);
set => SetValue(CardContentProperty, value);
}
public ICommand Command
{
get => (ICommand)GetValue(CommandProperty);
set => SetValue(CommandProperty, value);
}
public object CommandParameter
{
get => GetValue(CommandParameterProperty);
set => SetValue(CommandParameterProperty, value);
}
public FrameView()
{
InitializeComponent();
Content.BindingContext = this;
}
and
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="App1.Views.Templates.FrameView">
<ContentView.Content>
<Frame Style="{StaticResource frameGeneral}">
<StackLayout Spacing="0">
<Label Style="{StaticResource labelFrameView}" Text="{Binding Title}"/>
<BoxView HeightRequest="1" Color="Gray"/>
<!--CONTENT-->
<ContentPresenter Content="{Binding CardContent}" />
<!--END CONTENT-->
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Command}" CommandParameter="{Binding CommandParameter}" />
</StackLayout.GestureRecognizers>
</StackLayout>
</Frame>
</ContentView.Content>
</ContentView>
Then I use:
<views:FrameView Title="Contact" Command="{Binding SendEmailCommand}">
<views:FrameView.CardContent>
<StackLayout Padding="16">
<Label Style="{StaticResource labelGeneral}">
<Label.FormattedText>
<FormattedString>
<Span Text="For any problem "/>
<Span Text="click here " FontAttributes="Bold" >
<Span.GestureRecognizers>
<TapGestureRecognizer Command="{Binding OpenTermsCommand}" />
</Span.GestureRecognizers>
</Span>
</FormattedString>
</Label.FormattedText>
</Label>
</StackLayout>
</views:FrameView.CardContent>
</views:FrameView>
The problem is that TapGestureRecognizer of the Span not work, all else it works!
I think it has to do with the context, but I need the command of the content to be defined in the ViewModel and not in the control
any idea?
Download file & read its content from One Drive-shared URL without authentication in Xamarin Forms
My Xamarin Forms App need to download the file from a shared URL of One Drive.
File is open to access to anyone(public), user need to download it and read its context.
File can be .doc , .pdf , .csv etc.
APK fails to parse the Xamarin Firebase Messaging package in Visual Stuio 2017.
After installing the Xamarin Firebase Messaging package in Visual Studio 2017 in my Android project, the release version signed APK is not installing in other device. I connect my android device and deploy the app in release mode, it installed properly but when I tired to install the generated APK in other device it is not installing and giving message - There is parsing problem with the packages.
Building NuGet package for debugging in XF 3.6 and up
I run these commands to create the Nuget packages, then move them into my local nuget folder.
`Go to the Xamarin.Forms folder in Powershell, then allow for all scripts to be run with this:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
./Build.ps1 -Target NugetPack
`
However, the nuget packages it makes aren't liked by VS 2017.
When I used to run the batch file : .create-nuget.bat it would create a version 9.9.9 which I could then upgrade my solution to.
Released event is not working properly for button and Image button
I need to change button image on press and release. I have added pressed event and release event to button. On press, image is changing But on release image is not changing. Does anyone know a solution for this problem?
How can I implement push notification in Xamarin forms
I am going to implement push notification for my Xamarin Forms project targeting IOS, Android and UWP.
Is there any Nuget Package available for this feature? Or this feature requires platform-specific implementation? And is push notification works on UWP?
What is Azure Notification Hubs? Is that necessary to implement push notification in xamarin forums?
I found a blog about this feature here, but in that the notifications are sending from Azure portal. My project was a chat application and the push notification should come when a new message sends.
Any help would be greatly appreciated. Sample codes or tutorial references are welcome.
How to share text and a link with social media in xamarin forms ios
Hi,
I want to share a text and a link with social media (facebook,instagram,twitter,FB messanger) in xamarin forms ios , when I tap on the facebook image, it opens the facebook app in the iphone and share a the data with my friends. How can I do this, am achieve this in android by the below code, and I am suck with iOS
Activity _activity = Forms.Context as Activity;
Intent _intent = new Intent(Intent.ActionSend);
_intent.SetType("text/plain");
_intent.SetPackage(packagename);
_intent.PutExtra(Intent.ExtraText, message);
try
{
_activity.StartActivity(_intent);
}
catch (Exception ex)
{
Toast.MakeText(Android.App.Application.Context, "This app is not installed", ToastLength.Short).Show();
}
}
I am not showing any permission hen installing an android app in android
I am not showing any permission hen installing an android app in android
Webview is greyed out while loading PDF with swiping in Xamarin.iOS ?
Webview is greyed out while loading PDF with swiping in Xamarin.iOS ?
Navigation drawer (Master Detail Page) not closing on clicking outside in xamarin forms
Device: Android Tab
Orientation : Portrait
Issue: In master detail page, master page does not close on clicking outside. We need to drag it to close the drawer.
It is working fine on iPhone, iPad and other android devices apart from tab.
Please provide a solution as soon as possible.