Does this idea make any sense? ie to try and learn the inner workings of XAML by analyzing how Moonlight handles XAML code and then see if there might be a way to convert XAML code to Javascript code?
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in XAML
- Can't open new instance of another window in my app, in WPF .NET 8
- Visual Studio throwing DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION when I try to add a log
- Deeplinking in .net Maui "Window was allready created"
- MauiApp crashes only in release mode at sideswitch android.os.DeadObjectException
- Move .net maui contents below the drawer when it's opened
- Both `TouchBehavior.CommandParameter` and `TouchBehavior.LongPressCommandParameter` are always passed as `null` to `Command` and `LongPressCommand`
- How do I change the size of a window?
- How can I force a .NET MAUI ContentView to fill the entire remaining space of its FlexLayout parent?
- How can I get this ComboBox to bind, populate the dropdown and write back selected value on update?
- MAUI-Animating each element of a BindableLayout
- Correctly set RadioButtonGroup for CollectionView in .NET MAUI
- Multiple color schemes depending on build configuration in WPF-application
- Select XAML file based on build configuration (Visual Studio 2022, WPF)
- The type was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built
- How can I tell if a control is actually Visible in UWP?
Related Questions in MOONLIGHT
- Changing Parsec Client Streaming Resolution
- Can't create provisioning profile in Xcode 9
- Execute a command from a variable inside a while loop or export variable out of while loop
- Mono: The type or namespace name 'Kind' could not be found
- Android: Image similarity api
- Mono Moonlight XAML to Javascript
- 403 Error when trying to download moonlight
- How to install moonlight in Ubuntu 12.0.4?
- Is MoonlightDesktop suitable for porting wpf app to Linux?
- moonlight VS silverlight
- System.Diagnostics.Process namespace missing
- MONO mscorlib.dll customize
- Moonlight on MAC OS X
- Unable to debug Moonlight plugin in firefox
- Debugging moonlight firefox plugin in linux using gdb
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I went through a similar exercise several years ago (while I was working on Moonlight, as it happens.) It doesn't so much convert XAML to javascript, but embeds XAML into the html dom and then uses javascript in place of C#.
Check out https://github.com/toshok/firelight. I added some WPF-isms as well, since WPF has a much saner implementation of the DependencyObject/DependencyProperty stuff.
Unsure if it works in modern browsers.
There are a couple of simple demos in that repo:
https://github.com/toshok/firelight/blob/master/firelight/node.xhtml has xaml: namespaced nodes at the end of the file.
https://github.com/toshok/firelight/blob/master/firelight/code.xhtml builds a trivial scene using nothing but JS.
update- I checked things on chrome and safari (OSX), and code.xhtml seems to work on both. node.xhtml has some issues, and doesn't work in either. One further test, complete with bitmap effects, triggers, setters, animations, events, and Britney Spears, is https://github.com/toshok/firelight/blob/master/firelight/xaml.xhtml.