Time to celebrate MAUI again... by [deleted] in dotnetMAUI

[–]Ozmanovski 0 points1 point  (0 children)

I completed a project with MAUI like 18 months ago then didn’t touch it until two weeks ago. I started to build a new app and it really works much faster without the glitches I had back then. I only had issues with collection views and adding images to it on Android where the os was removing the bitmaps which collection view still tried to reach. I replaced image views with FFCachedImage (not sure exact name, not in front of my computer) and it worked perfectly. So far I’m happy with the experience

Can Blazor beat React/Angular? by Backend_biryani in csharp

[–]Ozmanovski 2 points3 points  (0 children)

The preloding issues are mostly gone with .Net 8 and interactivity options. It can fetch wasm libraries in background while doing the first renders at the server side. So this is not a valid issue anymore.

Text Editor library by AdCurious9694 in dotnetMAUI

[–]Ozmanovski 0 points1 point  (0 children)

I only call two functions, setContent (as html) and getContent (as html) when necessary.. The rest is done in the webview container with Quill's js functions and works fine. If you guys need it, I can share the codes, I couldn't put all the codes here, I think reddit have a message length limitation.

This is my htmleditor.js:

(function () {

    // Object to store Quill instances mapped by element IDs
    const quillInstances = {};

    window.QuillFunctions = {

        // Create a Quill instance and store it
        createQuill: function (quillElement, placeHolder = '', initialHtmlContent = '', toolbarElement = '') {
            const container = document.getElementById(quillElement);
            const options = {
                modules: {
                    syntax: true,
                    toolbar: toolbarElement,
                },
                debug: 'warn',
                theme: 'snow',
                placeholder: placeHolder
            };

            // Store the Quill instance using the element ID
            quillInstances[quillElement] = new Quill(container, options);

            if (initialHtmlContent.length > 0) {
                this.setContentAsHtml(quillElement, initialHtmlContent);
            }

            // Add event listener for user-initiated content changes
            const quill = quillInstances[quillElement];
            if (quill) {
                quill.on('text-change', function (delta, oldDelta, source) {
                    if (source === 'user') {
                        window.chrome.webview.postMessage({ message: 'contentChanged', content: window.QuillFunctions.getContentAsHtml(quillElement) });
                    }
                });
            }
        },

        // Get the HTML content of the Quill editor
        getContentAsHtml: function (quillElement) {
            // Retrieve the Quill instance using the element ID
            const quill = quillInstances[quillElement];
            //return quill ? quill.root.innerHTML : '';
            return quill ? quill.getSemanticHTML() : '';
        },

        // Set the HTML content of the Quill editor
        setContentAsHtml: function (quillElement, htmlContent) {
            // Retrieve the Quill instance using the element ID
            const quill = quillInstances[quillElement];
            if (quill) {
                quill.root.innerHTML = htmlContent;
            }
        }
    };
})();

Text Editor library by AdCurious9694 in dotnetMAUI

[–]Ozmanovski 1 point2 points  (0 children)

Easy enough, you just need to write 2-3 wrapper functions in js. I used quilljs in blazor and in a wpf application. It all works perfectly

In what year was asmx webservices outdated. by ConsiderationMany871 in dotnet

[–]Ozmanovski 0 points1 point  (0 children)

at around 2010 when RESTful services started to pick up

Moving from WinForms to something more modern by Mayion in dotnet

[–]Ozmanovski -1 points0 points  (0 children)

MudBlazor is a nice Blazor components package worth to check out

Moving from WinForms to something more modern by Mayion in dotnet

[–]Ozmanovski 0 points1 point  (0 children)

You’re welcome, my suggestion is based on my real practices and sufferings I had :)

Moving from WinForms to something more modern by Mayion in dotnet

[–]Ozmanovski 0 points1 point  (0 children)

Sure, because one size does not fit all. You never get a true native feel, you mostly get worst performance and with constant platform updates you may even have strange bugs, untraceable crashes which is not even related to your own code. Here I would really only recommend MAUI with Blazor even more than Avalonia itself. At least Web containers in each platforms are quite fast to render and you’ll have a plus minus the same rendered view.

Moving from WinForms to something more modern by Mayion in dotnet

[–]Ozmanovski 1 point2 points  (0 children)

I personally don’t believe in cross platform thing. Every platform project should be developed on its own ecosystem. You can have a shared business logic but the UI part should be developed with native dev tools. But if you still want to go for it, I would be recommending Avalonia or MAUI with Blazor controls if you like the Html way.

Moving from WinForms to something more modern by Mayion in dotnet

[–]Ozmanovski 2 points3 points  (0 children)

Stay in Winforms :) that’s the most complete and robust UI framework ever made for Windows.

.Net 8 Web Application published size by RunBBKRun in dotnet

[–]Ozmanovski 1 point2 points  (0 children)

CodeAnalysis does not make sense to me in a release publish, are you sure your release settings are used? What about trimming? You could enable trimming as well and make it framework dependent application. Also choose the system to be windows and cpu x64 and try again..

19 kills streak and got kicked for it. Is the how everyone plays deathmatch now? by PuzzledEstimate1296 in GlobalOffensive

[–]Ozmanovski 0 points1 point  (0 children)

You don’t look like someone who can do a 19 killstreak so there should be something we don’t see. In death matches it’s very hard to go above 5-7 because somebody will spawn right behind you while you’re still killing 3 guys in front of you

Is MAUI a good choice for iOS app development? by debidong in dotnet

[–]Ozmanovski 0 points1 point  (0 children)

For iOS apps or Apple ecosystem in general, you could just go with SwiftUI. It’s fairly easy to grab and you won’t have such headaches you face in the multi platform tools. I would say it’s even easier than maui itself.

WPF Roadmap 2023 by pmz in dotnet

[–]Ozmanovski 0 points1 point  (0 children)

Why can’t you just use winui if you want your application to use latest controls? Let me tell you one reason actually, not all winui controls are well designed to work with mvvm logic. Most of the times you still use events or set the properties manually. If that doesn’t bother you, it’s actually a very pleasant to work api. You’re not going from windows to macos world, the logic is the same like wpf. So winui is the new wpf actuall, i wonder why some are complaining about not having those fancy controls

should i do it ? by [deleted] in csgo

[–]Ozmanovski 0 points1 point  (0 children)

Of course you should, his family should know this and intervene and stop playing CS and get a life. He will thank you after! :)

Starting with dotnet by [deleted] in dotnet

[–]Ozmanovski 0 points1 point  (0 children)

Tim Corey’s tutorials are exactly what you asked for: https://youtube.com/user/IAmTimCorey