Salam PV

Salam PV

  • NA
  • 1
  • 2.4k

How To Add Range Of Values to evaluate Value in a MultiDataTriggerConditions Condition's 'Value' Parameter?

Mar 22 2012 1:25 AM

Hello C# Corner,
       I have one requirement regarding the trigger of Control Template on a condition, when the value come in Between a range, Currently It seems it only evaluate '==' operation, How can I make into a 'in between' Condition??

My Current Code look like this
         <ControlTemplate.Triggers>             <MultiDataTrigger>                 <MultiDataTrigger.Conditions>                     <Condition  Binding="{Binding Path=EditValue, RelativeSource={RelativeSource Mode=TemplatedParent}, Mode=TwoWay}"  Value="3/22/2012 12:00:00 AM"/>                 </MultiDataTrigger.Conditions>                 <Setter Property="Visibility" Value="Visible" TargetName="isRequiredBorder"/>             </MultiDataTrigger>             <MultiDataTrigger>                 <MultiDataTrigger.Conditions>                     <Condition  Binding="{Binding Path=EditValue, RelativeSource={RelativeSource Mode=TemplatedParent}, Mode=TwoWay}" Value="{x:Null}" />                 </MultiDataTrigger.Conditions>                 <Setter Property="Visibility" Value="Visible" TargetName="isRequiredBorder"/>             </MultiDataTrigger>         </ControlTemplate.Triggers>
in first condition,I have to compare the values in between to different dates say 3/01/2012 12:00:00 AM and 3/22/2012 12:00:00 AM ?
How can I achieve this?
If there is Any way please let me Know.

Regards
Salam
        

Answers (1)