Quantcast
Channel: User Yura Babiy - Stack Overflow
Browsing all 39 articles
Browse latest View live
↧

Answer by Yura Babiy for Can't take more than 30 entries from atom feed...

So, I didn't find the answer how to get more than 30 items, but I figured out how to read from another page, where you have another 30 items, and so on.After your private feed URL, you should add...

View Article


Can't take more than 30 entries from atom feed (GitHub private feed)

I am taking atom feed with this code:var client = new HttpClient(new NativeMessageHandler()); var feed = await client.GetStringAsync(_session.GetPrivateFeedUrl()); if ( string.IsNullOrEmpty(feed) )...

View Article


Image may be NSFW.
Clik here to view.

Exceptions are just ignored in async code block

Before I use Nito.MVVM, I used plain async/await and it was throwing me an aggregate exception and I could read into it and know what I have. But since Nito, my exceptions are ignored and the program...

View Article

Answer by Yura Babiy for Xamarin.Forms: How to expand row from listview over...

For list view cell you could use a grid. Then binding width and height with a column definition. How to do it you can find on the internet. Screen width and height you can get in platform specific...

View Article

Object reference not set to an instance of an object at compile time without...

I have tabbed page in XAML document and I want to bind a CurrentPage property to my view model.Upon compiling, I get an error in my XAML document on column 1, line 1. When I delete binding, the error...

View Article


Android.OS.NetworkOnMainThreadException: in async/await block

I am trying to get drawable from URL, that points to an image. But problem is, that in android you shouldn't execute network tasks on the main thread. Because of it, I use async/await block, but the...

View Article

Answer by Yura Babiy for Infinite ListView on iOS after refreshing jumps to...

I have found a workaround in my situation. Here is code, when it works fine:private void OnLoadMore(Profile lastProfile) { IsBusy = true; _pageNumber++; Device.BeginInvokeOnMainThread(async () => {...

View Article

Infinite ListView on iOS after refreshing jumps to first item

I have been created ListView that has infinite scrolling with help on ObservableRangeCollection. It works good on Android, but on iOS it jumps to start whenever it adds new items. Paginating is done...

View Article


OnNavigatedTo in Prism doesn't trigger from one of pages

I faced with the strange behavior of OnNavigatedTo in Prism. It works always on Android, but on iOS it not works for one of the pages. See code:private void OnSpecialtyTapped() {...

View Article


CanExecute in DelegateCommand and expression declaration doesn't work

My question is straightforward.Why this works:public DelegateCommand LogInCommand { get; }Func<bool> canExecuteLogIn = () => !StringService.IsNullOrEmpty(_entries.LoginText,...

View Article

Answer by Yura Babiy for How to use async method in DelegateCommand

public DelegateCommand MyCommand => new DelegateCommand(MyMethod);private async void MyMethod(){}There are no pitfalls. A void return type in async method was created especially for delegates. If...

View Article

Setter of bindable property never fires

I created a custom renderer for a Label. Now I wanted to manipulate with its focus state, so I created bindable property and event. It works fine when I change the bindable property from custom...

View Article

Image may be NSFW.
Clik here to view.

NullPointerException when using effects with Xamarin

I decided to add underline Effect for Label, and did step by step from here, but for some reason whenever I have Label with this Effect, my app crashes on both Android and iOS. With diagnostic logs,...

View Article


Xamarin.Forms Search Widget is not showing

I tried to use Search Widget in my Xamarin.Forms project as people doing it in Xamarin.Android but it is not working. I want the same result as you see on image below.enter image description hereHere...

View Article

Answer by Yura Babiy for Why is Asp.Net Core Kestrel server returns 404 to...

With some modifications to @PiGi78 answer, it did work. Here is the final solution:public class Startup{ public void ConfigureServices(IServiceCollection services) {...

View Article


Image may be NSFW.
Clik here to view.

Why is Asp.Net Core Kestrel server returns 404 to Ngrok and Controller is...

For several days I am trying to run a simple asp.net core application, with setup webhook for Telegram bot. It runs on Mac, with Kestrel server, and Ngrok over it for proxying https to webhook....

View Article

Answer by Yura Babiy for Xamarin iOS Google Sign-in component : App crashes...

Setting PresentingViewController helped me to resolve the issue.SignIn.SharedInstance.PresentingViewController = this;Have found such fix...

View Article


Image may be NSFW.
Clik here to view.

Answer by Yura Babiy for How to include all icons in Xamarin.iOS /...

I found a hackish way to do that:Add icons you want to test alongside with other png resources in the name pattern - "{name}60x60@2x.png" and "{name}76x76@2x.png". See attached screenshot. Add icons as...

View Article

Comment by Yura Babiy on Why is Asp.Net Core Kestrel server returns 404 to...

It did work! Thank you. But I had to add a few lines to the code, therefore I posted a new answer.

View Article
Browsing all 39 articles
Browse latest View live


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