开发者

WPF ControlTemplate Expander issue

The following code snippetcode has some issue, I don't know where to place it.

                    <ControlTemplate.Triggers>
                        <Trigger Property="IsExpanded" Value="True">
                            <Setter TargetName="ExpandSite" 
                                          Property="Visibility" 
                                          Value="Visible"/>
                     开发者_高级运维   </Trigger>
                    </ControlTemplate.Triggers>


You have the <ControlTemplate.Triggers> element inside the <Grid> instead of directly inside the <ControlTemplate>. Move it down after the line that has </Grid> and before the line that has </ControlTemplate> so that it is a direct child of the <ControlTemplate> element.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