Is it possible to have 2 tileView?

6 posts, 0 answers
  1. Jimmy
    Jimmy avatar
    3 posts
    Member since:
    Mar 2011

    Posted 11 Apr 2011 Link to this post

    i wanted to ask if it is possible for us to have 2 tileView in a single xaml?
    if yes, is there any solution for this?
    I've tried to bind it to different content template, yet it failed.
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 12 Apr 2011 Link to this post

    Hi Jimmy,

    Could you please elaborate more on what you mean when saying 2 tileView in a single xaml. Do you mean the following:

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <telerik:RadTileView Background="Orange">
            <telerik:RadTileViewItem Header="Item 0 - Left" />
            <telerik:RadTileViewItem Header="Item 1 - Left" />
            <telerik:RadTileViewItem Header="Item 2 - Left" />
            <telerik:RadTileViewItem Header="Item 3 - Left" />
        </telerik:RadTileView>
        <telerik:RadTileView Background="LightBlue" Grid.Column="1">
            <telerik:RadTileViewItem Header="Item 0 - Right" />
            <telerik:RadTileViewItem Header="Item 1 - Right" />
            <telerik:RadTileViewItem Header="Item 2 - Right" />
            <telerik:RadTileViewItem Header="Item 3 - Right" />
        </telerik:RadTileView>
    </Grid>

    Of which the result is:



    The best will be if you send me a sample project reproducing clearly the issue you are experiencing. This way I'll be better able to assist you.

    All the best,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jimmy
    Jimmy avatar
    3 posts
    Member since:
    Mar 2011

    Posted 12 Apr 2011 Link to this post

    Hey,

    You can access to the files at the link below:
    http://cid-cf257bf8abcc1e2e.office.live.com/browse.aspx/.Public/sample?uc=4

    I'm trying to integrate both of the interface together into a single xml that by default it is in collapse mode.
    Then, i can call it when ever i need to.
    Any solution i can do so?

  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 15 Apr 2011 Link to this post

    Hello Jimmy,

     We tried your project without providing a business data and we were unable to detect your issue completely. Could you please try to be more concrete when specifying your issue? You can work with x:names and this way we could get into your scenario quicker and provide you with a better advice. Thank you for your cooperation in advance.

    Kind regards,
    Petar Mladenov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Jimmy
    Jimmy avatar
    3 posts
    Member since:
    Mar 2011

    Posted 15 Apr 2011 Link to this post

    What i'm trying to ask here is i do not know the right way to bind 2 tile view into 2 different data template in a single xml. This is what i'm trying to ask from this forum. Perhaps, you can show me the right way to have 2 data template bind to 2 different tile view in a single xml. thank you.
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 21 Apr 2011 Link to this post

    Hi Jimmy,

    This could be achieved like so:
    <Window.Resources>
          <Style x:Key="firstStyle" TargetType="telerik:RadTileView">
              .....
          </Style>       
          <Style x:Key="secondStyle" TargetType="telerik:RadTileView">
              .....
          </Style>
     </Window.Resources>
       
     <Grid>   
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="300" />
          <ColumnDefinition Width="300" />
        </Grid.ColumnDefinitions>
        
        <telerik:RadTileView x:Name="leftTile" Style="{StaticResource firstStyle}" />
        <telerik:RadTileView x:Name="secondTile" Style="{StaticResource secondStyle}" Grid.Column="1"/>   
      </Grid>
    Let us know if this helped you or not.

    Regards,
    Petar Mladenov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for WPF is Visual Studio 2017 Ready