[WPF] ๊ณต๊ณต๋ฐ์ดํฐ ํฌํธ API ์ด์ฉ ํด๋ผ์ด์ธํธ ๊ตฌํ Part 3
๊ทธ๋ฃนํ ListViewItem ๊ทธ๋ฃนํ ํ ์ ์์ต๋๋ค. ๋จผ์ CheckBox์ Checked ์ด๋ฒคํธ๋ฅผ ํตํด ๊ทธ๋ฃนํ์ ์ถ๊ฐํ๊ณ RemoveChecked ์ด๋ฒคํธ๋ฅผ ํตํด ๊ทธ๋ฃนํ์ ์ ๊ฑฐ ํ ์ ์๋๋ก CheckBox๋ฅผ ์ ์ธ ํฉ๋๋ค. 1: <!-- Group CheckBox --> 2: <CheckBox Grid.Column="0" 3: Grid.Row="0" 4: Checked="AddGrouping" 5: Unchecked="RemoveGrouping">Group by Name</CheckBox> ๊ทธ๋ฃน ์คํ์ผ ์ ์ธ GroupStyle ์์ฑ์ ContainerStyle ์์ฑ์ ์ด์ฉํด Style์ ์ง์ ํฉ๋๋ค. Expander ์ปจํธ๋กค์ ์ด์ฉํด ์ํํธ๋ช
๊ณผ ๊ทธ๋ฃน ์์ดํ
์ ๊ฐ์๋ฅผ Expander Header์ ํ์ ํ๋๋ก ControlTemlate๋ฅผ ์ ์ธ ํฉ๋๋ค. 1: <!-- Group Style --> 2: <ListView.GroupStyle> 3: <GroupStyle> 4: <GroupStyle.ContainerStyle> 5: <Style TargetType="{x:Type GroupItem}"> 6: <Setter Property="Margin" Value="0,0,0,5" /> 7: <Setter Property="Te...