Giter Club home page Giter Club logo

baksteen.avalonia.blazor's Introduction

Baksteen.Avalonia.Blazor

Build Avalonia-Blazor hybrid desktop applications using this Blazor webview component for Avalonia v11. Includes Avalonia-Blazor hybrid demo app.

Note: this project has another branch called mvvmct that uses the dotnet MVVM community toolkit to handle commands and property binding.

Screenshot

Capture

ScreenCapture.mp4

baksteen.avalonia.blazor's People

Contributors

jpmikkers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

baksteen.avalonia.blazor's Issues

macOS compatibility

I'm not sure if macOS compatibility is planned -- but if so, I can provide remote root access to a variety of Macs for development/testing, just in case that's helpful.

Port to iOS?

Is there any reason this couldn't work in iOS, or on something other than WinForms? I'd be very happy to look into this.

Binding of HostPage does not work , 11.0.0-rc1.1

Hi,
today I faced an issue - the blazor webview shows only the content by Url that was set in XAML. I tried to use binding of HostPage and got "Unable to use suitable getter or adder ..." . I tried both string and string? types.
If I force to set a new value to HostPage by the code , nothing happens or the message of "There is no content at " is returned.
Thank you.

Failure in Avalonia 11.0.0-preview6 under TabControl

It fails in Avalonia 11.0.0-preview6 under TabControl.
System.InvalidCastException
HResult=0x80004002
Message=Unable to cast object of type 'Avalonia.Platform.PlatformHandle' to type 'Avalonia.Controls.Platform.INativeControlHostDestroyableControlHandle'.

In this project ,is there any way to open file dialog from blazor to Avalonia?

In this project ,is there any way to open file dialog from blazor to Avalonia?
I'm trying
<button @OnClick="OpenFile" />
"OpenFile" visual cannot pass to service from MainWindow.

private async Task OpenFile()
{
var topLevel = TopLevel.GetTopLevel(visual);
// Start async operation to open the dialog.
var files = await topLevel.StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions
{
Title = "Open Text File",
AllowMultiple = false
});

if (files.Count >= 1)
{
// Open reading stream from the first file.
await using var stream = await files[0].OpenReadAsync();
using var streamReader = new StreamReader(stream);
// Reads all the content of file as a text.
var fileContent = await streamReader.ReadToEndAsync();
}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.