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

Direction on rendering animation window

$
0
0

Hey there, I am looking for advice on producing a window to render output into. I want to build game frames but I am unsure of the limitations Xamarin would have for this kind of function.


Default keyboard opened in numbers page

$
0
0

I'd like to have a default keyboard but when initially shown I want it to open in the numeric page (123?). Is there a way to do this?

How to Navigate in Shell without pushing in the existing Navigation Stack

$
0
0

In our companys app, we have a logo on the top of the ShellPage. When you press on the logo, you should be navigated back to the Homepage.
This logic is bound to an eventhandler in the codebehind of the AppShell.
But when i navigate via the GotoAsync method, the Homepage is pushed to the Navigation stack.
I want this logic to behave exactly like pressing on the Page in the Flyout, so there is no Navigationstack with multiple pages.

How can i realise that?

How to pass the parameter in ViewModel from the page (view) following the MVVM model?

$
0
0

Hi there

I'm starting to move/transfer the code from event-driven into MVVM. At this stage, I'm not prepared yet to follow the frameworks such as Prism or LightMVVM etc as yet as some codes still in event-driven and some already in MVVM.

I have a CRUD application (list, detail including add/edit). I started to use Unity container and register dependency injection.

My question as follow:

In my List page/view with ListViewModel, once clicked (selectedItem) it will pass the Id into detail page as follow:

await _navigation.PushAsync(new ActivityDetailPage(selectedActivityId));

On the view (DetailPage):

public ActivityDetailPage(int activityId)
{
    InitializeComponent ();
    BindingContext = ServiceLocator.Current.GetInstance<ActivityDetailViewModel> ();
}

My app.xaml.cs:

 public App()
        {
            InitializeComponent();
            var unityContainer = new UnityContainer();
            unityContainer.RegisterType<IActivityService, ActivityApiService>();

            ServiceLocator.SetLocatorProvider(() => new UnityServiceLocator(unityContainer));


            if (!string.IsNullOrEmpty(Preferences.Get(Constant.Setting_AccessToken, "")))
            {
                MainPage = new MasterPage();
            }
            else if (string.IsNullOrEmpty(Preferences.Get(Constant.Setting_UserEmail, "")) && 
                string.IsNullOrEmpty(Preferences.Get(Constant.Setting_Password, "")))
            {
                MainPage = new NavigationPage(new LoginPage());
            }

        }

How do I pass the Id into this? Also how do I pass INavigation into this?

Text & Icons are blurry and not obvious in iOS when using arabic language [Xamarin Forms]

service does not work when I close the program.

$
0
0

this service is running.
ScreenShoot:

Questions : service does not work when I kill the program. How to run service even if the program is dead ?

iOS 13.1 crash with EXC_BREAKPOINT on Thread Pool Worker

$
0
0

Hi,
My app works fine on iOS 12, however on iOS 13.1 I get a crash that I can't explain.
I'm using xamarin forms, sqlite and onesignal (for push notifications).
I suspect it is related to onesignal or to the fact that i'm using WebView. However I can't be sure.

OS Version: iPhone OS 13.1.2 (17A860)
Release Type: User
Baseband Version: n/a
Report Version: 104

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000019aa8f4c8
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [13262]
Triggered by Thread: 12

Thread 0 name: tid_507 Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x00000001913715f4 0x19136e000 + 13812
1 libsystem_kernel.dylib 0x0000000191370a60 0x19136e000 + 10848
2 CoreFoundation 0x0000000191518068 0x19146f000 + 692328
3 CoreFoundation 0x0000000191513188 0x19146f000 + 672136
4 CoreFoundation 0x00000001915128bc 0x19146f000 + 669884
5 GraphicsServices 0x000000019b37e328 0x19b37b000 + 13096
6 UIKitCore 0x00000001955a86d4 0x194bb8000 + 10421972
7 Xamarin.Sdk 0x0000000101791fc0 0x100d14000 + 11001792
8 Xamarin.Sdk 0x00000001013bbdd4 0x100d14000 + 6979028
9 Mono 0x0000000100a6ca4c 0x100a24000 + 297548
10 Mono 0x0000000100b2647c 0x100a24000 + 1057916
11 Mono 0x0000000100b2c9b4 0x100a24000 + 1083828
12 Mono 0x0000000100a490a0 0x100a24000 + 151712
13 Xamarin 0x000000010072b760 0x100714000 + 96096
14 ClearMash.MobileApp.iOS 0x0000000100184564 0x10011c000 + 427364
15 libdyld.dylib 0x000000019139d460 0x19139c000 + 5216

