migrate other tiles to new tilecontrol.
MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/BtcPrice/BtcPriceNormalTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/BtcPrice/BtcPriceNormalTileView.axaml
mc:Ignorable="d" d:DesignWidth="330" d:DesignHeight="330"
x:CompileBindings="True" x:DataType="vm:BtcPriceTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.BtcPrice.BtcPriceNormalTileView">
- <Border ClipToBounds="False" CornerRadius="5" Background="{DynamicResource TileRegionColor}" Margin="6" Padding="16" BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>
<TextBlock Text="BTC Price" DockPanel.Dock="Top" />
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="5" VerticalAlignment="Center">
- <PathIcon Data="{StaticResource paper_cash_regular}" Height="30" Width="35" Margin="0 0 20 0" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource paper_cash_regular}" Height="30" Width="35" Margin="0 0 20 0"
+ Foreground="{DynamicResource SystemAccentColor}" />
<TextBlock Text="{Binding BtcPrice, FallbackValue='53 540.00'}" FontSize="24" />
<TextBlock Text="USD" FontSize="24" />
</StackPanel>
</DockPanel>
- </Border>
</UserControl>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/BtcPrice/BtcPriceSmallTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/BtcPrice/BtcPriceSmallTileView.axaml
mc:Ignorable="d" d:DesignWidth="330" d:DesignHeight="150"
x:CompileBindings="True" x:DataType="vm:BtcPriceTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.BtcPrice.BtcPriceSmallTileView">
- <Border ClipToBounds="False" CornerRadius="5" Background="{DynamicResource TileRegionColor}" Margin="6" Padding="16" BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>
<TextBlock Text="BTC Price" DockPanel.Dock="Top" />
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="5" VerticalAlignment="Center">
- <PathIcon Data="{StaticResource paper_cash_regular}" Height="30" Width="35" Margin="0 0 20 0" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource paper_cash_regular}" Height="30" Width="35" Margin="0 0 20 0"
+ Foreground="{DynamicResource SystemAccentColor}" />
<TextBlock Text="{Binding BtcPrice, FallbackValue='53 540.00'}" FontSize="24" />
<TextBlock Text="USD" FontSize="24" />
</StackPanel>
</DockPanel>
- </Border>
</UserControl>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/BtcPrice/BtcPriceWideTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/BtcPrice/BtcPriceWideTileView.axaml
mc:Ignorable="d" d:DesignWidth="660" d:DesignHeight="330"
x:CompileBindings="True" x:DataType="vm:BtcPriceTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.BtcPrice.BtcPriceWideTileView">
- <Border ClipToBounds="False" CornerRadius="5" Background="{DynamicResource TileRegionColor}" Margin="6" Padding="16" BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>
<TextBlock Text="BTC Price" DockPanel.Dock="Top" />
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="5" VerticalAlignment="Center">
- <PathIcon Data="{StaticResource paper_cash_regular}" Height="30" Width="35" Margin="0 0 20 0" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource paper_cash_regular}" Height="30" Width="35" Margin="0 0 20 0"
+ Foreground="{DynamicResource SystemAccentColor}" />
<TextBlock Text="{Binding BtcPrice, FallbackValue='53 540.00'}" FontSize="24" />
<TextBlock Text="USD" FontSize="24" />
</StackPanel>
</DockPanel>
- </Border>
</UserControl>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/BtcPriceTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/BtcPriceTileView.axaml
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles"
xmlns:bp="clr-namespace:WalletWasabi.Fluent.Views.Wallets.Home.Tiles.BtcPrice"
+ xmlns:controls="clr-namespace:WalletWasabi.Fluent.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:CompileBindings="True" x:DataType="vm:BtcPriceTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.BtcPriceTileView">
- <Panel>
+ <controls:TileControl TileSize="{Binding CurrentTileSize}">
<bp:BtcPriceSmallTileView />
+ <controls:TileControl.LargeSizeContent>
<bp:BtcPriceNormalTileView />
+ </controls:TileControl.LargeSizeContent>
+ <controls:TileControl.WideSizeContent>
<bp:BtcPriceWideTileView />
- </Panel>
+ </controls:TileControl.WideSizeContent>
+ </controls:TileControl>
</UserControl>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/RoundStatus/RoundStatusNormalTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/RoundStatus/RoundStatusNormalTileView.axaml
mc:Ignorable="d" d:DesignWidth="330" d:DesignHeight="330"
x:CompileBindings="True" x:DataType="vm:RoundStatusTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.RoundStatus.RoundStatusNormalTileView">
- <Border ClipToBounds="False" CornerRadius="5" Background="{DynamicResource TileRegionColor}" Margin="6" Padding="16" BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>
<TextBlock Text="Mixing Status" DockPanel.Dock="Top" />
<Carousel Margin="0 10" VerticalAlignment="Center" SelectedIndex="{Binding SelectedIndex}">
</Carousel.PageTransition>
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="16">
- <PathIcon Data="{StaticResource people_regular}" Height="50" Width="50" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource people_regular}" Height="50" Width="50"
+ Foreground="{DynamicResource SystemAccentColor}" />
<StackPanel VerticalAlignment="Center">
<TextBlock Text="{Binding PeersRegistered}" FontSize="24" />
<TextBlock Text="Peers waiting to mix" Opacity="0.8" FontSize="12" />
</StackPanel>
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="16">
- <PathIcon Data="{StaticResource btc_logo}" Height="50" Width="50" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource btc_logo}" Height="50" Width="50"
+ Foreground="{DynamicResource SystemAccentColor}" />
<StackPanel VerticalAlignment="Center">
<TextBlock Text="4328 BTC" FontSize="24" />
<TextBlock Text="Waiting to be mixed" Opacity="0.8" FontSize="12" />
</StackPanel>
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="16">
- <PathIcon Data="{StaticResource timer_regular}" Height="50" Width="50" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource timer_regular}" Height="50" Width="50"
+ Foreground="{DynamicResource SystemAccentColor}" />
<StackPanel VerticalAlignment="Center">
<TextBlock Text="{Binding TimeLeftTillRoundTimeout}" FontSize="24" />
<TextBlock Text="Until next round" Opacity="0.8" FontSize="12" />
</StackPanel>
</Carousel>
</DockPanel>
- </Border>
</UserControl>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/RoundStatus/RoundStatusSmallTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/RoundStatus/RoundStatusSmallTileView.axaml
mc:Ignorable="d" d:DesignWidth="330" d:DesignHeight="150"
x:CompileBindings="True" x:DataType="vm:RoundStatusTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.RoundStatus.RoundStatusSmallTileView">
- <Border ClipToBounds="False" CornerRadius="5" Background="{DynamicResource TileRegionColor}" Margin="6" Padding="16" BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>
<TextBlock Text="Mixing Status" DockPanel.Dock="Top" />
<Carousel Margin="0 10" VerticalAlignment="Center" SelectedIndex="{Binding SelectedIndex}">
</Carousel.PageTransition>
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="16">
- <PathIcon Data="{StaticResource people_regular}" Height="50" Width="50" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource people_regular}" Height="50" Width="50"
+ Foreground="{DynamicResource SystemAccentColor}" />
<StackPanel VerticalAlignment="Center">
<TextBlock Text="{Binding PeersRegistered}" FontSize="24" />
<TextBlock Text="Peers waiting to mix" Opacity="0.8" FontSize="12" />
</StackPanel>
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="16">
- <PathIcon Data="{StaticResource btc_logo}" Height="50" Width="50" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource btc_logo}" Height="50" Width="50"
+ Foreground="{DynamicResource SystemAccentColor}" />
<StackPanel VerticalAlignment="Center">
<TextBlock Text="4328 BTC" FontSize="24" />
<TextBlock Text="Waiting to be mixed" Opacity="0.8" FontSize="12" />
</StackPanel>
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="16">
- <PathIcon Data="{StaticResource timer_regular}" Height="50" Width="50" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource timer_regular}" Height="50" Width="50"
+ Foreground="{DynamicResource SystemAccentColor}" />
<StackPanel VerticalAlignment="Center">
<TextBlock Text="{Binding TimeLeftTillRoundTimeout}" FontSize="24" />
<TextBlock Text="Until next round" Opacity="0.8" FontSize="12" />
</StackPanel>
</Carousel>
</DockPanel>
- </Border>
</UserControl>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/RoundStatus/RoundStatusWideTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/RoundStatus/RoundStatusWideTileView.axaml
mc:Ignorable="d" d:DesignWidth="660" d:DesignHeight="330"
x:CompileBindings="True" x:DataType="vm:RoundStatusTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.RoundStatus.RoundStatusWideTileView">
- <Border ClipToBounds="False" CornerRadius="5" Background="{DynamicResource TileRegionColor}" Margin="6" Padding="16" BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>
<TextBlock Text="Mixing Status" DockPanel.Dock="Top" />
<Carousel Margin="0 10" VerticalAlignment="Center" SelectedIndex="{Binding SelectedIndex}">
</Carousel.PageTransition>
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="16">
- <PathIcon Data="{StaticResource people_regular}" Height="50" Width="50" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource people_regular}" Height="50" Width="50"
+ Foreground="{DynamicResource SystemAccentColor}" />
<StackPanel VerticalAlignment="Center">
<TextBlock Text="{Binding PeersRegistered}" FontSize="24" />
<TextBlock Text="Peers waiting to mix" Opacity="0.8" FontSize="12" />
</StackPanel>
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="16">
- <PathIcon Data="{StaticResource btc_logo}" Height="50" Width="50" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource btc_logo}" Height="50" Width="50"
+ Foreground="{DynamicResource SystemAccentColor}" />
<StackPanel VerticalAlignment="Center">
<TextBlock Text="4328 BTC" FontSize="24" />
<TextBlock Text="Waiting to be mixed" Opacity="0.8" FontSize="12" />
</StackPanel>
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Spacing="16">
- <PathIcon Data="{StaticResource timer_regular}" Height="50" Width="50" Foreground="{DynamicResource SystemAccentColor}" />
+ <PathIcon Data="{StaticResource timer_regular}" Height="50" Width="50"
+ Foreground="{DynamicResource SystemAccentColor}" />
<StackPanel VerticalAlignment="Center">
<TextBlock Text="{Binding TimeLeftTillRoundTimeout}" FontSize="24" />
<TextBlock Text="Until next round" Opacity="0.8" FontSize="12" />
</StackPanel>
</Carousel>
</DockPanel>
- </Border>
</UserControl>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/RoundStatusTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/RoundStatusTileView.axaml
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles"
xmlns:rs="clr-namespace:WalletWasabi.Fluent.Views.Wallets.Home.Tiles.RoundStatus"
+ xmlns:controls="clr-namespace:WalletWasabi.Fluent.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:CompileBindings="True" x:DataType="vm:RoundStatusTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.RoundStatusTileView">
- <Panel>
+ <controls:TileControl TileSize="{Binding CurrentTileSize}">
<rs:RoundStatusSmallTileView />
+ <controls:TileControl.LargeSizeContent>
<rs:RoundStatusNormalTileView />
+ </controls:TileControl.LargeSizeContent>
+ <controls:TileControl.WideSizeContent>
<rs:RoundStatusWideTileView />
- </Panel>
+ </controls:TileControl.WideSizeContent>
+ </controls:TileControl>
</UserControl>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartNormalTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartNormalTileView.axaml
mc:Ignorable="d" d:DesignWidth="330" d:DesignHeight="330"
x:CompileBindings="True" x:DataType="vm:WalletPieChartTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.WalletPieChart.WalletPieChartNormalTileView">
- <Border ClipToBounds="False" CornerRadius="5" Background="{DynamicResource TileRegionColor}" Margin="6" Padding="16"
- BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>
<TextBlock Text="Wallet Privacy Status" DockPanel.Dock="Top" />
<DockPanel LastChildFill="True" TextBlock.FontSize="12"
</Panel>
</DockPanel>
</DockPanel>
- </Border>
</UserControl>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartSmallTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChart/WalletPieChartSmallTileView.axaml
mc:Ignorable="d" d:DesignWidth="330" d:DesignHeight="150"
x:CompileBindings="True" x:DataType="vm:WalletPieChartTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.WalletPieChart.WalletPieChartSmallTileView">
- <Border ClipToBounds="False" CornerRadius="5" Background="{DynamicResource TileRegionColor}" Margin="6" Padding="16"
- BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>
<TextBlock Text="Wallet Privacy Status" DockPanel.Dock="Top" />
<DockPanel LastChildFill="True" TextBlock.FontSize="12"
</ItemsRepeater>
</DockPanel>
</DockPanel>
- </Border>
-
</UserControl>
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChartTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletPieChartTileView.axaml
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="using:WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles"
xmlns:wpc="clr-namespace:WalletWasabi.Fluent.Views.Wallets.Home.Tiles.WalletPieChart"
+ xmlns:controls="clr-namespace:WalletWasabi.Fluent.Controls"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:CompileBindings="True" x:DataType="vm:WalletPieChartTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.WalletPieChartTileView">
- <Panel>
+ <controls:TileControl>
<wpc:WalletPieChartSmallTileView />
+ <controls:TileControl.LargeSizeContent>
<wpc:WalletPieChartNormalTileView />
+ </controls:TileControl.LargeSizeContent>
+ <controls:TileControl.WideSizeContent>
<wpc:WalletPieChartWideTileView />
- </Panel>
+ </controls:TileControl.WideSizeContent>
+ </controls:TileControl>
</UserControl>
\ No newline at end of file

migrate other tiles to new tilecontrol.