Minimum maximum value in dial 360

Nov 26, 2009 at 2:35 AM
Edited Nov 26, 2009 at 7:32 AM

hi ,

I have a problem in minimum and maximum value binding in dial 360.Showing an error of 'value does not fall in the expected  range'

my code is given below,

<my:Dial360 x:Name="Sensor" Value="{Binding usage}" Grid.Row="0" Grid.Column="0" Minimum="{Binding Min}"  Maximum="{Binding Max}"
                             HorizontalAlignment="Center" Loaded="dlSensor_Loaded">
                    <my:Dial360.FaceColorRange>
                        <my:ColorPoint HiColor="#7B1D15" LowColor="#BA1A00" Value="25" />
                        <my:ColorPoint HiColor="#4C5C59" LowColor="#058A73" Value="50" />
                        <my:ColorPoint HiColor="#7B1D15" LowColor="#BA1A00" Value="75" />
                    </my:Dial360.FaceColorRange>
                </my:Dial360>

also used,

<my:Dial360 x:Name="Sensor" Value="{Binding usage}" Grid.Row="0" Grid.Column="0" Minimum="{Binding Path=Min}"  Maximum="{Binding Path= Max}"
                             HorizontalAlignment="Center" Loaded="dlSensor_Loaded">
                    <my:Dial360.FaceColorRange>
                        <my:ColorPoint HiColor="#7B1D15" LowColor="#BA1A00" Value="25" />
                        <my:ColorPoint HiColor="#4C5C59" LowColor="#058A73" Value="50" />
                        <my:ColorPoint HiColor="#7B1D15" LowColor="#BA1A00" Value="75" />
                    </my:Dial360.FaceColorRange>
                </my:Dial360>

Please give me a solution for this issue