Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all 204402 articles
Browse latest View live

How can i make data binding in multiple Labels ?

$
0
0

I know how to use a listview to fetch data from code behind, using ItemsSource, but now i want to add content to various different Labels using data binding too without using a listview.

How can i get the data ?

Sorry in advance, im new to Xamarin.


hello guys wanted to know if it is possible to read an sms and put inside an entry does anyone have

$
0
0

hello guys wanted to know if it is possible to read an sms and put inside an entry does anyone have any examples of how to do?

What if it's cool to do this today?

Output slows down application in debug

$
0
0

Hi!
I have an application and in latest versions of Xamarin Forms when I navigating to new page I have many strings in debug:

10-03 18:20:19.209 D/Mono    (21111): Assembly Loader probing location: '/Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/sdks/out/android-x86-release/lib/TcuClientStandard.resources.dll'.
10-03 18:20:19.209 D/Mono    (21111): Assembly Loader probing location: '//Facades/TcuClientStandard.resources.dll'.
10-03 18:20:19.209 D/Mono    (21111): Assembly Loader probing location: '/Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/sdks/out/android-x86-release/lib/TcuClientStandard.resources.exe'.
10-03 18:20:19.209 D/Mono    (21111): Assembly Loader probing location: '//Facades/TcuClientStandard.resources.exe'.
10-03 18:20:19.209 D/Mono    (21111): Assembly Loader probing location: '/storage/emulated/0/Android/data/Co.Andriy.TcuClient/files/.__override__/en-US/TcuClientStandard.resources.dll'.
10-03 18:20:19.295 D/Mono    (21111): Assembly Loader probing location: '/Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/sdks/out/android-x86-release/lib/TcuClientStandard.resources.dll'.
10-03 18:20:19.295 D/Mono    (21111): Assembly Loader probing location: '//Facades/TcuClientStandard.resources.dll'.
10-03 18:20:19.295 D/Mono    (21111): Assembly Loader probing location: '/Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/sdks/out/android-x86-release/lib/TcuClientStandard.resources.exe'.
10-03 18:20:19.295 D/Mono    (21111): Assembly Loader probing location: '//Facades/TcuClientStandard.resources.exe'.
10-03 18:20:19.295 D/Mono    (21111): Assembly Loader probing location: '/storage/emulated/0/Android/data/Co.Andriy.TcuClient/files/.__override__/en/TcuClientStandard.resources.dll'.
10-03 18:20:19.342 D/Mono    (21111): Assembly Loader probing location: '/Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/sdks/out/android-x86-release/lib/TcuClientStandard.resources.dll'.
10-03 18:20:19.342 D/Mono    (21111): Assembly Loader probing location: '//Facades/TcuClientStandard.resources.dll'.
10-03 18:20:19.342 D/Mono    (21111): Assembly Loader probing location: '/Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/sdks/out/android-x86-release/lib/TcuClientStandard.resources.exe'.
10-03 18:20:19.342 D/Mono    (21111): Assembly Loader probing location: '//Facades/TcuClientStandard.resources.exe'.
10-03 18:20:19.343 D/Mono    (21111): Assembly Loader probing location: '/storage/emulated/0/Android/data/Co.Andriy.TcuClient/files/.__override__/en-US/TcuClientStandard.resources.dll'.
10-03 18:20:19.389 D/Mono    (21111): Assembly Loader probing location: '/Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/sdks/out/android-x86-release/lib/TcuClientStandard.resources.dll'.
10-03 18:20:19.389 D/Mono    (21111): Assembly Loader probing location: '//Facades/TcuClientStandard.resources.dll'.

I have very big count of these messages
As a result the application is very slow when I navigating to new page in Debug mode. In Release mode everything is OK.

Note: my page is TabbedPage with 5 tabs.

ListView items not completely loaded using xamarin.forms

$
0
0

My List View controller doesn't load all the elements, just it loads 1 element in this case, in other cases it loads like 4 but the others don't

As I have test where the problem occurs i have known that the problem is over the Frame controller, thanks to the frame most of my items on my List View dont load

image of the current problem:

Shortcut "There was a problem communicatin with the app"

$
0
0

