Select to view content in your preferred language

ComboBoxStyle - SelectionChanged event does not fire

992
1
Jump to solution
06-29-2012 10:55 PM
JudyTroutwine
Regular Contributor
I have included a ComboBoxStyle in FeatureDataForm Style as shown below.  No error is raised; however, the event procedure is not called after making a selection in the combo box during operation.  Is something else needed?


   <Style x:Key="DFComboStyle" TargetType="ComboBox">
        <Setter Property ="SelectedValue" >
          <Setter.Value>
            <ComboBox SelectionChanged="CommonName_SelectionChanged"/>
          </Setter.Value>   
        </Setter>   
        <Setter Property="BorderBrush" Value="Aquamarine"/>
        <Setter Property="FontWeight" Value="Bold"/>
      </Style>


            ...


   <Style x:Key="FeatureDataFormStyle1" TargetType="esri:FeatureDataForm">
      
        <Setter Property ="ComboBoxStyle" Value="{StaticResource DFComboStyle}" />

            
        <Setter Property="Background">
          <Setter.Value>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
              <GradientStop Color="#FFF3F7FA" Offset="0"/>
              <GradientStop Color="#FF4079D6" Offset="0.1"/>
            </LinearGradientBrush>
          </Setter.Value>
        </Setter>


        ...
0 Kudos
1 Solution

Accepted Solutions
JoeHershman
MVP Alum
Unfortunately in Silverlight you cannot set event handlers in Style (AFAIK).
Thanks,
-Joe

View solution in original post

0 Kudos
1 Reply
JoeHershman
MVP Alum
Unfortunately in Silverlight you cannot set event handlers in Style (AFAIK).
Thanks,
-Joe
0 Kudos