Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 04:19
    nventive-devops commented #2321
  • 04:19
    nventive-devops commented #2321
  • 03:58
    gitpod-io[bot] commented #2324
  • 03:58
    gitpod-io[bot] commented #2324
  • 03:58
    jeromelaban synchronize #2324
  • 03:58
    jeromelaban synchronize #2324
  • 03:58

    jeromelaban on jela

    Improve screenshot comparer too… (compare)

  • 03:57
    github-actions[bot] labeled #2324
  • 03:57
    github-actions[bot] labeled #2324
  • 03:57
    jeromelaban review_requested #2324
  • 03:57
    jeromelaban review_requested #2324
  • 03:57
    jeromelaban review_requested #2324
  • 03:57
    jeromelaban review_requested #2324
  • 03:57
    jeromelaban review_requested #2324
  • 03:57
    jeromelaban review_requested #2324
  • 03:57
    gitpod-io[bot] commented #2324
  • 03:57
    gitpod-io[bot] commented #2324
  • 03:57
    jeromelaban opened #2324
  • 03:57
    jeromelaban opened #2324
  • 03:56

    jeromelaban on jela

    Improve screenshot comparer too… (compare)

Sean
@CryptoDogg_gitlab
@davidjohnoliver The type is in the default shared assembly. I tried adding <assembly fullname="{MyProject}.Shared"> but that blows up
Binding to a non-static object works though
David Oliver
@davidjohnoliver
Ah Debugging.DebugInfo is a static object? That may well not work
Sean
@CryptoDogg_gitlab
I just tested binding to a static object in the codeBehind the xaml, and that worked
I think it's more an object tree navigation issue. {x:Bind myCollection} works, even if static.
ItemsSource="{x:Bind debug:Debugging.DebugInfo}
doesn't work
Hong
@zipswich
@CryptoDogg_gitlab consistent with my working code:
        <ListView Grid.Row="1" x:Name="listviewResults" 
            Margin="10"
            SelectionMode="None"
            IsSwipeEnabled="True"
            ItemsSource="{x:Bind Files}" 
            SelectedItem="{x:Bind fileSelected, Mode=TwoWay}">
jasonxz
@jasonxz
Hey guys! I'm porting over an audio player. My existing UWP app is using AudioGraph so I figure that's not an option in the other heads. So I'm looking for some guidance....do y'all advise using the MediaManager plugin for Xamarin or the MediaPlayer (is this supported?)? My current version was originally using the MediaPlayer so that would be my preference short-term (need to get it working by X-Mas so we can use it when we all switch to Android phones).
Also, I just want to thank the Uno Platform Community. Y'all rock!
David Oliver
@davidjohnoliver
@CryptoDogg_gitlab It seems then like it works for static members on the view, but not it's not supported for separate static objects. I just confirmed it's the same for iOS
@jasonxz MediaPlayerElement is supported on Android and iOS. Not on WASM yet
Sean
@CryptoDogg_gitlab
@davidjohnoliver I messed that up, I thought I was looking at the wasm when I said it binds to the view's static collection, but that doesn't work in wasm. Let's just say that binding to static objects doesn't seem to work. Not sure if this is just ListView or all bindings
jasonxz
@jasonxz
@zipswich Actually I did see that...that's me replying with the YESSSSS!!!! I just forgot. LOL!
Sean
@CryptoDogg_gitlab
@zipswich Thanks for the assistance
Hong
@zipswich
My pleasure.
Hong
@zipswich
I am wondering if anyone else has seen this weird behavior: a UWP head running in debug mode (F5) looks different from it running without debugging (Ctr + F5).
Here is it running with debugging:
image.png
Without debugging:
image.png
Xaml code:
      <NavigationView 
          x:Name="NavView"
          PaneDisplayMode="Left"
          Loaded="NavView_Loaded"
          ItemInvoked="NavView_ItemInvoked">
I assume this is unrelated to Uno.
pkar70
@pkar70
In my app, I can use Uno.UI.BaseActivity.Current . I tried to use it in uno\src\Uno.UWP\Devices\Geolocation\Geolocator.Android.cs , but it failed: Error CS0234 The type or namespace name 'BaseActivity' does not exist in the namespace 'Uno.UI' (are you missing an assembly reference?) . What I should do to use BaseActivity.Current inside Uno?
pkar70
@pkar70
current status of unoplatform/uno#2170 is: "CI Build not found". Can it be rebuild?
Can unoplatform/uno#2079 be approved/merged?
Can changes in unoplatform/uno#2024 be reviewed? (question mainly to MatFillion)
Sébastien Goyette
@crogeniks
Pretty sure asking those same questions everyday won't make the Uno team review them any faster honestly
pkar70
@pkar70
But 2170 is even not my PR...
And some of my PR was "lost", as one of members of Uno team confirmed when I repeat question about it - yes, not daily, but about once a week.
pkar70
@pkar70
And repeating unanswered question is also effect of my desperation...
techchol
@techchol
Can I use native view inside UnoPlatform? like using kotlin fragment inside UWP panel? I only saw how to use NativeControl variant in XAML.
Sébastien Goyette
@crogeniks
@techchol this article covers a bit that scenario
https://platform.uno/docs/articles/platform-specific-csharp.html
jasonxz
@jasonxz
Can I get some advise on how to execute code on the UI thread? I'm thinking the DispatcherHelper in the Community Toolkit is ready, yet, and I can't figure out how to get Xamarin's Device.InvokeOnMainThreadAsync to work. Appreciate it!
Hong
@zipswich
@jasonxz Uno = UWP Everywhere. Have you tried the good old UWP way: Dispatcher.RunAsync()?
jasonxz
@jasonxz
@zipswich It looks like that's "Not Available" on iOS.... Any other ideas?
@zipswich Actually, I don't even see the RunAsync method on the IDispatcher interface. I see a BeginInvokeOnMainThread but that's it. I'm looking at the Dispatcher property of the Page class. Should I be looking somewhere else?
Sébastien Goyette
@crogeniks
This discussion might help you
Hong
@zipswich
@jasonxz I have code similar to the following in many places of an app that runs on iOS without any problem:
                await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
                {
                    iAudioOutputValue = (uint)(uiSum / asData.Length);
                });
image.png
jasonxz
@jasonxz
@zipswich It took me some doing, but I think I found the Dispatcher as a property of Window.Current.
Hong
@zipswich
@jasonxz I think it is recommended to use the Dispatcher of a control/page instead of Window.Current that can be null. I believe @jeromelaban explained this here.
Hong
@zipswich

@jasonxz Here is another code snippet of the app using Dispatcher:

                await img.Parent.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
                {
                    StatusPropertySetter?.Invoke(sStatus);
                });

img is an instance of Image.

Sébastien Goyette
@crogeniks
Window.Current is never null in Uno, but can be null in UWP, hence why you should only rely on it.
Shouldn't*
Jérôme Laban
@jeromelaban
@zipswich you should be able to use the dispatcher from the image in this snippet
Hong
@zipswich
👍
Jérôme Laban
@jeromelaban
@pkar70 we're doing our best to review PRs, but some require more work than others and we can't always find the time based on our priorities. (e.g. the DatePicker or MailManager which requires a more advanced review by testing the scenarios, as looking at the code is not enough).
Those two PRs also are system integrations, which make then difficult to have automated tests.
Jérôme Laban
@jeromelaban