Coder Social home page Coder Social logo

radicalfx / radical.design Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 44 KB

Radical is an infrastructure framework whose primary role is to help in the development of composite WPF applications based on the Model View ViewModel pattern.

Home Page: http://www.radicalframework.com/

License: MIT License

Batchfile 0.39% C# 99.61%
composite-wpf-applications radical viewmodel-pattern wpf

radical.design's People

Contributors

mauroservienti avatar micdenny avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

micdenny

radical.design's Issues

DesignHost does not expose properties to vs designer since vs2013

I don't have so much information regard this, I just know that exposing property through Radical DesignTimeHost<T> does not work anymore, or better, the property can used in binding, and the designer render it just fine, but the vs designer tools (like property selector) shows only CultureUI property and all the other viewmodel properties are not shown.

image

using this ViewModel:

    public class MainViewModel : AbstractViewModel
    {
        public int UserId
        {
            get { return this.GetPropertyValue(() => this.UserId); }
            set { this.SetPropertyValue(() => this.UserId, value); }
        }

        public string FirstName
        {
            get { return this.GetPropertyValue(() => this.FirstName); }
            set { this.SetPropertyValue(() => this.FirstName, value); }
        }

        public string LastName
        {
            get { return this.GetPropertyValue(() => this.LastName); }
            set { this.SetPropertyValue(() => this.LastName, value); }
        }
    }

and this DesignViewModel:

    public class DesignMainViewModel : DesignTimeHost<MainViewModel>
    {
        public DesignMainViewModel()
        {
            Expose(vm => vm.UserId)
                .WithStaticValue(10);

            Expose(vm => vm.FirstName)
                .WithStaticValue("Michael");

            Expose(vm => vm.LastName)
                .WithStaticValue("Denny");
        }
    }

if you simply add the binding, the render is done properly:

image

also the binding expression intellisense in xaml does not work:

image

[intellisense workaround] if you have resharper you can hit CTRL+space as it does another deep search and it finds the property:

image

Design Time experience: what should we do?

Actually the Design Time experience is broken due to Visual Studio changing the way it deals with design time components.

what should we do? Options:

  • if we really believe it's important: fix it
  • drop design time support.
  • backlog it and discuss it in the future

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.