I've created application with siri intent.
When I trying to run shortcut with intent it cause to error "Could not run Add measure" (Add measure - intent name, fyi) with description "There was a problem communicatin with the app".
I am using XCode 11, VS 2019 16.3.5.
My project is on github with name Diabetto (sorry, i can't post a link)

How to solve "Invalid Android Archive (no .APK files)"?

$
0
0

"Suddenly" (meaning that i don't know what packages update or VS update caused it), I can't archive my Android app.
It works fine in Debug and in Release, but when I try to archive it, it fails with this message:

The archiving process has failed. Please see the Errors section for more details.
...
Failed to create App archive "LiveDispatch.Mobile.Android".
Invalid Android Archive (no .APK files)

It's strange, because it worked until my last release. I manage other apps, and the archive process works fine.

What could it be? How can I solve this?

Zxing support for scanning RSS-Expanded and Maxicode Bar code format

$
0
0

I am not able to scan Maxicode Barcode and In case of RSS-Expanded I am getting empty values( came to know by debugging) on scanning the respective Bar codes. Please refer to my below code :

            //Start scanning   
                 MobileBarcodeScanner scanner = new MobileBarcodeScanner()
                 {
                     UseCustomOverlay = false
                 } 
                MobileBarcodeScanningOptions options = new MobileBarcodeScanningOptions();
                options.TryHarder = true;
                options.PossibleFormats.Add(ZXing.BarcodeFormat.CODE_39);
                options.PossibleFormats.Add(ZXing.BarcodeFormat.CODE_128);
                options.PossibleFormats.Add(ZXing.BarcodeFormat.CODE_93);
                options.PossibleFormats.Add(ZXing.BarcodeFormat.CODABAR);
                options.PossibleFormats.Add(ZXing.BarcodeFormat.MAXICODE);
                options.PossibleFormats.Add(ZXing.BarcodeFormat.RSS_14);
                options.PossibleFormats.Add(ZXing.BarcodeFormat.RSS_EXPANDED);
                var result = await scanner.Scan(options);
                scanner.Cancel();

Any help with this please ? Thanks in advance.

Plagued by "Could not find file [cache file path]" errors

$
0
0

It seems I always run into some kind of error when attempting to build one of my Xamarin.iOS projects. This time, it's the "could not find file" one:

System.IO.FileNotFoundException: Could not find file "/Users/paulaldrich/Library/Caches/Xamarin/mtbs/builds/Archerisms.iOS.Stickers/e924fafed92fde1093edcef4a61f8248/obj/iPhone/Release/actool/bundle/iMessage App Icon60x45@2x.png"
File name: '/Users/paulaldrich/Library/Caches/Xamarin/mtbs/builds/Archerisms.iOS.Stickers/e924fafed92fde1093edcef4a61f8248/obj/iPhone/Release/actool/bundle/iMessage App Icon60x45@2x.png'
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00259] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:274 
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:106 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
  at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x00025] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:54 
  at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00056] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-06/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/File.cs:74 
  at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) [0x0002d] in <2ef81566f3634b72b10e6ec47e856fbc>:0 
  at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () [0x000b6] in <2ef81566f3634b72b10e6ec47e856fbc>:0    Archerisms.iOS.Stickers         

The file referenced does not exist in my project anywhere, it only exists in the obj folder under my iOS extension app (Archerisms.iOS.Stickers). I've deleted this folder multiple times, so one thing I'd like to know is, where is this file coming from? Even AgentRansack found no other references of this filename anywhere in my project.

I've seen this error before, and usually deleting the guid-named folder (e924fafed92fde1093edcef4a61f8248) fixes it, but not anymore. If I delete this folder, close VS, delete the bin and obj folders for both my main iOS app AND my iOS extension app, then re-open VS and build the main app again (in RELEASE mode), I get the same error. I've tried restarting my computer, restarting VS multiple times, reloading the iOS projects multiple times, nothing fixes it. This is why I'm starting to hate Xamarin. :/


Help! Invalid Archive Folder, No APK files

$
0
0

Hi,

I am suddenly getting:

Failed to create App archive
Invalid Archive Folder, No APK files

My Build gives no error

This happens after the last Visual Studio update only.

Here is the Build log..

How to fix this please?

Thanks,
Jassim

how to handle exceptions when creating own plugin

$
0
0

when i see the source code of xamarin plugins, no one is catching exceptions in their plugin source code. they simply throw an exception so that whoever implements plugin, should catch in his source code. is that the best approach?
Mostly this causes apps to crash and unknown errors to be caught by plugin users. How to best handle those?
I am thinking that isnt it better to expose an interface. So users can use their own exception handling by DI? implement the interface and use your Appcenter, firebase etc. Why xamarin plugin creators dont do that?

