Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: Custom Style Template for PropertyGrid not Working, Any Ideas?

$
0
0
Hi,

For 2), instead of modifying the BorderThickness of the SearchTextBox, you can modify the BorderBrush. In the "searchBoxContainer", use this :
<local:WatermarkTextBox x:Name="_txtFilter"
                                                      Background="Transparent"
                                                      Text="{Binding Filter, RelativeSource={RelativeSource TemplatedParent}, UpdateSourceTrigger=PropertyChanged}"
                                                      Watermark="{TemplateBinding FilterWatermark}"
                                                      BorderThickness="1">
                                 <local:WatermarkTextBox.Style>
                                    <Style TargetType="Control">
                                       <Setter Property="BorderBrush"
                                               Value="Transparent" />
                                       <Style.Triggers>
                                          <Trigger Property="IsMouseOver"
                                                   Value="True">
                                             <Setter Property="BorderBrush"
                                                     Value="{StaticResource MouseOverBorderBrush}" />
                                          </Trigger>
                                       </Style.Triggers>
                                    </Style>
                                 </local:WatermarkTextBox.Style>

</local:WatermarkTextBox>
This will be included in v3.1 of the Toolkit.
Thanks

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>