Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    TonyLugg
    @TonyLugg
    A setter for the binding?
    IoTFier
    @IoTFier

    Fixed already

    Thank you @StephaneDelcroix . I am open to validate the fix if you share with me the nuget package before it is released in pre3.

    Shane Neuville
    @PureWeen

    @TonyLugg

    <Style TargetType="Label" Class="FlyoutItemLabelStyle"> <Setter Property="Text" Value="{Binding Title, Converter={StaticResource ShellFlyoutItemTitleConverter}} " /> </Style>
    Or you can do something like

    <Style TargetType="Label" Class="MyCustomClass"> <Setter Property="Text" Value="{Binding Title, Converter={StaticResource ShellFlyoutItemTitleConverter}} " /> </Style>
    <FlyoutIitem StyleClass="MyCustomClass"

    IoTFier
    @IoTFier

    https://dev.azure.com/xamarin/6fd3d886-57a5-4e31-8db7-52a1b47c07a8/_apis/build/builds/22940/artifacts?artifactName=nuget&api-version=5.1&%24format=zip

    It has fixed the reported issue, but RECT API is failing with error as Width is readonly - when I am setting Width as outlined in the XAML <Rect x:Key="TemplateLayoutBounds" HeightRequest="22" WidthRequest="{x:Static AbsoluteLayout.AutoSize}" X="1" Y="0.5" />
    Please see the #3 of my github issue #11551

    Marco
    @marco-kretz
    Hey guys, I have a very strange problem regarding iOS Background Downloads. I have a page on which I just display a ProgressBar and a Label, binded to the ViewModels corresponding Properties. The download happens in a BackgroundProcess. It works, but the problem is, that when I switch to another App and come back, the values won't be displayed, it shows the old values.
    The values in ym ViewModel are correct tho
    is there any strange behaviour in which a resumed iOS app wont update the UI correctly?
    knuck
    @xamarinnoob_gitlab
    i'm trying to use xam.plugin.media, as xamarin.forms doesn't include a control to take picture/get picture from gallery, and even though i've followed the setup guide I get the error error 'APT2260: resource xml/file_paths (aka com.companyname.peja:xml/file_paths) not found. ' Yet file_paths.xml exists in the android project\resources\xml folder
    has anyone had this issue before? Seems like it should be pretty straight forward going by the plugin instructions and lack of results on google
    knuck
    @xamarinnoob_gitlab
    yay, you have to go to the properties of the file file_paths.xml that you create for the plugin and under advanced set 'copy to output directory' to copy always
    nowhere is that mentioned @jamesmontemagno in the readme or github page or any google results I could find
    something like that might seem obvious to some, but to a learner it is a completely new setting to look for and nothing else in xamarin has required it yet.
    IoTFier
    @IoTFier

    https://dev.azure.com/xamarin/6fd3d886-57a5-4e31-8db7-52a1b47c07a8/_apis/build/builds/22940/artifacts?artifactName=nuget&api-version=5.1&%24format=zip

    It has fixed the reported issue, but RECT API is failing with error as Width is readonly - when I am setting Width as outlined in the XAML <Rect x:Key="TemplateLayoutBounds" HeightRequest="22" WidthRequest="{x:Static AbsoluteLayout.AutoSize}" X="1" Y="0.5" />
    Please see the #3 of my github issue #11551

    Hi @StephaneDelcroix , the provided nuget package works. My bin/obj folders were corrupt.
    Thank you for this fix. Looking forward to the XF 4.8 pre3.

    Hi @jsuarezruiz , @StephaneDelcroix & @PureWeen - in iOS version of my app, when I navigate back from a page that has MediaManager, I get an error in the output which is indicating that the dispose is not called. As a result my app becomes totally non responsive.

    Do we have to call Dispose method on MediaManager explicitly in iOS Platform project or in Shared project ? [ this is not an issue with Android ]

    iOS[57831:4538755] Warning: observer object was not disposed manually with Dispose()

    =================================================================

    Basic Fault Address Reporting

    =================================================================
    Memory around native instruction pointer (0x7fff512525f1):0x7fff512525e1 08 5b 41 5e 41 5f 5d c3 48 85 ff 7e 09 48 8b 07 .[A^A_].H..~.H..
    0x7fff512525f1 8a 40 1c 24 01 c3 31 c0 c3 48 85 ff 74 17 78 1d .@.$..1..H.
    .t.x.
    0x7fff51252601 48 8b 07 48 85 c0 74 0d 48 89 c7 be 01 00 00 00 H..H..t.H.......
    0x7fff51252611 e9 a0 d4 00 00 48 8d 05 5b 1c 02 00 c3 48 89 f8 .....H..[....H..

    =================================================================

    Managed Stacktrace:

    =================================================================
    at <unknown> <0xffffffff>
    at ObjCRuntime.Messaging:void_objc_msgSend <0x000e1>
    at AVFoundation.AVPlayer:Pause <0x00122>
    at Xamarin.Forms.Platform.iOS.MediaElementRenderer:Dispose <0x00327>

    IoTFier
    @IoTFier
    I guess it is similar to xamarin/Xamarin.Forms#9525 ?
    Shane Neuville
    @PureWeen
    PSA: We are moving to Discord. Please go to https://aka.ms/dotnet-discord and join the <#C03CELA4Y|forms> channel there for forms related chat and <#CUSPX7PH9|maui> to keep up with dotnet Maui
    Samantha Houts
    @samhouts

    xamarin-forms now :smile:

    Mark Wardell
    @BicycleMark
    @PureWeen - I have heard the gitter is no longer the "Xamarin.Forms official home" yet gitter header says this is the "Xamarin.Forms official home" Get it together kids :(
    Gerald Versluis
    @jfversluis
    Changed it @BicycleMark
    Rui Marinho
    @rmarinho
    We should archive this channel
    can someone also post the discord url .. not sure how we get one
    Shane Neuville
    @PureWeen
    yea it's already pinned and included in my first comment
    is the link

    if we can put up a permanent response thing on gitter so anyone going there knows to go to discord then I think we can archive this channel

    Otherwise probably good to keep open for a bit just to guide people

    IoTFier
    @IoTFier

    if we can put up a permanent response thing on gitter so anyone going there knows to go to discord then I think we can archive this channel

    Otherwise probably good to keep open for a bit just to guide people

    Keep it open till everyone figures out their path to Discord

    Vishnu Kumar
    @sasivishnu

    Hi anyone have an idea about this bug? microsoft/appcenter#1451

    Whats the workaround for entering text in search bar? Xamarin.UITest are failing in Android 10

    Rui Marinho
    @rmarinho
    Please perform this command before running your tests and everything should be just fine =)
    adb shell settings put global hidden_api_policy 1
    Stefan Cvetkovic
    @stefancvetkovic
    Hello, I have a question regardin custom callout in xamarin forms maps in iOS renderer
    from my CustomPin model, I have alist of strings and I want to represent them as UIStackView ina right section
    and in the left section of the callout to be a image
    I make it work in android, but in ios I done as far as I could this
    Durgesh Khandal
    @techduggu
    Hi @jfversluis /Xamarin.Forms team,
    Need one help. I am working on an X.F issue and I noticed that Xamarin.Forms repo is using the 'main' branch as a default branch. I tried to take the latest (Fetch) from upstream (Xamarin.Forms) to my forked branch but it doesn't fetch the 'main' branch and still using the master as default branch.
    Any ideas around how can we get this to forked repo? Should I create a new fork (just don't want to lose any work in my existing fork repo)?
    2 replies
    Gerald Versluis
    @jfversluis
    Hey everyone, just a friendly reminder that you can best reach us on Discord now: https://aka.ms/dotnet-discord @techduggu @stefancvetkovic @sasivishnu
    pm64
    @pm64
    In my Xamarin.Forms Android project, I have this line of code:
    var textView = new TextView(Forms.Context);
    It generates this warning:
    "Context is obsolete as of version 2.5. Please use a local context instead."
    How do I address this?
    Shane Neuville
    @PureWeen

    access the context from a static instance in android isn't recommended
    you should access the context from whatever context that text view is instantiated from

    you should be able to do this.Context

    if you can't do this.Context then you need to pass in the Context from whatever is calling the code to instantiate the TextView

    pm64
    @pm64
    Thanks @PureWeen! This code is actually in a custom renderer, so sounds like I need to update the interface.
    Do you happen to know the type of Context? Intellisense is saying it's a type that doesn't appear to exist, Xamarin.Forms.Context..?
    pm64
    @pm64
    The calling code is in a class that inherits from Grid, and there's no this.Context for me to pass..
    Shane Neuville
    @PureWeen

    can you post the whole class into a gist where this code exists?

    var textView = new TextView(Forms.Context);

    pm64
    @pm64
    @PureWeen sure, here you go:
    @PureWeen above is from the Android project .. the following is from the Xamarin.Forms project:
    And sorry, "custom renderer" was inaccurate. I meant "platform-specific implementation of a shared interface".
    Shane Neuville
    @PureWeen

    that's a tricky one :confused:

    I would use this plugin

    https://github.com/jamesmontemagno/CurrentActivityPlugin
    And retrieve the current Context from that

    Which should be fine

    technically what you should do is retrieve the Context from the renderer associated with the Grid but that will only matter if you're using material or if your Grid has a different activity context

    pm64
    @pm64
    So best, best practice would be to use CurrentActivityPlugin within the Grid to obtain the Context from the renderer associated with the Grid, then pass that Context to my method?
    Shane Neuville
    @PureWeen

    yea but that might be overkill :smile: it's hard to know from the scenario

    in theory the Context on the Grid is just going to be your FormsAppCompatActivity

    it would only change if for some reason you are instantiating a new context for some reason