How to access “tabBarController: shouldSelectViewController:”

$
0
0

I need to have control of this method so that I can make a change in my app. But I couldn't make this implementation work, can anyone help?

Here is the Custom Renderer of my TabbedPage:

public class MainTabbedPageRenderer : TabbedRenderer, IUITabBarControllerDelegate
{
     [Export("tabBarController:shouldSelectViewController:")]
     public bool ShouldSelectViewController(UITabBarController tabBarController, UIViewController viewController)
     {
          return false;
     }
}

The breakpoint does not stop there at all.

I have the impression that it does not stop at breakpoint because TabBarController is always null, but the screen loads and performs navigations normally, I also could not make this TabBarController be filled.

You can click on tabbar items using this method:

[Export("tabBar:didSelectItem:")]
public void ItemSelected(UITabBar tabbar, UITabBarItem item)
{
}

How to access collection view childs

$
0
0

I have a collectionView and DataTemplate inside. And I don't understand how to access my NewsViewModel to rotate it.
My XAML file:
`<?xml version="1.0" encoding="UTF-8"?>

<CollectionView SelectionMode="Single" x:Name="NVIEW" ItemsSource="{Binding ResepiesItems}" HorizontalOptions="Center" Margin="10" SelectionChanged="NVIEW_SelectionChanged">

    <CollectionView.ItemsLayout>
        <GridItemsLayout Orientation="Vertical"
                         Span="1"
                         HorizontalItemSpacing="20"
                         VerticalItemSpacing="30"/>
    </CollectionView.ItemsLayout>

    <CollectionView.ItemTemplate>
        <DataTemplate>
            <local:NewsViewModel>

            </local:NewsViewModel>

        </DataTemplate>
    </CollectionView.ItemTemplate>

</CollectionView>

And my NewsViewModel.XAML:<?xml version="1.0" encoding="UTF-8"?>

<ContentView.Content>

        <Grid>

            <Grid.RowDefinitions>
                <RowDefinition Height="570"/>
                <RowDefinition Height="200"/>
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <local:AspectRatioConteiner AspectRatio="1">

                <Image Source="{Binding ImageSrc}"
                       Aspect="AspectFill"
                       HorizontalOptions="FillAndExpand"
                       VerticalOptions="FillAndExpand"  
                       HeightRequest="120"
                       WidthRequest="120"
                       Margin="0,0,0,0"
                       BackgroundColor="Red"/>

            </local:AspectRatioConteiner>

            <Label Grid.Column="0"
                       Grid.Row="1"
                       Text="{Binding Name, Mode=TwoWay}"
                       FontAttributes="Bold"
                       HorizontalOptions="CenterAndExpand"
                       VerticalOptions="Start"
                       x:Name="LabelInItm"/>

        </Grid>

    </Frame>
</ContentView.Content>

`

iOS 13 silent notifications, does FCM work?

$
0
0

Is anyone here using FCM for iOS silent notifications?

