logo
down
shadow

Marking up Text in an MVVM cross platform scenario


Marking up Text in an MVVM cross platform scenario

By : Daniel Sensebusch
Date : November 20 2020, 03:01 PM
will help you I went for an AttributedStringViewModel in the end that held the text as a String and then had a read only property (set in ctor) of a List of StringFormattingAttribute
code :
public class StringFormattingAttribute
{
    public StringFormattingAttribute(FormattingType type, FormattingRange range)
    {
        this.Type = type;
        this.Range = range;
    }

    public FormattingType Type { get; }

    public FormattingRange Range { get; }
}


Share : facebook icon twitter icon
Does .NET (Mono) support cross-platform file operations and cross-platform audio metadata handling (through libraries)?

Does .NET (Mono) support cross-platform file operations and cross-platform audio metadata handling (through libraries)?


By : Tim
Date : March 29 2020, 07:55 AM
like below fixes the issue The official page from mono on the first part of this topic is IOMap.
Why MVVM for Xamarin cross platform

Why MVVM for Xamarin cross platform


By : Jurgen Schumacher
Date : March 29 2020, 07:55 AM
Any of those help IMMO and more like an (philosophical?) opinion than an answer.
I Think:
MVVM Dependency Injection cross-platform

MVVM Dependency Injection cross-platform


By : user2929510
Date : March 29 2020, 07:55 AM
this will help First of all: use portable version of mvvm light MVVMLight.portable. I also suggest you to use some more advanced IoC container - personally I prefer Ninject (which also have portable version called Ninject.Portable) - it suits all my needs. Get it from Nuget Package Manager.
Second - create class called ViewModelLocator (different for Windows Phone and Windows Modern) it will act as your so-called ApplicationCore (place where dependency injection container sits).
code :
public class ViewModelLocator
{
    private readonly IKernel _dependenciesContainer;

    public ViewModelLocator() 
    {
         _dependenciesContainer = new StandardKernel(new ApplicationKernelModule());
    }

    public MainViewModel Main { get { return _dependenciesContainer.Get<MainViewModel>() } }
}

public class ApplicationKernelModule : NinjectModule
{ 
    public override void Load()
    {
        Bind<ICameraCaller>().To<DesktopCameraCaller>();  
    }
} 

public class DesktopCameraCaller : ICameraCaller
{
     // here lies Windows Modern implementation of camera caller
}
<Application
x:Class="YourApp.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:YouNamespace"
xmlns:viewModel="using:ViewModelLocatorNamespace">

<Application.Resources>
    <ResourceDictionary>

        <viewModel:ViewModelLocator x:Key="ViewModelLocator"/>
    </ResourceDictionary>
</Application.Resources>
DataContext={Binding Source={StaticResource ViewModelLocator}, Path=Main}
Cross-platform development - Delphi 2011: How to made a Windows-tied library cross-platform?

Cross-platform development - Delphi 2011: How to made a Windows-tied library cross-platform?


By : user3802105
Date : March 29 2020, 07:55 AM
Does that help Visual component developer's perspective:
Add levels of functionality to your code, so as to be able to add another platform without changing the "Core" of the component. The compiler hopefully will have a platform switch. (Preferable more than one, working in conjunction with each other. ex. Windows/ARM, Windows/386, OSX/Cacao/386, Linux/Gnome/386).
Cross-platform IDE for cross-platform high-level language with easy GUI creation (to replace VB .NET)

Cross-platform IDE for cross-platform high-level language with easy GUI creation (to replace VB .NET)


By : Mau Diia
Date : March 29 2020, 07:55 AM
seems to work fine For cross-platform, you should have a look at Xojo (formerly CrossBasic, RealBasic, RealStudio...). It's free to play with, but you can't compile or deploy without a license. With a license, it allows compilation of Windows, OSX, iOS, and Linux binaries from a single source. I did use RealStudio 7 for a bit, it was alright really, no major complaints. Of course it will not be as complete a framework as .NET or mono is, but what was there was plenty for simple cross platform apps, certainly enough for beginners to chew on for a while, while learning object-oriented programming. Apart from the cross platform and size of VS though, Visual Studio is by far more complete and more standard.
shadow
Privacy Policy - Terms - Contact Us © voile276.org