Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:47
    maxkatz6 commented #9093
  • 01:35
    robloo commented #9098
  • 01:32
    robloo commented #9098
  • 01:02
    rabbitism commented #9093
  • 00:58
    rabbitism commented #9093
  • 00:57
    rabbitism commented #9093
  • Oct 04 23:52
    robloo commented #9093
  • Oct 04 23:51
    robloo edited #9093
  • Oct 04 23:24
    amwx labeled #9105
  • Oct 04 23:24
    amwx opened #9105
  • Oct 04 22:52
    jcoc611-microsoft commented #9103
  • Oct 04 22:35
    kekekeks commented #9103
  • Oct 04 22:31
    avaloniaui-team commented #9104
  • Oct 04 22:10
    Arhell synchronize #9104
  • Oct 04 22:08
    Arhell synchronize #9104
  • Oct 04 22:07
    Arhell opened #9104
  • Oct 04 22:07
    jcoc611-microsoft commented #9103
  • Oct 04 21:33
    kekekeks commented #9103
  • Oct 04 20:16
    jcoc611-microsoft opened #9103
  • Oct 04 20:16
    jcoc611-microsoft labeled #9103
.
@avaloniaui:matrix.org
[m]
danwalmsley
and see if your issue is resolved
danwalmsley
let me know the result
Todlichan
i'll try it, i hope nothing will break because of any vital changes
danwalmsley
we maintain stable api
danwalmsley
everything 0.10.x is stable and compatible
.
@avaloniaui:matrix.org
[m]
RazorSharpFang
Looking at UnmanagedMethods.cs
CreateWindowEx from User32.dll
Shouldn't the target be CreateWindowExW for Wide-String ? I thought CreateWindowEx was the .h macro that pointed to either the A variant or the W variant depending on whether or not certain preprocessor directives were made.
danwalmsley
@kekekeks ?
RazorSharpFang
I noticed that the EntryPoint is specified manually on DefWindowProc to correctly point to DefWindowProcW
RazorSharpFang
But I'm not seeing that on CreateWindowEx
RazorSharpFang
It could be that the Marshaller is smart enough to do this for you? I've not actually tried doing these kinds of dll imports manually without explicitly hitting the W variant.
RazorSharpFang
🤔
.
@avaloniaui:matrix.org
[m]
Katz0
@RazorSharpFang is it native control host? You need a app.manifest as this exceptions tells
RazorSharpFang
Will the manifest modify the way the marshaller manages this, or does it change the way the operating system maps these DLL calls?
.
@avaloniaui:matrix.org
[m]
Todlichan
okay, i updated and now it fails to load 'libcef' (re @danwalmsley: let me know the result)
Todlichan
on windows still works fine tho
RazorSharpFang
Do you have libcef installed or otherwise copied as a dependency?
Todlichan
if only i wasn't so stupid and knew what it is
Todlichan
is it some kind of web library?
RazorSharpFang
Okay, so libcef is the library for the Chromium Embedded Framework
Todlichan
it's just i use webview in my app
RazorSharpFang
I think libcef would be a dependency of the webview
danwalmsley
thats nothing to do with avalonia (re @Todlichan: okay, i updated and now it fails to load 'libcef')
danwalmsley
which webview are you using?
.
@avaloniaui:matrix.org
[m]
Todlichan
https://github.com/OutSystems/WebView
this one (re @danwalmsley: which webview are you using?)
danwalmsley
its only maintained for windows and mac
danwalmsley
they dont support linux
kekekeks
W is getting added automatically by .NET (re @RazorSharpFang: Looking at UnmanagedMethods.cs
CreateWindowEx from User32.dll
Shouldn't the target be CreateWindowExW for Wide-String ? I thought CreateWindowEx was the .h macro that pointed to either the A variant or the W variant depending on whether or not certain preprocessor directives were made.)
danwalmsley
@kekekeks whats the recommendation for webview now
danwalmsley
there is a better solution now right?
RazorSharpFang
Aha, that explains that. I was about to call GetProcAddress manually to check (re @kekekeks: W is getting added automatically by .NET)
kekekeks
CefNet (re @danwalmsley: @kekekeks whats the recommendation for webview now)
danwalmsley
is there an avalonia sample?
danwalmsley
@Todlichan https://github.com/CefNet/CefNet
danwalmsley
look into this
.
@avaloniaui:matrix.org
[m]
Todlichan
okay, i'll try it, thank you
Todlichan
i totally forgot that thing wasn't supposed to work on linux
Todlichan
i saw this one too while looking for it, but it seemed too complicated haha
RazorSharpFang
You could write multiple paths, and do an environment check to load the linux one on linux
Deadpikle
@Deadpikle
👋 How can I set the FolderPickerOpenOptions.SuggestedStartLocation based on a string? Sure there's a simple way but not seeing it right off the bat
.
@avaloniaui:matrix.org
[m]
Katz0
There is no simple way, as you can't universally create a folder from a string
Katz0
You can do it on win/mac/lin, but not on mobile or wasm
Deadpikle
@Deadpikle
I'm on desktop only atm so that's not a huge deal
.
@avaloniaui:matrix.org
[m]
Katz0
You can create instance of BclStorageFolder
Deadpikle
@Deadpikle
Goal: Serialize folder path for user so that later when they want to select more files in the folder (in between app runs) I can pop open the folder. Easiest way to serialize a path is via a string.
I c
.
@avaloniaui:matrix.org
[m]
Katz0
It won't work on non desktop, but that's what you need (re @Katz0: You can create instance of BclStorageFolder)
Deadpikle
@Deadpikle
👍 Works great here. That's what I was missing. Thank you!
.
@avaloniaui:matrix.org
[m]
Katz0
Generally you need to ask user to choose app folder and save bookmark to it
Katz0
We might add some well known folders (re @Katz0: Generally you need to ask user to choose app folder and save bookmark to it)