Home > Net >  Combox custom styles, the ultimate question
Combox custom styles, the ultimate question

Time:09-17

<style: x Key="ComboBoxChartStyle TargetType"="{x: Type ComboBox}" & gt;








Name="ToggleButton"
Style="{StaticResource ComboBoxChartToggleButton}"
Focusable="false"
IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"

ClickMode="Press" & gt;


Name="ContentSite
"IsHitTestVisible="False"
"Content=" {TemplateBinding SelectionBoxItem}
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
Margin="10,3,30.0, 3"
VerticalAlignment="Center"
HorizontalAlignment="Center" & gt;


The Template="{StaticResource ComboBoxTextBox}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Margin="3,3,23,3"
Focusable="True"
The Visibility="Hidden"
Foreground="White"
CaretBrush="White"
IsReadOnly="{TemplateBinding IsReadOnly}"/& gt;
Name="PART_Popup
"
Placement="Bottom"
IsOpen="{TemplateBinding IsDropDownOpen}"
AllowsTransparency="True"
Focusable="False"
PopupAnimation="Slide" & gt;
X: Name="DropDownBorder
"SnapsToDevicePixels="True"
MinWidth="{TemplateBinding ActualWidth}"
MaxHeight="{TemplateBinding MaxDropDownHeight}"
Padding="5,0,7,0" & gt;
Background="# 096 ad4"/& gt;
<,6,4,6 ScrollViewer Margin="4" SnapsToDevicePixels="True" & gt;











- & gt;

  •  Tags:  
  • C #
  • Related