C#/C# WPF

View 에서 디자인 타임시 ViewMode Property 자동완성 연동

doublerabbits 2023. 6. 11. 14:18

MainView.xaml

 

xmlns:vm="clr-namespace:MVVM_Sample.ViewModels"
d:DataContext="{d:DesignInstance Type={x:Type vm:MainViewModel}}"

 

<Window x:Class="MVVM_Sample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        xmlns:local="clr-namespace:MVVM_Sample"
        xmlns:vm="clr-namespace:MVVM_Sample.ViewModels"
        d:DataContext="{d:DesignInstance Type={x:Type vm:MainViewModel}}"
        Title="MainWindow" Height="450" Width="800">
</Window>