Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Shane Neuville
    @PureWeen
    it would only change if for some reason you are instantiating a new context for some reason
    like a different themed context or something like that
    pm64
    @pm64
    Ok, I'll need to read up on that to better understand the implications.
    Thanks man! Much appreciated.
    Shane Neuville
    @PureWeen

    yea with android the styles/themes etc.. are all stored inside the context so that's what android native views use to know how to make themselves look a certain way

    So, for material what we do is instantiate a new Context with material themes and then that gets passed through to all the children which then style based on that new context

    What you could also do (which would probably be fine) is register the concrete type yourself in MainActivity

                PaintUtils utils = new PaintUtils(this);
                DependencyService.RegisterSingleton<ICalculateTextWidth>(utils);

    or you could even just register a static TextView

    Because you are only using it to measure you don't really need to instantiate a new one everytime

    pm64
    @pm64
    Ah yes, great point
    Hey @PureWeen while I've got your ear, let me run one more thing by you that's been bugging me for ages. When I build my Android project, I get these warnings:
    Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved.
    Found conflicts between different versions of "System.Numerics.Vectors" that could not be resolved.
    This project is referencing all of the latest bits, but it's been updated over time and I'm thinking these warnings might relate to some lingering artifact from the past. But I'm not able to identify it. Any thoughts?
    Shane Neuville
    @PureWeen

    that one I'm not super sure

    Your best bet for an answer there would be to hop in here
    https://aka.ms/dotnet-discord

    And ask the android team...

    My guess there is that that's a conflict between the mono version of those and the .net version of those

    you might have a nuget pulling in net47 or something versions of those

    in your obj folder there's a file called project.assets.json that you MIGHT be able to mine through to find where those are coming from

    pm64
    @pm64
    Ok gotcha, will check it out
    ron
    @dan_ron_gitlab
    Hello I am new to xamarin coming from WPF. This StringFormat={}{0:#,0.##} string format worked in wpf but not in Xamarin am I missing something?
    intelesens showing "expecting ┌" and "The type " was not found verify that you are not missing an assmebly refrence and that all refrenced assemblies have been built"
    (trying to display 2 floating points only when it different from 0)
    IoTFier
    @IoTFier

    Hello I am new to xamarin coming from WPF. This StringFormat={}{0:#,0.##} string format worked in wpf but not in Xamarin am I missing something?

    please, post your queries at https://aka.ms/dotnet-discord #xamarin-forms channel

    Kyle Grierson
    @grierson
    [Help] Are there any libraries that limit Entry inputs for example (Number only, Only accept numbers in a certain range)?
    Gerald Versluis
    @jfversluis
    @grierson check the XamarinCommunityToolkit see if that has what you need or propose if you miss something
    aktxyz
    @aktxyz
    I just managed to get my xamarin app up on my iphone via itunes on my windows box ... sweeeeeeeeeeeeeeeeeet!
    BUT ... how do I connect from my locally connected iphone to my rest endpoints on my dev box? with Android ... I connect to 10.0.2.2 as a "magic ip" and I can reach my local rest services
    aweiname2008
    @aweiname2008
    1. How to use UI Automation to automatically perform C/S architecture software testing similar to Windows programs
    C# program is run using mono in Linux system.How to use UI Automation to automatically perform C/S architecture software testing similar to Windows programs. Does MONO have a test tool similar to LDTP under Linux?
    Khaled Bakeer
    @khaledbakeer

    Hello, I’m trying to get more information in how to modify itemselected or item clicked event in a shell menu or tab menu. So I want to do more actions than just navigating to another page by clicking this menu tabs. I used to use Master details page and Xamarin Navigation Service with creating my own custom menu, but now I want to learn more about shell navigation and do the same.

    I am using ninject and linking all binding contexts of my pages with view models using this menu item selected event. Please if anybody have an example, how to use menu or tab itemselected event on Xamarin shell?

    IoTFier
    @IoTFier
    @khaledbakeer - this forum has moved to Discord . Pls scroll up to find specific channel name etc.
    Khaled Bakeer
    @khaledbakeer
    @IoTFier thanks
    TonyLugg
    @TonyLugg
    @IoTFier I was told Discord is only for development of XF, not for developer community help...
    IoTFier
    @IoTFier
    Hello @TonyLugg, that's incorrect, please join #xamarin-forms channel of the DotNetEvolution server
    Shane Neuville
    @PureWeen

    that's actually mostly true

    ideally discord stays more contributor/developer focused

    And then this chat and forums/issues/so etc... are more focused around general help

    jWalker92
    @jWalker92
    Hey, anyone here deving for watchOS ? I got a weird error:
    TMS-90484: Invalid WatchKit Support - The WatchKitSupport2 folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.
    Don't know what else to update. Might be another error that is being messaged wrongly?
    Alex
    @alexislom
    image.png
    Hi guys! How can I change button's text color in xamarin forms alert (for ios)?
    _fantasticDev_
    @SnakeGeneral
    hi everyone. I want to make custom UI like this. please give me good ideas...
    e14a5e3cd4645e1b18ea941a0400e800.png
    Ninjastorm380
    @Ninjastorm380
    hello! new to the xamarin scene.
    I heard that Xamarin now supports linux as a build target! If it's true, could someone give me instructions on how to do this on linux?
    Matthijs ter Woord
    @mterwoord
    I'm tring to build my Xamarin Forms Android target project on a build server (self-hosted). Some builds fail due to resources not being found (or picked up) resulting in 'Resource.Layout' does not contain a definition for 'Tabbar' errors. Rerunning the same build (on same git commit) fixes it. Am I missing something here?
    Ninjastorm380
    @Ninjastorm380
    @mterwoord hey, I know you!@
    Matthijs ter Woord
    @mterwoord
    Hi!
    Trying to remember you... :-(
    Ninjastorm380
    @Ninjastorm380
    Cosmos
    Matthijs ter Woord
    @mterwoord
    ah :-)
    Ninjastorm380
    @Ninjastorm380
    yep
    Matthijs ter Woord
    @mterwoord
    help on xamarin/android issue greatly appreciated :)
    Ninjastorm380
    @Ninjastorm380
    unfortunately, I only just heard of this thing
    was thinking of switching my UI development to it if it can port to linux
    Matthijs ter Woord
    @mterwoord
    xamarin forms works on linux using gtk, but it seems purely a community effort..
    ie, rough edges imo..
    Ninjastorm380
    @Ninjastorm380
    oof
    Matthijs ter Woord
    @mterwoord
    I have that working.
    oof?