Thread 1 name: JavaScriptCore bmalloc scavenger
Thread 1:
0 libsystem_kernel.dylib 0x0000000191392c8c 0x19136e000 + 150668
1 libsystem_pthread.dylib 0x00000001912b0204 0x1912ac000 + 16900
2 libc++.1.dylib 0x00000001913e47a8 0x1913d6000 + 59304
3 JavaScriptCore 0x00000001a01703fc 0x1a00e8000 + 558076
4 JavaScriptCore 0x00000001a0173dcc 0x1a00e8000 + 572876
5 JavaScriptCore 0x00000001a0173ab4 0x1a00e8000 + 572084
6 JavaScriptCore 0x00000001a0174dc0 0x1a00e8000 + 576960
7 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
8 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x00000001913715f4 0x19136e000 + 13812
1 libsystem_kernel.dylib 0x0000000191370a60 0x19136e000 + 10848
2 CoreFoundation 0x0000000191518068 0x19146f000 + 692328
3 CoreFoundation 0x0000000191513188 0x19146f000 + 672136
4 CoreFoundation 0x00000001915128bc 0x19146f000 + 669884
5 WebCore 0x00000001993cd100 0x198fe1000 + 4112640
6 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
7 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 3 name: SGen worker
Thread 3:
0 libsystem_kernel.dylib 0x0000000191392c8c 0x19136e000 + 150668
1 libsystem_pthread.dylib 0x00000001912b0204 0x1912ac000 + 16900
2 Mono 0x0000000100bbd7c8 0x100a24000 + 1677256
3 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
4 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 4 name: Finalizer
Thread 4:
0 libsystem_kernel.dylib 0x0000000191371630 0x19136e000 + 13872
1 Mono 0x0000000100ac82c0 0x100a24000 + 672448
2 Mono 0x0000000100b650d8 0x100a24000 + 1315032
3 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
4 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
5 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 5 name: com.apple.uikit.eventfetch-thread
Thread 5:
0 libsystem_kernel.dylib 0x00000001913715f4 0x19136e000 + 13812
1 libsystem_kernel.dylib 0x0000000191370a60 0x19136e000 + 10848
2 CoreFoundation 0x0000000191518068 0x19146f000 + 692328
3 CoreFoundation 0x0000000191513188 0x19146f000 + 672136
4 CoreFoundation 0x00000001915128bc 0x19146f000 + 669884
5 Foundation 0x0000000191852994 0x19184b000 + 31124
6 Foundation 0x0000000191852874 0x19184b000 + 30836
7 UIKitCore 0x000000019564049c 0x194bb8000 + 11043996
8 Foundation 0x00000001919830b0 0x19184b000 + 1278128
9 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
10 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x00000001913715f4 0x19136e000 + 13812
1 libsystem_kernel.dylib 0x0000000191370a60 0x19136e000 + 10848
2 CoreFoundation 0x0000000191518068 0x19146f000 + 692328
3 CoreFoundation 0x0000000191513188 0x19146f000 + 672136
4 CoreFoundation 0x00000001915128bc 0x19146f000 + 669884
5 CFNetwork 0x000000019478de68 0x19478c000 + 7784
6 Foundation 0x00000001919830b0 0x19184b000 + 1278128
7 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
8 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 7 name: Timer-Scheduler
Thread 7:
0 libsystem_kernel.dylib 0x0000000191392c8c 0x19136e000 + 150668
1 libsystem_pthread.dylib 0x00000001912b0204 0x1912ac000 + 16900
2 Mono 0x0000000100bcdc94 0x100a24000 + 1744020
3 Mono 0x0000000100b70538 0x100a24000 + 1361208
4 Mono 0x0000000100b70410 0x100a24000 + 1360912
5 Mono 0x0000000100b70648 0x100a24000 + 1361480
6 Mono 0x0000000100b5f850 0x100a24000 + 1292368
7 Mono 0x0000000100aeab08 0x100a24000 + 813832
8 Xamarin.Sdk 0x000000010150db64 0x100d14000 + 8362852
9 Xamarin.Sdk 0x0000000100dc29dc 0x100d14000 + 715228
10 Mono 0x0000000100a6ca4c 0x100a24000 + 297548
11 Mono 0x0000000100b2647c 0x100a24000 + 1057916
12 Mono 0x0000000100b2c090 0x100a24000 + 1081488
13 Mono 0x0000000100b65198 0x100a24000 + 1315224
14 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
15 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
16 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 8 name: Thread Pool I/O Selector
Thread 8:
0 libsystem_kernel.dylib 0x0000000191393148 0x19136e000 + 151880
1 Mono 0x0000000100bce2b4 0x100a24000 + 1745588
2 Mono 0x0000000100b56570 0x100a24000 + 1254768
3 Mono 0x0000000100b55e58 0x100a24000 + 1252952
4 Mono 0x0000000100b650d8 0x100a24000 + 1315032
5 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
6 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
7 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 9:
0 libsystem_pthread.dylib 0x00000001912baad8 0x1912ac000 + 60120

