how to place image in cube !

4 posts, 0 answers
  1. noman nadeem
    noman nadeem avatar
    27 posts
    Member since:
    Aug 2009

    Posted 27 Aug 2009 Link to this post

    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
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 27 Aug 2009 Link to this post

    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.
  3. DevCraft banner
  4. noman nadeem
    noman nadeem avatar
    27 posts
    Member since:
    Aug 2009

    Posted 27 Aug 2009 Link to this post

    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
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 27 Aug 2009 Link to this post

    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.
Back to Top