-
[WPF] TabItem Header(Caption)C#/WPF 2023. 3. 2. 17:32
Content =object(view)
DataContext = viewModel
Title = property(속성)
# <Setter Property="Caption" Value="{Binding Content.DataContext.Title, RelativeSource={RelativeSource self}}"/>
DocRibbonView의 DataContext인 DocRibbonViewModel의 Property인 Title을 value값으로 가져옴
728x90'C# > WPF' 카테고리의 다른 글
[WPF] Multiple Binding (0) 2023.03.03 [WPF] Binding RelativeSource, ElementName (0) 2023.03.03 [WPF] JsonConvert, 직렬화 (0) 2023.02.22 [WPF] .net restore 명령어 (0) 2023.02.17 [WPF] Other Local DLL Folder (AssemblySearchPaths) (0) 2023.02.13 댓글