Thread 10 name: Thread Pool Worker
Thread 10:
0 libsystem_kernel.dylib 0x0000000191371648 0x19136e000 + 13896
1 Mono 0x0000000100b59948 0x100a24000 + 1268040
2 Mono 0x0000000100b650d8 0x100a24000 + 1315032
3 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
4 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
5 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 11 name: Thread Pool Worker
Thread 11:
0 libsystem_kernel.dylib 0x0000000191371648 0x19136e000 + 13896
1 Mono 0x0000000100b59948 0x100a24000 + 1268040
2 Mono 0x0000000100b650d8 0x100a24000 + 1315032
3 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
4 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
5 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 12 name: Thread Pool Worker
Thread 12 Crashed:
0 WebCore 0x000000019aa8f4c8 0x198fe1000 + 27976904
1 WebCore 0x000000019aa8f4c8 0x198fe1000 + 27976904
2 WebCore 0x00000001993c8bd0 0x198fe1000 + 4094928
3 WebCore 0x00000001993c9910 0x198fe1000 + 4098320
4 UIKitCore 0x0000000195abad58 0x194bb8000 + 15740248
5 Xamarin.Sdk 0x000000010177fad4 0x100d14000 + 10926804
6 Xamarin.Sdk 0x00000001013e60a8 0x100d14000 + 7151784
7 Xamarin.Sdk 0x00000001013a9f9c 0x100d14000 + 6905756
8 Mono 0x0000000100a6ca4c 0x100a24000 + 297548
9 Mono 0x0000000100b27ec8 0x100a24000 + 1064648
10 Mono 0x0000000100b5be14 0x100a24000 + 1277460
11 Mono 0x0000000100b59b80 0x100a24000 + 1268608
12 Mono 0x0000000100b650d8 0x100a24000 + 1315032
13 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
14 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
15 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 13 name: tid_9d13
Thread 13:
0 libsystem_kernel.dylib 0x0000000191392c8c 0x19136e000 + 150668
1 libsystem_pthread.dylib 0x00000001912b0204 0x1912ac000 + 16900
2 Mono 0x0000000100bcdc94 0x100a24000 + 1744020
3 Mono 0x0000000100b70538 0x100a24000 + 1361208
4 Mono 0x0000000100b70410 0x100a24000 + 1360912
5 Mono 0x0000000100b198ac 0x100a24000 + 1005740
6 Xamarin.Sdk 0x000000010150bff0 0x100d14000 + 8355824
7 Xamarin.Sdk 0x0000000100dbda48 0x100d14000 + 694856
8 Xamarin.Sdk 0x00000001016de5e0 0x100d14000 + 10266080
9 Xamarin.Sdk 0x00000001010dd780 0x100d14000 + 3970944
10 Mono 0x0000000100a6ca4c 0x100a24000 + 297548
11 Mono 0x0000000100b2647c 0x100a24000 + 1057916
12 Mono 0x0000000100b2c090 0x100a24000 + 1081488
13 Mono 0x0000000100b65198 0x100a24000 + 1315224
14 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
15 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
16 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 14 name: Thread Pool Worker
Thread 14:
0 libsystem_kernel.dylib 0x0000000191371648 0x19136e000 + 13896
1 Mono 0x0000000100b59948 0x100a24000 + 1268040
2 Mono 0x0000000100b650d8 0x100a24000 + 1315032
3 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
4 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
5 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 15 name: WebCore: LocalStorage
Thread 15:
0 libsystem_kernel.dylib 0x0000000191392c8c 0x19136e000 + 150668
1 libsystem_pthread.dylib 0x00000001912b0204 0x1912ac000 + 16900
2 JavaScriptCore 0x00000001a0134b2c 0x1a00e8000 + 314156
3 JavaScriptCore 0x00000001a011aa18 0x1a00e8000 + 207384
4 WebKitLegacy 0x000000019d3dc40c 0x19d33b000 + 660492
5 WebKitLegacy 0x000000019d3df040 0x19d33b000 + 671808
6 WebKitLegacy 0x000000019d3de724 0x19d33b000 + 669476
7 JavaScriptCore 0x00000001a01327a4 0x1a00e8000 + 305060
8 JavaScriptCore 0x00000001a0134314 0x1a00e8000 + 312084
9 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
10 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 16:
0 libsystem_pthread.dylib 0x00000001912baad8 0x1912ac000 + 60120

