mvvm-light

Is it possible to use MVVM Light with Entity Framework Core in a UWP project?

一世执手 提交于 2020-07-10 10:25:40
问题 I'm trying to use Entity Framework Core with UWP. I found this sample from Microsoft and got it to work. In this sample, the object models are in a .Net Standard class library. However, for the project I'm working on, I need to be able to use MVVM Light's RaisePropertyChanged method in the setters of my object models. The issue I'm running into is that MVVM Light is apparently not compatible with .NET Standard 2.0, only 1.0. MVVM Light does seem to install correctly to the class library, but

Is it possible to use MVVM Light with Entity Framework Core in a UWP project?

筅森魡賤 提交于 2020-07-10 10:25:06
问题 I'm trying to use Entity Framework Core with UWP. I found this sample from Microsoft and got it to work. In this sample, the object models are in a .Net Standard class library. However, for the project I'm working on, I need to be able to use MVVM Light's RaisePropertyChanged method in the setters of my object models. The issue I'm running into is that MVVM Light is apparently not compatible with .NET Standard 2.0, only 1.0. MVVM Light does seem to install correctly to the class library, but

Is it possible to use MVVM Light with Entity Framework Core in a UWP project?

吃可爱长大的小学妹 提交于 2020-07-10 10:24:50
问题 I'm trying to use Entity Framework Core with UWP. I found this sample from Microsoft and got it to work. In this sample, the object models are in a .Net Standard class library. However, for the project I'm working on, I need to be able to use MVVM Light's RaisePropertyChanged method in the setters of my object models. The issue I'm running into is that MVVM Light is apparently not compatible with .NET Standard 2.0, only 1.0. MVVM Light does seem to install correctly to the class library, but

WP8 MvvmLight namespace missing and EventToCommand doesn't exist

半城伤御伤魂 提交于 2020-06-25 10:15:38
问题 I am using MVVM Light libraries only (from Nuget package) in my Windows Phone 8 project and I want to use EventToCommand in ToggleSwitch . I have these lines of codes: <toolkit:ToggleSwitch x:Name="LockSwitch" IsChecked="{Binding IsLock, Mode=TwoWay}"> <i:Interaction.Triggers> <i:EventTrigger EventName="Toggled"> <Command:EventToCommand Command="{Binding DataContext.NavigateToArticleCommand, ElementName=LayoutRoot}" CommandParameter="{Binding}" /> </i:EventTrigger> </i:Interaction.Triggers> <

WP8 MvvmLight namespace missing and EventToCommand doesn't exist

ぐ巨炮叔叔 提交于 2020-06-25 10:15:06
问题 I am using MVVM Light libraries only (from Nuget package) in my Windows Phone 8 project and I want to use EventToCommand in ToggleSwitch . I have these lines of codes: <toolkit:ToggleSwitch x:Name="LockSwitch" IsChecked="{Binding IsLock, Mode=TwoWay}"> <i:Interaction.Triggers> <i:EventTrigger EventName="Toggled"> <Command:EventToCommand Command="{Binding DataContext.NavigateToArticleCommand, ElementName=LayoutRoot}" CommandParameter="{Binding}" /> </i:EventTrigger> </i:Interaction.Triggers> <

Difference between Set() and RaisePropertyChanged()

强颜欢笑 提交于 2020-05-14 12:33:26
问题 I am reading this http://msdn.microsoft.com/en-us/magazine/jj651572.aspx to learn mvvm light framework. I download the source code Friend.cs. My question is why some set method of different property are implemented differently. For example, the setter for First name is, why I need 'ref' keyword for _firstName. Set(FirstNamePropertyName, ref _firstName, value); And the setter for DateOfBirthString is " RaisePropertyChanged(() => DateOfBirth); When will the linq expression will be evaluated?

UWP / MVVMlight : Replacing Obsolete ServiceLocator

試著忘記壹切 提交于 2020-03-04 23:03:41
问题 I'm updating my apps and now I use MVVMLight 5.3.0 the viewmodellocator crash at the line ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default); I read that ih the latest version of MVVMLight, the class servicelocartor is removed, And the Microsoft.Practices.ServiceLocation was gone ... So, what can/must i do for makes work the app again? Thanks 回答1: From the blog post introducing the standard library version of MVVMLight, remove the line of code below: // OLD ServiceLocator

UWP / MVVMlight : Replacing Obsolete ServiceLocator

限于喜欢 提交于 2020-03-04 23:00:30
问题 I'm updating my apps and now I use MVVMLight 5.3.0 the viewmodellocator crash at the line ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default); I read that ih the latest version of MVVMLight, the class servicelocartor is removed, And the Microsoft.Practices.ServiceLocation was gone ... So, what can/must i do for makes work the app again? Thanks 回答1: From the blog post introducing the standard library version of MVVMLight, remove the line of code below: // OLD ServiceLocator

UWP / MVVMlight : Replacing Obsolete ServiceLocator

主宰稳场 提交于 2020-03-04 23:00:24
问题 I'm updating my apps and now I use MVVMLight 5.3.0 the viewmodellocator crash at the line ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default); I read that ih the latest version of MVVMLight, the class servicelocartor is removed, And the Microsoft.Practices.ServiceLocation was gone ... So, what can/must i do for makes work the app again? Thanks 回答1: From the blog post introducing the standard library version of MVVMLight, remove the line of code below: // OLD ServiceLocator

UWP / MVVMlight : Replacing Obsolete ServiceLocator

烈酒焚心 提交于 2020-03-04 23:00:10
问题 I'm updating my apps and now I use MVVMLight 5.3.0 the viewmodellocator crash at the line ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default); I read that ih the latest version of MVVMLight, the class servicelocartor is removed, And the Microsoft.Practices.ServiceLocation was gone ... So, what can/must i do for makes work the app again? Thanks 回答1: From the blog post introducing the standard library version of MVVMLight, remove the line of code below: // OLD ServiceLocator