Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 13:18
    MartinZikmund assigned #1421
  • 13:18
    MartinZikmund assigned #1421
  • 13:18
    MartinZikmund labeled #1421
  • 13:18
    MartinZikmund labeled #1421
  • 13:18
    MartinZikmund unlabeled #1421
  • 13:18
    MartinZikmund unlabeled #1421
  • 13:17
    MartinZikmund labeled #1421
  • 13:17
    MartinZikmund labeled #1421
  • 13:17
    MartinZikmund labeled #1421
  • 13:17
    MartinZikmund labeled #1421
  • 13:17
    MartinZikmund opened #1421
  • 13:17
    MartinZikmund opened #1421
  • 11:46
    MartinZikmund labeled #1419
  • 11:46
    MartinZikmund labeled #1419
  • 11:46
    MartinZikmund unlabeled #1419
  • 11:46
    MartinZikmund labeled #1419
  • 11:46
    MartinZikmund labeled #1419
  • 11:46
    MartinZikmund unlabeled #1419
  • 11:46
    MartinZikmund commented #1419
  • 11:46
    MartinZikmund commented #1419
Luis Marques
@luisflsmarques
I also checked in runtime after the converter has executed that the mediaplayer element source property does have the correct URI in it - the problem is that the sound doesnt play. The only way for the sound to play is if I hard code the URL in the Xaml Source property...
in UWP it works flawlessly
Sheharyar Shahid
@sshary019
                        <Setter Target="BodyPanel.(StackPanel.Padding)">
                            <Setter.Value>
                                <Thickness>0,0,0,18</Thickness>
                            </Setter.Value>
                        </Setter>
