Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Set width of HubTile based on resolution only using XAML

$
0
0

UPD: If I don't set height and width so hubtiles looks ok on 720p and u

Here is my xaml:      

      <DataTemplate x:Key="RadTileItemTemplate">
        <telerik:RadHubTile
          UpdateInterval="0:0:3"
          TitleTemplate="{StaticResource TileTitleTemplate}"
          Notification="Notificiation"
          NotificationTemplate="{StaticResource TileNotificationTemplate}"
          Background="{StaticResource TransparentTheme}"
          IsFrozen="false"
           Margin="6">
          <telerik:RadHubTile.BackContentTemplate>
            <DataTemplate>
              <StackPanel Margin="16">
                <TextBlock Text="{Binding Information}" TextWrapping="Wrap"/>
              </StackPanel>
            </DataTemplate>
          </telerik:RadHubTile.BackContentTemplate>
        </telerik:RadHubTile>
      </DataTemplate>

      <HubSection>
        <DataTemplate>
          <GridView
            Width="144"
            Height="144"
            ItemsSource="{Binding Items, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
            AutomationProperties.AutomationId="ItemGridView"
            AutomationProperties.Name="Items In Group"
            ItemTemplate="{StaticResource RadTileItemTemplate}"
            SelectionMode="None"
            IsItemClickEnabled="True"
            ContinuumNavigationTransitionInfo.ExitElementContainer="True"
            Name="ActionItem"
            micro:Message.Attach="[Event ItemClick] = [Action OpenSection($eventArgs)]">
          </GridView>
        </DataTemplate>
      </HubSection>


Viewing all articles
Browse latest Browse all 94857

Trending Articles