0
발견 된 모든 샘플은 이전 버전의 프리즘을 처리하거나 현재 작동하지 않습니다. 난 비주얼 스튜디오 2015 내가 특별히 ViewmodelLocator.AutoWireViewModelwpf, prism 6, Unity를 사용하여 샘플 앱이 필요하며 모듈을 구현합니다.
를 사용하는 예를 찾고 있어요 사용하고발견 된 모든 샘플은 이전 버전의 프리즘을 처리하거나 현재 작동하지 않습니다. 난 비주얼 스튜디오 2015 내가 특별히 ViewmodelLocator.AutoWireViewModelwpf, prism 6, Unity를 사용하여 샘플 앱이 필요하며 모듈을 구현합니다.
를 사용하는 예를 찾고 있어요 사용하고GitHub의에서 사용할 수있는 offical 한 예입니다 : https://github.com/PrismLibrary/Prism-Samples-Wpf/tree/master/HelloWorld이
이 샘플은 유니티를 사용하고 ViewA
작성 뷰 모델 locatator을 사용하여이 ViewAViewModel
의 인스턴스 : https://github.com/PrismLibrary/Prism-Samples-Wpf/blob/master/HelloWorld/Modules/ModuleA/Views/ViewA.xaml
<UserControl x:Class="ModuleA.Views.ViewA"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:prism="http://prismlibrary.com/"
prism:ViewModelLocator.AutoWireViewModel="True">
<Grid>
<TextBlock Text="{Binding Title}" Foreground="Green" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Calibri" FontSize="24" FontWeight="Bold"></TextBlock>
</Grid>
</UserControl>