Hi, I’m András a
I am a seasoned software engineer from Budapest, Hungary with a strong focus on mobile app development using .NET MAUI and Xamarin.Forms. My expertise also extends to website building for my happy customers and other complex system designing. I am passionate about developing well-organized, maintainable software solutions.
I hope we can get to know each other, to make your uniqueness digital, and bring “your ideas on devices”
I write blog to share the knowledge I’ve gained.
You can explore my professional articles in software development
System.Text.Json dictionary deserialisation issue with Refit
This content has 3 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.If you find that your Dictionary object, if it has a string key, and it is not deserialized with its first initial capitalized, and you are using System.Text.Json serializer, here is the solution. This is only applies to some versions of the Refit NuGet package, where NewtonSoftJson is not the default serializer. Solution using Refit Define RefitSettings when creating your rest service, like this: This solution will allow you to deserialise with uppercase letter key 🙂
Windows: Set Environment variables for users
This content has 3 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.For some cases you might need to set environment variables for your .NET application.This is true to .NET core too, when you are storing your application settings in these variables. How to set up a script for the job It’s handy to create a windows command line script for creating these variables, because when you are on a new work environment, than you don’t need to look up the keys and values. So bring up your most-loved text editor, make your environment_variable_creator.bat, and add the following code: If you are using .NET core’s configuration builder with a prefix like this: Then you need to set your variables with prefix “PREFIX_” in the bat file. In this scenario, VARIABLE1 can not be read, because it does not contain the prefix. The code sets the variables only for your user account, not for others. You can parameterize the SETX command to set the settings for a different user, but i recommend, to run the script with a command line for the targeted user, because its much easier. To run your script under other users name, then open your command prompt with ‘Run as… different user’
NuGet lokális Cache törlés egyszerűen
This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.Amennyiben azt feltételezzük, hogy a Visual Studio a nugetek cachelése miatt nem működik úgy, ahogy az elvárt lenne, abban az esetben lehetőségünk van a lokális cache-t üríteni. GUI megoldás: Tools → Options → NuGet Package Manager → Package manager settings → Clear All Nuget cache CLI megoldás:1. nuget.exe beszerzése – https://dist.nuget.org/win-x86-commandline/latest/nuget.exe 2. Parancs kiadása
Xamarin Forms: Custom Rendererek más assemblyből
This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.A Xamarin Forms a CustomRenderer Attribútumot csak a betöltött referenciák között keresi. Ez azt jelenti, hogyha egy másik projektben található a customrenderer, akkor annak a projektnek kifordított dll-jének már a Forms.Init előtt be kell töltődnie. Jó megoldás lehet, ha létrehozunk egy statikus osztályt, aminek a statikus Initalize metódusára ráhívunk Android esetén az onCreate, iOS esetén pedig az AppDelegate FinishedLauching függvényében.
Xamarin Forms: Auto magasságú ListView
This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.Formsban, ha egy ListView HorizontalOptions, VerticalOptions tulajdonságait Fill-re állítjuk, és a ListView egy Grid sorában van mondjuk, amelynek a Height-je Auto, a lista le fogja foglalni a Grid által kínált összes helyet. Ez azért van, mert a ListView measure-nél még nem tudja hogy milyen listaelemek milyen listaelem formátummal fognak megjelenni benne. Így elveszítjük a lehetőséget a dinamikus megjelenítésre, mert a felületünk szét fog csúszni. Ennek a problémakörnek megoldásaképpen készítettem egy olyan ListView-t, amely képes a listaelemek tényleges lemért magassága után újraméretezni a lista magasságát. Ez a lista, mindig a benne található elemek magassága méretűre fog nyúlni. Meg lehet még fűszerezni annyival, hogy a Separatorok magasságát is beleszámolja, illetve hogy legyen egy maximálisan engedett magassága is, én ezt nem tettem meg, de jó kiindulási alap.
Xamarin Forms / iOS: Backspace detektálás Entryben
This content has 5 years. Some of the information in this post may be out of date or no longer work. Please, read this page keeping its age in your mind.Androidtól eltérően, iOS-en az EntryRenderer nem rendelkezik overrideolható DispatchKeyEventtel. Viszont magának a UITextFieldnek van egy DeleteBackward metódusa, ami a visszatörlés esetén hívódik meg. Ahhoz, hogy ezt felüldefiniáljuk, örököltetnünk kell egy UITextField-et. Mivel ez egy natív Custom UserControl, ahelyett, ahogy StackOverFlow-n, és egyéb helyeken ajánlják, nem az EntryRenderer-ben fogjuk beállítani natív kontrolként. StackOverflow-on, és Xamarin Fórumon CTRL+C, CTRL-V kód működik jól, de nem tekinthető szép megoldásnak. Ezeken a helyeken azt ajánlják, hogy az EntryRenderer OnElementChanged metódusában hozzunk létre egy új példányt az általunk örököltetett natív usercontrolból, majd állítsuk be azt natív kontrolként. Ilyenkor létrejön feleslegesen egy UITextField, és mi is létrehozunk egy UITextField gyereket, és az előzőleg létrejött field feleslegesen került a memóriában lefoglalásra, feleslegesen fordított a készülék erőforrásokat a konstruktorok és egyéb inicializáló függvények és procedúrák megfuttatására. Emiatt, létre kell hoznunk a natív egyedi usercontrolunkhoz egy Renderert a következőképp: Majd a Xamarin Forms Custom UserControl rendererjének ősét át kell állítani EntryRendererről az imént létrehozott rendererre. Az Forms U.C. Elementchangedjében már elérhetőek a fent definiált delegatek. A Forms-os UserControl-ban található BackspacePressed event az Androidos mintára épül.
Get these news directly into your inbox
Let's make your uniqueness digital.
Bring your idea on devices
at my company, bitfox.hu, we turn your digital dreams into reality.
Check out our portfolio
What our satisfied clients say
Marcell
Benjamin
Karina
Connect with me
Ready to get started?
Reach out to me for a personalized quote. I pride myself on quick response times and am committed to providing you with a detailed proposal as soon as possible.
Don’t wait any longer to start your digital journey. Connect with me now and let’s create something amazing together!