728x90
728x170

컨트롤의 Background 를 Transparent 로 하게되면

해당 컨트롤 뒤쪽에 배치된 컨트롤들에 마우스 오버이벤트나 툴팁처리를 한경우 작동하지 않게됩니다.

하지만 Background 를 {x:Null} 로 지정하게되면

뒤쪽에 배치된 컨트롤들의 이벤트 처리가 가능해 집니다.

 

아래처럼 {x:Null} 로 된 경우 ToolTip 이 제대로 표시되지만 

    <Grid>
        <Label Content="null 과 transoarent" ToolTip="ToolTip!!" Height="30" Width="300"/>
        <Border Name="Button1" Height="30" Width="300" BorderBrush="Yellow" Background="{x:Null}" BorderThickness="1"/>
    </Grid>

아래처럼 Transparent 로 된 경우 ToolTip 이 표시되지 않습니다.

    <Grid>
        <Label Content="null 과 transoarent" ToolTip="ToolTip!!" Height="30" Width="300"/>
        <Border Name="Button1" Height="30" Width="300" BorderBrush="Yellow" Background="Transparent" BorderThickness="1"/>
    </Grid>

728x90
그리드형
Posted by kjun
,