This is a migrated thread and some comments may be shown as answers.

how to place image in cube !

3 Answers 41 Views
Cube
This is a migrated thread and some comments may be shown as answers.
noman nadeem
Top achievements
Rank 1
noman nadeem asked on 27 Aug 2009, 06:15 AM
Hello.......!
how to place image in rad cube , 
can we place image in rad cube side
below is the code where i used image control in the stack panel under the  cube but in run time no image is shown , i place image on the root.


<Grid x:Name="LayoutRoot" Background="#FF5C7590">
        <telerikNavigation:RadCube x:Name="RadCube1" IsRotateOnStart="True" XWidth="360"
                YWidth="360" ZWidth="360" HorizontalAlignment="Center" VerticalAlignment="Center">

                 
            <StackPanel Background="#BF9B2D"  Width="360" Height="360" >
                <Image Grid.Row="0" Source="MyImage.jpg" Stretch="Fill" Height="25"></Image>
               
                <TextBlock Text="Education" FontSize="20" Foreground="DodgerBlue"  ></TextBlock>

                <Line     X1="0" Y1="50"    X2="360" Y2="50"     Stroke="Black"     StrokeThickness="4" />

                <TextBlock  x:Name="headingname" Text="{Binding headingname}"  FontSize="18" Foreground="Black" TextAlignment="Center"  ></TextBlock>
               
                <TextBlock x:Name="subheadingname" Text="{Binding subheadingname}" FontSize="16" Foreground="DarkGoldenrod"  TextAlignment="Left"  ></TextBlock>
                <TextBlock x:Name="detailtext" Text="{Binding detailtext}" FontSize="12" Foreground="DarkSlateBlue"   TextAlignment="Left"   ></TextBlock>
            
                
 </StackPanel>

 </telerikNavigation:RadCube>

 </Grid>

Regards,
noman

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 27 Aug 2009, 06:27 AM
Hello noman nadeem,

Are you sure that the path to your image is correct. Basically you just need to declare the image element inside the cube. Try render the image outside of the cube first and then inside the cube.

Kind regards,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
noman nadeem
Top achievements
Rank 1
answered on 27 Aug 2009, 07:58 AM
Hi!
thanks dear image is now in cube but now problem is that i used textblock or some other controls in side of cube but now the controls is hide image is showing in foreground and all my data or control is in background
i want to show image in background just like background color
thanks
regards
noman
0
Valentin.Stoychev
Telerik team
answered on 27 Aug 2009, 08:24 AM
Hello noman nadeem,

I can advise you to first implement your layout out of the cube, to that it is working there and then just place it inside the Cube. The Cube control will not make any adjustments to your layout.

All the best,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Cube
Asked by
noman nadeem
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
noman nadeem
Top achievements
Rank 1
Share this question
or