Thread 17:
0 libsystem_pthread.dylib 0x00000001912baad8 0x1912ac000 + 60120

Thread 18 name: Thread Pool Worker
Thread 18:
0 libsystem_kernel.dylib 0x0000000191371648 0x19136e000 + 13896
1 Mono 0x0000000100b59948 0x100a24000 + 1268040
2 Mono 0x0000000100b650d8 0x100a24000 + 1315032
3 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
4 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
5 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 19 name: Thread Pool Worker
Thread 19:
0 libsystem_kernel.dylib 0x0000000191371648 0x19136e000 + 13896
1 Mono 0x0000000100b59948 0x100a24000 + 1268040
2 Mono 0x0000000100b650d8 0x100a24000 + 1315032
3 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
4 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
5 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 20 name: Thread Pool Worker
Thread 20:
0 libsystem_kernel.dylib 0x0000000191371648 0x19136e000 + 13896
1 Mono 0x0000000100b59948 0x100a24000 + 1268040
2 Mono 0x0000000100b650d8 0x100a24000 + 1315032
3 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
4 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
5 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 21:
0 libsystem_pthread.dylib 0x00000001912baad8 0x1912ac000 + 60120

Thread 22 name: tid_612b
Thread 22:
0 libsystem_kernel.dylib 0x0000000191392c8c 0x19136e000 + 150668
1 libsystem_pthread.dylib 0x00000001912b0204 0x1912ac000 + 16900
2 Mono 0x0000000100bcdc6c 0x100a24000 + 1743980
3 Mono 0x0000000100bd5f6c 0x100a24000 + 1777516
4 Mono 0x0000000100b59388 0x100a24000 + 1266568
5 Mono 0x0000000100b650d8 0x100a24000 + 1315032
6 Mono 0x0000000100b64f5c 0x100a24000 + 1314652
7 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
8 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 23 name: Heap Helper Thread
Thread 23:
0 libsystem_kernel.dylib 0x0000000191392c8c 0x19136e000 + 150668
1 libsystem_pthread.dylib 0x00000001912b0204 0x1912ac000 + 16900
2 JavaScriptCore 0x00000001a0134b6c 0x1a00e8000 + 314220
3 JavaScriptCore 0x00000001a011aa18 0x1a00e8000 + 207384
4 JavaScriptCore 0x00000001a00f32d4 0x1a00e8000 + 45780
5 JavaScriptCore 0x00000001a00f365c 0x1a00e8000 + 46684
6 JavaScriptCore 0x00000001a01327a4 0x1a00e8000 + 305060
7 JavaScriptCore 0x00000001a0134314 0x1a00e8000 + 312084
8 libsystem_pthread.dylib 0x00000001912b71ec 0x1912ac000 + 45548
9 libsystem_pthread.dylib 0x00000001912baaec 0x1912ac000 + 60140

Thread 24:
0 libsystem_pthread.dylib 0x00000001912baad8 0x1912ac000 + 60120

Thread 12 crashed with ARM Thread State (64-bit):
x0: 0x0000000102e48048 x1: 0x0000000102e48048 x2: 0x0000000000000000 x3: 0x000000000000004e
x4: 0x000000011564c670 x5: 0x0000000000000027 x6: 0x0000000000000000 x7: 0x0000000000000004
x8: 0x471fe61117320007 x9: 0x471fe61117320007 x10: 0x0000000102e48048 x11: 0x00000000000007fb
x12: 0x00000000000007fd x13: 0x0000000000000000 x14: 0x00000000a8005000 x15: 0x000000000000000a
x16: 0x00000001912de4f8 x17: 0x0000000028000000 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x000000017006f000 x21: 0x000000010063ae10 x22: 0x0000000100c95a70 x23: 0x0000000102d37e10
x24: 0x0000000100c95a70 x25: 0x00000001c74ff7a1 x26: 0x000000028340f570 x27: 0x0000000100c80000
x28: 0x0000000170c4ecb8 fp: 0x0000000170c4e3f0 lr: 0x000000019aa8f4c8
sp: 0x0000000170c4e3e0 pc: 0x000000019aa8f4c8 cpsr: 0x60000000
esr: 0xf2000000 Address size fault