@davidjohnoliver this is how I'm using thickness in visual state manager. It works on uwp but on android it says thickness not supported.
David Oliver
@davidjohnoliver
@luisflsmarques If we look at what the Uno XAML parser is doing with the URL string, it seems to be creating a MediaSource instance and setting that as Source https://github.com/unoplatform/uno/blob/cc902adceaee9cae59ac64a6f13c27247c2da024/src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.cs#L2718
can you try returning the MediaSource directly from your converter, instead of wrapping it in the MediaPlaybackItem?
@sshary019 seems we don't support that combination of syntaxes. Can you try <Setter Target="BodyPanel.(StackPanel.Padding)" Value="0,0,0,18"/>
Luis Marques
@luisflsmarques
David you are a life saver! That suggestion did the trick !!
David Oliver
@davidjohnoliver
@luisflsmarques Great! :) I made an issue for that: unoplatform/uno#1394
Geoffrey Huntley
@ghuntley
^ thanks :)
Sheharyar Shahid
@sshary019
@davidjohnoliver this works, thanks :)
Patrick Decoster
@pdecostervgls
Whats the procedure for adding features that are introduced in a later version of UWP? I want to implement a feature that was introduced in 1809 (Control's having a CornerRadius property)
Geoffrey Huntley
@ghuntley
@pdecostervgls checking, I don't think we have specific guidance documented yet. More folks will be around in a couple hours time.
With WinUI, more and more features are shipping out-of-band from Windows 10. There are open-source WinUI controls that don't exist in any particular version of Win10 within the code base.
Patrick Decoster
@pdecostervgls
@ghuntley Gotcha, i'll see if someone else has anything to add then. I created an issue for it and am planning on tackling it in a few hours.
Another question. I want to hide a control depending on the platform I am on. I tried using xamarin:Visibility="Collapsed"but so far it is throwing errors my way.
Mostly its a workaround for the perceived incompatibility with the AdaptiveGridView control from the Windows Community Toolkit. If I could get that working, it would solve my problem too
Geoffrey Huntley
@ghuntley
Is the namespace for xamarin: correct? What is the errors? Create a issue on GitHub with the deets please.
Patrick Decoster
@pdecostervgls
Ah, that's what I forgot, I didn't add xamarinto the mc:Ignorable
Sasha Krsmanovic
@k_sasha_twitter
(Marketing talk) - For any of you considering attending UnoConf on Sept 19-20 in Montreal - this coming Friday is the last day for early bird tickets - www.unoconf.com
David Oliver
@davidjohnoliver
@pdecostervgls @ghuntley There's no specific procedure. At some point we will update the 'reference version' to 1809 (which will automatically add new types and members as NotImplemented stubs), but it's not on the immediate roadmap.
For a small isolated feature like this, just go ahead and add it.
Patrick Decoster
@pdecostervgls
Is there a Control class that it currently subclassed from? I could only find and FrameworkElement
David Oliver
@davidjohnoliver
@pdecostervgls Not sure I understand your question. Do you mean the actual file for Control, ie https://github.com/unoplatform/uno/blob/master/src/Uno.UI/UI/Xaml/Controls/Control/Control.cs ?
Patrick Decoster
@pdecostervgls
@davidjohnoliver Nevermind, in my initial lookthrough I didn't see the ButtonBase class the Button is derived from. Thanks for linking the Control class
Sheharyar Shahid
@sshary019
Does UNO support In-App Notification from Windows Community Toolkit? Or should I make a custom one?
Yuvaraj-007
@Yuvaraj-007
image.png

Hi @davidjohnoliver

If I run the project in wasm, I am facing the following error msg... But I am already open the visual studio on administrator mode

Yuvaraj-007
@Yuvaraj-007
Anyone know about this issue... Can you suggest me to resolve this ???
David Oliver
@davidjohnoliver
@sshary019 The WCT controls that have been tested with Uno are the ones uncommented here: https://github.com/unoplatform/Uno.WindowsCommunityToolkit/blob/uno/Microsoft.Toolkit.Uwp.SampleApp.Shared/SamplePages/samples.json
It doesn't look like InAppNotification is supported. Might be worth giving it a try though.
David Oliver
@davidjohnoliver
@Yuvaraj-007 A couple of points:
It also looks like this is a common error that may not be Uno-specific: https://www.google.com/search?q="you+do+not+have+permission+to+access+the+iis+configuration+file"
David Oliver
@davidjohnoliver
@sshary019 Just did some testing, on Android the InAppNotification partially works - it shows and dismisses, but it's not displaying the supplied content message.
If you want to investigate, we're here and more than happy to provide guidance and support :)
yowl
@yowl
@NGame1 make sure you dont put win in the mc:Ignorable attribute
Sheharyar Shahid
@sshary019
@davidjohnoliver I'll take a look at it. Thanks :)
XAML Llama
@XAMLLlama_twitter

Hey All, hope this is a good place to ask this type of question. I'm currently using the Uno.WindowsCommunityToolkit repo and Sample App for testing.

In my original straight-UWP project I initialize a resource in my App.xaml file. Now with Uno, I have App.xaml in the Shared Project. I'm having issues running the UWP project head to confirm behavior, but in Android, I don't see the resource being initialized from App.xaml.

Is App.xaml ignored in this scenario or is there something else I'm missing? Thanks!

Sébastien Goyette
@crogeniks
What kind of resource are you initializing?
Geoffrey Huntley
@ghuntley
morning Michael, here is fine but feel free to also hit up info@platform.uno 👍
Marco
@Mark_489111_twitter
Anyone know how to request permission in android ?
David Oliver
@davidjohnoliver
@XAMLLlama_twitter Are you trying to access the resources from XAML (ie {StaticResource Foo}) or code-behind?
Also there's a known XAML parsing issue where explicitly specifying <ResourceDictionary> inside <Application.Resources> doesn't work unoplatform/uno#1237
XAML Llama
@XAMLLlama_twitter
Thanks @davidjohnoliver, that might be it. I'm using Application.Resources like this:
<Application.Resources>
        <ResourceDictionary>
            <!-- Color Resources -->
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="ms-appx:///Styles/Themes.xaml" />
                <ResourceDictionary Source="ms-appx:///Styles/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <MyCustomDependencyObject x:Key="MyKey"/>
        </ResourceDictionary>
    </Application.Resources>
Restructuring to just have my object as the only thing in the .Resources outside a ResourceDictionary to see what happens.
XAML Llama
@XAMLLlama_twitter
Hmm, still don't see the constructor being called after changing it to this:
<Application.Resources>
  <MyCustomDependencyObject x:Key="MyKey"/>
</Application.Resources>
XAML Llama
@XAMLLlama_twitter
I added an initialization to the Shell.xaml.cs page for now to get me further, need to resolve missing dependencies for the libraries I'm using now (Microsoft.Identity.Client). That should work in Xamarin though, so I'm assuming there shouldn't be a problem using in Uno?
David Oliver
@davidjohnoliver
@XAMLLlama_twitter Looking at the generated code (normally in /obj/Debug/[target]/g/XamlCodeGenerator/Filename_hash.g.cs), it looks like that will work but the resource will be lazily initialized on first access
Normally any library that targets Xamarin will work with Uno on Android+iOS. WASM is another story though.