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>
'C# > C# WPF' 카테고리의 다른 글
명령줄 인수 (1) | 2023.12.23 |
---|---|
WPF ListBox drag selection (0) | 2023.11.06 |
Button click parameter (code behind) (0) | 2023.06.01 |
Xaml 특수문자 (0) | 2023.06.01 |
Close Window in ViewModel (0) | 2022.10.23 |