Our silent notifications stopped working with iOS 13. This is no doubt because Apple has started requiring the "apns-push-type in the header". It is my understanding (correct me if i am wrong) that the "header" referred to is the HTTP header (same as where one puts the "method=POST" part and it is not part of the aps object in the notification payload json (same as where the content-available=true part goes).

I have some supporting evidence for thinking this - we tried adding it, along with apns-priority=5, to the aps object, along with the content-available flag and our notifications were still not being delivered.

Our problem is that IFF that is correct, we have to do some server work because our server is - still :( - using the legacy binary api and there is no way to add an HTTP header to data that isn't using HTTP.

If you know i am wrong and it Does go in the aps part of the notification payload, can you quote an exact aps header so i can compare with have i have tried?

(please, don't bother with "Why are you still using that!!" exclamations :) believe me, i know and i have tried ... the problem is that getting HTTP/2 is going to require some other upgrades and no one is willing to bite the bullet and spend the time($) "now". We are, however, using FCM for our android app and one idea is to convert to using that for iOS too.... IFF we find out that FCM can deliver silent notifications to IOS 13.)

Update ViewCell UI through bound property in the code behind of ViewCell

$
0
0

Hi All,

I have a ViewCell with some bound properties between the .xaml and .xaml.cs of a viewcell. I am attempting to update the UI with a property change that is triggered in the code behind of the viewCell.

My code looks like this:

public static readonly BindableProperty MainTaskStateColorBindableProperty =
           BindableProperty.Create(
               nameof(MainTaskStateColor),
               typeof(Color),
               typeof(TaskWithSubTasksViewCell),
               Color.Transparent);

public static readonly BindableProperty MainTaskStateGlyphBindableProperty =
           BindableProperty.Create(
               nameof(MainTaskStateGlyph),
               typeof(string),
               typeof(TaskWithSubTasksViewCell),
               string.Empty);

public Color MainTaskStateColor { get => (Color)GetValue(MainTaskStateColorBindableProperty); set => SetValue(MainTaskStateColorBindableProperty, value); }

public string MainTaskStateGlyph { get => (string)GetValue(MainTaskStateGlyphBindableProperty); set => SetValue(MainTaskStateGlyphBindableProperty, value); }

and the xaml is like this:

...
<Image
                x:Name="mainTaskCheckBoxImage"
                Grid.Row="0"
                Grid.Column="2"
                HorizontalOptions="End"
                VerticalOptions="Center">
                <Image.Source>
                    <FontImageSource
                        FontFamily="{StaticResource MaterialFontFamily}"
                        **Glyph="{Binding MainTaskStateGlyph}"**
                        Size="{StaticResource MaterialFontSize}"
                        **Color="{Binding MainTaskStateColor}"** />
                </Image.Source>
            </Image>
...

The properties I want changed are the Color and Glyph of the FontImageSource so I have setup bindings directly to these.
Problem is when I run the app nothing updates in the UI when I know infact i should (Ive replaced icons with fonts and it previously worked).

Is this the correct way to update a viewcell from the code behind? The logic is contained in the viewcell that is why I am updating from the xaml.cs not a viewmodel.

Disable clipping of TabbedPage

$
0
0

Is it possible to disable the clipping of tabItems inside of a TabbedPage?
I want to create a round button which is accessible via the tabbedpage and is bigger than the bar for the other elements.
I attached a picture of the goal I want to achieve.
Therefore, I created a custom renderer for the tabbedPage and inserted a customView as the middle element, which is a circular button. But the button gets clipped at the borders of the bar.

I hope you understand my problem and can tell me if there is a possibility to do this, even if its not working by the method i described above.


Cancel ItemSelected Event in TabbarRenderer Xamarin.iOS

$
0
0

I have a custom tabbar renderer for iOS in a Xamarin.Forms app. In certain cases, I need to stop the ItemSelected event. Essentially, if the user taps the item on the tabbar, I need to perform a custom action and NOT navigate.

It seems that the ItemSelectedevent is too late to do this. I know that there is a ShouldShowViewController method on the UITabbarController, but this has been abstracted away but the TabbarRenderer.

How can I achieve this?

App Store Connect (Application Loader) publishing failed - Failed to parse altool output.

$
0
0

I'm getting an error when trying to publish an update to my app using the Application Loader on VS. I tried researching on the error but the error itself isn't really clear. It originally worked earlier, but I got a "missing Info.plist value. CFBundleIconName is missing in the bundle" so I simply migrated to asset catalog (didn't use asset catalog for icons before) and now I'm getting this error. I cannot copy and paste the error but a picture of the error can be found below.

I am unable to edit two properties at in Xamarin.Android project.

$
0
0

I have created custom control as :

`<?xml version="1.0" encoding="UTF-8"?>

<ViewCell.View>
    <StackLayout Spacing="0" HorizontalOptions="FillAndExpand" VerticalOptions="StartAndExpand" >
        <StackLayout.Orientation>
            <OnPlatform x:TypeArguments="StackOrientation" iOS="Horizontal" Android="Vertical" />
        </StackLayout.Orientation>
        <StackLayout.Padding>
            <OnPlatform x:TypeArguments="Thickness" iOS="5,10,5,10" Android="5,0,0,0" />
        </StackLayout.Padding>
        <Label  x:Name="thisLabel"
                Text="{Binding Label, Source={x:Reference thisExtendedEntryCell}}"
                HorizontalOptions="StartAndExpand" VerticalOptions="CenterAndExpand" FontSize="18">
            <Label.Margin>
                <OnPlatform x:TypeArguments="Thickness" iOS="12,0,0,0" Android="0"></OnPlatform>
            </Label.Margin>
        </Label>
        <Entry x:Name="EntryControls"
                                Text="{Binding Text, Source={x:Reference thisExtendedEntryCell}}"
                                Placeholder="{Binding Placeholder, Source={x:Reference thisExtendedEntryCell}}"
                                IsEnabled="{Binding IsEnabled, Source={x:Reference thisExtendedEntryCell}}"
                                TextChanged="OnTextChanged"
                                VerticalOptions="CenterAndExpand"
                                HorizontalTextAlignment="Start">
        </Entry>           
    </StackLayout>
</ViewCell.View>

`

`using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Xamarin.Forms;
using Xamarin.Forms.Xaml;

namespace Sample
{

public partial class SampleEntryControl : ViewCell
{
    public static readonly BindableProperty LabelProperty = BindableProperty.Create(nameof(Label), typeof(string), typeof(SampleEntryControl), null, BindingMode.TwoWay);

if IOS

    private const double DEFAULT_LABEL_WIDTH = 100;
    public static readonly BindableProperty LabelWidthProperty = BindableProperty.Create(nameof(LabelWidth), typeof(double), typeof(SampleEntryControl), DEFAULT_LABEL_WIDTH, BindingMode.TwoWay);

endif

    public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(SampleEntryControl), null, BindingMode.TwoWay);
    public static readonly BindableProperty TextMaxSizeProperty = BindableProperty.Create(nameof(TextMaxSize), typeof(double), typeof(SampleEntryControl), double.PositiveInfinity, BindingMode.TwoWay);
    public static readonly BindableProperty PlaceholderProperty = BindableProperty.Create(nameof(Placeholder), typeof(string), typeof(SampleEntryControl), null, BindingMode.TwoWay);

    public string Label
    {
        get => (string)GetValue(LabelProperty);
        set => SetValue(LabelProperty, value);
    }

if IOS

    public double LabelWidth
    {
        get => (double)GetValue(LabelWidthProperty);
        set => SetValue(LabelWidthProperty, value);
    }

endif

    public string Text
    {
        get => (string)GetValue(TextProperty);
        set => SetValue(TextProperty, value);
    }

    public double TextMaxSize
    {
        get => (double)GetValue(TextMaxSizeProperty);
        set => SetValue(TextMaxSizeProperty, value);
    }

    public string Placeholder
    {
        get => (string)GetValue(PlaceholderProperty);
        set => SetValue(PlaceholderProperty, value);
    }

    public SampleEntryControl()
    {
        InitializeComponent();
        var thisLabel = (Label)this.FindByName("thisLabel");

        thisLabel.LineBreakMode = LineBreakMode.TailTruncation;
        var EntryControl = (Entry)this.FindByName("EntryControls");
        if (Device.RuntimePlatform == Device.iOS)
        {
            EntryControl.HorizontalOptions = LayoutOptions.EndAndExpand;
            EntryControl.WidthRequest = 200;
            EntryControl.MinimumWidthRequest = 200;
        }

        if (Device.RuntimePlatform == Device.Android)
        {
            thisLabel.Margin = new Thickness(5, 0, 0, 0);
            EntryControl.HorizontalOptions = LayoutOptions.FillAndExpand;
        }
    }

    private void OnTextChanged(object sender, TextChangedEventArgs e)
    {
        var entry = (Entry)sender;

        if (entry.Text.Length > TextMaxSize)
        {
            string entryText = entry.Text;
            entry.TextChanged -= OnTextChanged;
            entry.Text = e.OldTextValue;
            entry.TextChanged += OnTextChanged;
        }
    }
}

}`

used it with TableView. Here I set two properties Intend and HasUnevenOdd.

`<?xml version="1.0" encoding="utf-8" ?>

<StackLayout>
    <!-- Place new controls here -->
    <Label Text="Welcome to Xamarin.Forms!" 
       HorizontalOptions="Center"
       VerticalOptions="CenterAndExpand" />
    <TableView Intent="Form" HasUnevenRows="True">
        <TableRoot>
            <TableSection x:Name="TableSection">

            </TableSection>
        </TableRoot>
    </TableView>
</StackLayout>

`

Bind data as

`using System.Collections.Generic;
using Xamarin.Forms;

namespace Sample
{
public partial class MainPage : ContentPage
{
Dictionary<string, string> CollectionDocument = new Dictionary<string, string>();
public MainPage()
{
InitializeComponent();
SetData();
var tableSection = (TableSection)this.FindByName("TableSection");
foreach (var data in CollectionDocument)
{
var extendedEntryControl = new SampleEntryControl();
extendedEntryControl.TextMaxSize = 256;
extendedEntryControl.Label = data.Key;
extendedEntryControl.Text = string.IsNullOrEmpty(data.Value) ? string.Empty : data.Value;
extendedEntryControl.PropertyChanged += UpdateCustomProperties;
tableSection.Add(extendedEntryControl);
}

    }
    private void SetData()
    {
        CollectionDocument.Add("Ajay", "Engineer");
        CollectionDocument.Add("Kmal", "Engineer");
        CollectionDocument.Add("Vjay", "Engineer");
        CollectionDocument.Add("Sajay", "Engineer");
        CollectionDocument.Add("samay", "Engineer");
        CollectionDocument.Add("Anay", "Engineer");
        CollectionDocument.Add("Vinay", "Engineer");
        CollectionDocument.Add("Joy", "Engineer");
        CollectionDocument.Add("Singh", "Engineer");
        CollectionDocument.Add("Morgan", "Engineer");
        CollectionDocument.Add("Morean", "Engineer");
        CollectionDocument.Add("Jean", "Engineer");
        CollectionDocument.Add("S Thing", "Engineer");
        CollectionDocument.Add("Vishnu", "Engineer");
        CollectionDocument.Add("Dishu", "Engineer");

    }

    private void UpdateCustomProperties(object sender, System.EventArgs e)
    {
        //need to check.
    }
}

}`

Everything is working fine. But issue is when I try to edit value in the list by tapping on row, I am able to edit few values but last few rows I am unable to edit value and focus is not moving to the entry control.

Please let me know if one is facing same type of issue.
Any help is appreciated.

System.Reflection.TargetInvocationException: in Xamarin.Forms iOS and NOT in Android

$
0
0

Hello,

I see a few people have posted about a similar exception albeit not quite the same.

I have a Xamarin.Forms solution targeting Android and iOS. All was fine until I ran through the infamous plugin updates :)
Also running latest/greatest VS 2017 and XCode...

So, I have all std Xamarin plugins updated - Xamarin.Forms and Xamarin.Android etc etc. All builds no errors, runs on Android in Oreo 8.1
try running in iOS 11.0 and I get the error:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

on this line in the [myview].xaml.g.cs, in the InitializeComponent() method:
global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(myview));

Double checked/tripple checked all markup etc.
Nada, can't see what could possibly be wrong as it is working in Android.

Anyone have any vague ideas or possible causes on this?

Thanks

Android Device Manager, Can not start emulator

$
0
0

Using the latest and greates Visual Studio and SDK tools, i would like to create a new emulated device which runs on 5.1 Lollipop. Everything is fine until i want to start the emulator which is always stuck at the boot animation stage and will not finish booting.

[18-09-14 09:44:24.78] Going to start android_accelerated_x86_lollipop_mvap
[18-09-14 09:44:24.78] [HypervisorManager] Checking for accelerated emulator: True
[18-09-14 09:44:24.78] Executing command: cmd "/C" "sc" "query" "intelhaxm"
[18-09-14 09:44:24.82] [HypervisorManager] WHPX + HAXM
[18-09-14 09:44:24.82] [EmulatorManager] Adding WHPX flag
[18-09-14 09:44:24.82] Executing command: C:\Program Files (x86)\Android\android-sdk\emulator\emulator.exe "-verbose" "-feature" "WindowsHypervisorPlatform" "-avd" "android_accelerated_x86_lollipop_mvap" "-prop" "emu.uuid=20da898a-2938-40ef-83c7-f4c8207a7774"
[18-09-14 09:44:34.82] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:34.87] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:35.90] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:35.93] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:36.97] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:37.01] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:38.04] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:38.08] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:39.11] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:39.15] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:40.19] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:40.22] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:41.26] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:41.29] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:42.33] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:42.37] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:43.40] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:43.43] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "-s" "emulator-5554" "shell" "getprop" "emu.uuid"
[18-09-14 09:44:43.46] C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe result:
StandardError: error: device still connecting
ExitCode: 1
[18-09-14 09:44:43.46] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:44.67] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:45.70] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "devices"
[18-09-14 09:44:45.73] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "-s" "emulator-5554" "shell" "getprop" "dev.bootcomplete"
[18-09-14 09:44:46.79] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "-s" "emulator-5554" "shell" "getprop" "dev.bootcomplete"
[18-09-14 09:44:47.85] Executing command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe "-s" "emulator-5554" "shell" "getprop" "dev.bootcomplete"
...

If i use lets say a device based on Oreo, everything works fine!

Viewing all 204402 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>