I want to use XamZoombar as a seperate control as an integrated control with the other control, is there any possibility.
I want to display the Timline details on the "Preview Area" when used as a seperate control with the other controls, let me know how i can achieve that?
Is it possible to set scale, and scroll in the control tag or at the load time.
My tag Zoom tag is as below.<IGControls:XamWebZoombar x:Name="igZoomBar" PreviewSizeUpdated="XamWebZoombar_PreviewSizeUpdated" Width="240" Height="50" Minimum="1" Maximum="20" ZoomChanged="XamWebZoombar_ZoomChanged" ZoomChanging="XamWebZoombar_ZoomChanging" />I tried to set like this.....private void UserControl_Loaded(object sender, RoutedEventArgs e) { Infragistics.Silverlight.Controls.Range rnge = new Infragistics.Silverlight.Controls.Range(); rnge.FromScaleScroll(0.4, 0.2); //igZoomBar.Range = rnge; igZoomBar.SetValue(XamWebZoombar.RangeProperty, rnge); }The above approach is not success.
Please let me know. How to achieve the specified features in my post?
Try changing this to:
private bool IsLayoutUpdated { get; set; }
private void XamWebZoombar_LayoutUpdated(object sender, EventArgs e)
{
if (this.IsLayoutUpdated)
return;
}
this.Zoombar.Range.FromScaleScroll(0.4, 0.2);
this.IsLayoutUpdated = true;
It seems that the Zoombar has some issue, when a new range is setting.
I tried like this..
private void igZoomBar_LayoutUpdated(object sender, EventArgs e)
Range rnge = new Range();
rnge.FromScaleScroll(0.4, 0.2);
//igZoomBar.Range = rnge;
igZoomBar.SetValue(
XamWebZoombar.RangeProperty, rnge);
but, it is not setting the scale and scroll values.
Plz let me know, is it is correct way? and how i can acheve the functionalty..
You can set the properties of the Zoombar in UserControl LayoutUpdated Event.