Would love for some help.
Thanks!

Error: error MT0069: while compilng IOS app

$
0
0

The app has been terminated.
Launch failed. The app 'ChowderApp.iOS' could not be launched on 'iPhone 6s Plus iOS 10.2'. Error: error MT0069: The app directory '/Users/ourweb1/Library/Caches/Xamarin/mtbs/builds/ChowderApp.iOS/a0ba67018c2b1c3f3eab418af7b01492/bin/iPhoneSimulator/Debug/net.ourweb.ChowderApp.app' does not exist.. Please check the logs for more details.
The app has been terminated.


Why does setting page's BindingContext not work?

$
0
0

I'm trying to bind my view model to my page, which is simple like this:

public partial class DetailPage : ContentPage
    {
        public DetailPage ()
        {
            InitializeComponent();            
        }

        public DetailPage(Event _event)
        {
            InitializeComponent();
            BindingContext = new DetailPageViewModel(_event);

        }
    }

    public class DetailPageViewModel: INotifyPropertyChanged
    {
        private Event _event;
        public Event Event 
        {
            set
            {
                _event = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Event)));
            }
            get => _event;
        }
        public DetailPageViewModel(Event theEvent)
        {
            Event = theEvent;
        }

        public event PropertyChangedEventHandler PropertyChanged;

    }

Event is a simple model class in my case, it has a Name property.

I just wanna bind its name to a label.

<Label x:Name="nameLabel" Text="{Binding Event.Name}" FontSize="Title"/>

AfterI start debugging, I cannot see the content bound to the view. I get a error in the output.
Binding: 'Event' property not found on 'Eventuality.Event', target property: 'Xamarin.Forms.Label.Text'

Why does this happen? Didn't I bind the view model rather than an Event? Did I bind it in a wrong way?

What should I do if I want to bind a view model for the whole page?

Path too long Xamarin iOS Distribute

$
0
0

Help me pls i can't distribute because my paths are too long.
I tried to change them but it didn't help.
I'm really out of ideas.
That's the error:
Unable to copy file "C:\Users\cunnin\AppData\Local\Xamarin\MonoTouch\Archives\2019-10-18\ZAsetMobile.iOS 10-18-19 10.22 AM.xcarchive\mSYMs\ZAsetMobile.iOS.app.mSYM\b5883af4fb74101e3ffa838fae7f2094\Microsoft.Extensions.DependencyInjection.Abstractions.dll.msym" to "obj\iPhone\AppStore\archives\ZAsetMobile.iOS 10-18-19 10.22 AM.xcarchive\mSYMs\ZAsetMobile.iOS.app.mSYM\b5883af4fb74101e3ffa838fae7f2094\Microsoft.Extensions.DependencyInjection.Abstractions.dll.msym". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

I don't finds a way to change the path in xamarin settings.

Xcode 11.1 update automatically change my app constraints and storyboard design.

$
0
0

Hi,
We are working on xamarin.ios native app development. My app is already published on App Store.
We got an update from apple for Xcode 11.1 and We have updated Xcode 11.1 and visual studio for Mac as well.
After update when we have open storyboard it’s showing me to open project in Xcode. So we have open my project in Xcode and Xcode update my storyboard constrains automatically and my apps design looking so bad. All controller design has been changed and looking very bad.

Can you please guide me what’s problem happened in Xcode 11.1 and how to solve it now or future update.

Why design constraints working good in previous Xcode version and What is wrong in current 11.1 update. We are using visual studio for mac to develop design and code.

PushNotification device token returned is in a different format in iOS 13

$
0
0

NSData returned is in a different format. It contains output like below:
{LENGTH=32,BYTES=0XA4B3C424006F60DDB1D313ADF524A7A9A...A978604303CFD118}

This used to work in iOS 12


public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
{
    if (deviceToken == null || string.IsNullOrEmpty(deviceToken.Description))
    {       
        return;
    }

    string pnsDeviceToken = deviceToken.Description.Trim('<', '>').Replace(" ", "").ToUpperInvariant();
    
    Console.WriteLine($"Token received: {pnsDeviceToken}");
}

Error: The name 'InitializeComponent' does not exist in the current context

$
0
0

I got started in a new Company. I have some mobile projects in Xamarin.Forms. When i went run a project, i got this error
The name 'InitializeComponent' does not exist in the current context

