Nextrek
@ 660
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<UserControl x:Class="SmartCharging.ChargeRating" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:SmartCharging" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Name="ThisControl" d:DesignHeight="300" xmlns:converter="using:SmartCharging.Converter" d:DesignWidth="400"> <UserControl.Resources> <converter:NumberToChargetImageConverter x:Key="NumberToChargetImageConverter" ></converter:NumberToChargetImageConverter> </UserControl.Resources> <Grid> <StackPanel x:Name="ChargesContainer" Orientation="Horizontal" Height="40"> <Image Source="{Binding Path=Value, ElementName=ThisControl, Converter={StaticResource NumberToChargetImageConverter}, ConverterParameter=1}" Tapped="Image_Tapped_1" ></Image> <Image Source="{Binding Path=Value, ElementName=ThisControl, Converter={StaticResource NumberToChargetImageConverter}, ConverterParameter=2}" Tapped="Image_Tapped_2" ></Image> <Image Source="{Binding Path=Value, ElementName=ThisControl, Converter={StaticResource NumberToChargetImageConverter}, ConverterParameter=3}" Tapped="Image_Tapped_3"></Image> <Image Source="{Binding Path=Value, ElementName=ThisControl, Converter={StaticResource NumberToChargetImageConverter}, ConverterParameter=4}" Tapped="Image_Tapped_4"></Image> <Image Source="{Binding Path=Value, ElementName=ThisControl, Converter={StaticResource NumberToChargetImageConverter}, ConverterParameter=5}" Tapped="Image_Tapped_5"></Image> </StackPanel> </Grid> </UserControl> |