<Style TargetType="{x:Type ListBox}">
    <Setter Property="ItemContainerStyle">
        <Setter.Value>
            <Style TargetType="{x:Type ListBoxItem}"
                   BasedOn="{StaticResource ListBoxItemStyle}">
                <Style.Resources>
                    <!-- Background of selected item when not focused -->
                    <SolidColorBrush x:Key="{x:Static SystemColors.InactiveSelectionHighlightBrushKey}"
                                     Color="{DynamicResource ResourceKey={x:Static SystemColors.HighlightColorKey}}"/>
                    <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}"
                                     Color="{DynamicResource ResourceKey={x:Static SystemColors.HighlightColorKey}}"/>
                </Style.Resources>
                <Style.Triggers>
                    <Trigger Property="IsSelected" Value="True">
                        <Setter Property="Panel.Background"
                                Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
                    </Trigger>
                </Style.Triggers>
            </Style>
        </Setter.Value>
    </Setter>
</Style>

'.NET > WPF' 카테고리의 다른 글

WPF Graphics Rendering  (0) 2021.08.15
Routed Event  (0) 2021.08.15
ScrollViewer Tips  (0) 2021.08.15
Save Canvas as an Image  (0) 2021.08.15
LayoutTransform vs. RenderTransform  (0) 2021.08.15

자동 설치 스크립트

$ sudo wget -qO- https://get.docker.com/ | sh

 

get.docker.com 스크립트로 Docker를 설치하면 hello-world 이미지도 자동으로 설치됨

 
hello-world 이미지 삭제
$ sudo docker rm `sudo docker ps -aq`
$ sudo docker rmi hello-world
 
 
자동 설치 스크립트를 사용하지 않고 우분투에서 패키지로 직접 설치
$ sudo apt-get update
$ sudo apt-get install docker.io
$ sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker
 
/usr/bin/docker.io 실행파일을 /usr/local/bin/docker로 링크해서 사용
 
 
 
 
 

 

 

 

+ Recent posts