This project is read-only.

Change the size of the image in ElementFlow

Jul 16, 2009 at 3:57 PM


Hi
I have a couple of questions:
1. I am trying to increase the size of the image, the width and the height, i have tried changing the ElementWidth and ElementHeight and also set the Width and Height to 1000

The data template looks like this after this:

<DataTemplate x:Key="TestDataTemplate"
                      DataType="{x:Type sys:String}">
            <Border x:Name="ElementVisual"
                    Background="White"
                    Padding="5"
                    BorderThickness="5"
                    BorderBrush="LightGray"
                    Grid.Row="0">
                <Image Source="{Binding}"
            Width = 1000
            Height = 1000
                       Stretch="Fill" />
            </Border>
        </DataTemplate>

This is how the controlsElementFlow looks like:

<Controls:ElementFlow x:Name="ElementFlow"
                                          Focusable="True"
                                          TiltAngle="{Binding Value, ElementName=_tiltAngleSlider}"
                                          ItemGap="{Binding Value, ElementName=_itemGapSlider}"
                                          FrontItemGap="{Binding Value, ElementName=_frontItemGapSlider}"
                                          PopoutDistance="{Binding Value, ElementName=_popoutDistanceSlider}"
                                          ElementWidth="1200"
                                          ElementHeight="900"
                                          HasReflection="True"
                                          Background="LightBlue">

When i run i do not notice any changes.
Please let me know if you have any suggestions.
Thanks
Navin

Jul 29, 2009 at 10:32 PM

 

Try to change the FieldOfView property-  it will increase all views of ur images (Default View is 60 when u set it to 30 images will grown up =) )	


<Controls:ElementFlow.Camera>
							<PerspectiveCamera FieldOfView="30"
											   Position="0,0,6"
											   LookDirection="0,0,-6"
											   UpDirection="0,1,0" />
						</Controls:ElementFlow.Camera>