开发者

WPF ControlTemplate Expander issue

开发者 https://www.devze.com 2023-01-05 06:20 出处:网络
The following code snippetcode has some issue, I don\'t know where to place it. <ControlTemplate.Triggers>

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

精彩评论

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