All projects are not MVVM. All Code, buttons, stacklayout are in the Code Behind. It's ugly Code, too large. How can i solve this issue? It seems a reference issue, but i do not getting to fix.

I use Visual Studio for Mac 2019

Best approach to slide between listviews

$
0
0

Im trying to create a view (my image) where you can click on the specific date up top and it will redirect to that dates listview, kinda like a tabbedpage. But the view is itself a part of a tabbedpage (the one in the bottom). How do I best do that?

I disable swiping for the tabbedpage, and want to be able swipe between the dates. Im not sure what approach is the best for this view.

How to change Xamarin Form NavigationPage Title Color

$
0
0

Hi,

I am trying out the Native2Form Sample Downloaded from Xamarin Intro to Form page. In there I am unable to change the color of the navigation bar title which is build from Xamarin.Form. However if I use the iOS Native View controller I am able to. Would there be a bug in here? Attached is a screenshot for clarification. Thanks!


Page not found but the page exists

$
0
0

In my xml i got this error

The Type or namespace name 'Sucesso' could not be found.

but i have this file in my project. I use Visual Studio for Mac and in this reference i have a symbol not identified. See image below

In the left botton i have something like a small icon. What happens this?
Below my xaml this page

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="PerformaMobile.Page.Sucesso">
    <ContentPage.Resources>
        <ResourceDictionary>

            <Style TargetType="Button">
                <Setter Property="BorderRadius" Value="5" />
                <Setter Property="TextColor" Value="White" />
                <Setter Property="BackgroundColor" Value="#78319A" />
            </Style>
            <Style TargetType="Entry">
                <Setter Property="TextColor" Value="#757575" />
                <Setter Property="FontSize" Value="Small" />
            </Style>
            <Style TargetType="Label">
                <Setter Property="TextColor" Value="#757575" />
                <Setter Property="FontSize" Value="Small" />
                <Setter Property="HorizontalTextAlignment" Value="Center" />
            </Style>
        </ResourceDictionary>
    </ContentPage.Resources>
    <ContentPage.Content>
        <StackLayout Orientation="Vertical" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Padding="20">
            <StackLayout Orientation="Vertical" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand">
                <Image Source="ic_check.png" WidthRequest="100" HeightRequest="100" />
                <Label x:Name="successMessageTitle" FontSize="Large" FontAttributes="Bold" />
                <Label x:Name="successMessage" />
            </StackLayout>
            <Button x:Name="btnBack" Text="Voltar" Clicked="btnBack_Clicked"/>
        </StackLayout>
    </ContentPage.Content>
</ContentPage>          

In the <Content... /> i get the error

iOS TableView Cells Append after Button Click

$
0
0

Hey Guys,

i just started working with Xamarin and have a Question about the TableView Object.

Creating a Table View and initialize my Cells as well as fill them works perfectly fine but what I now want to do is following Scenarion:

On App Start I would like to show the first few Cells from Array 1 - the last Cell from Array 1 will be displaying 2 Buttons.
Now what I want to do is wait for the User to Press either Button 1 or Button 2 - if Button 1 was pressed I would like to append a new array - lets call it Array 2 - below the existing one.

Is there a way how to achieve this task?

Thanks you!

Multi Targeting- is it possible to define same platform 2 different conditions?

$
0
0

I am creating a nuget package using multi targeting. I have a code specific for Google Android and other code Amazon Android. is there any way to separate those as 2 different platforms. Because in my main project, i have 2 android project 1 is called myApp.Drod antoher one is myApp.Amazon.
Since both are following under MonoAndroid targetplatform. I wonder if there is separation possible by any condition or label? or i must create 2 different packages?

Hide Bottom Tabbed bar in tabbed page and fit the content to full screen

$
0
0

I am using the tabbed page renderer for hiding the bottom tabbed bar. Able to hide the bottom bar but still there is white space in the bottom where tabbed bar was present. In android I am setting the height for the content to full screen , but in iOS same kind of thing is not happening. How to fit the content to full screen after hiding. Any suggestions. @LandLu @JamesMontemagno @JohnHardman @JohnMiller Thanks in advance.

VS 15.8.7 - Solution rebuild after any XAML change

$
0
0

Is it just me/us (my department)...?

Since updating to latest Visual Studio 15.8.7 any time I make a change in XAML I have to do a Solution|Rebuild, otherwise just a regular F5-Debug goes into an infinite build it never comes out of.

Anyone else see that?

Viewing all 204402 articles
Browse latest View live


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