Guest User

Untitled

a guest
Jun 13th, 2020
18
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <Window xmlns="https://github.com/avaloniaui"
  2.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3.        xmlns:vm="clr-namespace:TepelneCerpadlo.ViewModels;assembly=TepelneCerpadlo"
  4.        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5.        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6.        mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="480"
  7.        xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
  8.        xmlns:ia="clr-namespace:Avalonia.Xaml.Interactions.Core;assembly=Avalonia.Xaml.Interactions"
  9.        Width="800" Height="480"
  10.        x:Class="TepelneCerpadlo.Views.MainScreenView"
  11.        Background="Blue"
  12.        Icon="avares://TepelneCerpadlo/Assets/avalonia-logo.ico"
  13.        Title="TepelneCerpadlo">
  14.  
  15.   <i:Interaction.Behaviors>
  16.     <ia:EventTriggerBehavior EventName="Opened">
  17.       <ia:InvokeCommandAction Command="{Binding InitializedCommand}" />
  18.     </ia:EventTriggerBehavior>
  19.   </i:Interaction.Behaviors>
  20.  
  21.   <Design.DataContext>
  22.     <vm:MainScreenViewModel/>
  23.   </Design.DataContext>
  24.  
  25.   <Grid>
  26.     <Grid.ColumnDefinitions>
  27.       <ColumnDefinition Width="*" />
  28.       <ColumnDefinition Width="*" />
  29.     </Grid.ColumnDefinitions>
  30.    
  31.     <Grid Grid.Column="0">
  32.       <Grid.RowDefinitions>
  33.         <RowDefinition Height="4*" />
  34.         <RowDefinition Height="10*" />
  35.         <RowDefinition Height="*" />
  36.         <RowDefinition Height="3*" />
  37.         <RowDefinition Height="*" />
  38.         <RowDefinition Height="9*" />
  39.         <RowDefinition Height="*" />
  40.       </Grid.RowDefinitions>
  41.      
  42.       <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  43.         <TextBlock Text="{Binding Temp}" FontSize="145" />
  44.         <TextBlock Text=" °" FontSize="90" FontFamily="Times New Roman" />
  45.         <TextBlock Text="C" FontSize="90" />
  46.       </StackPanel>
  47.      
  48.       <Grid Grid.Row="3">
  49.         <Grid.ColumnDefinitions>
  50.           <ColumnDefinition Width="*" />
  51.           <ColumnDefinition Width="3*" />
  52.           <ColumnDefinition Width="7*" />
  53.           <ColumnDefinition Width="3*" />
  54.           <ColumnDefinition Width="7*" />
  55.           <ColumnDefinition Width="*" />
  56.         </Grid.ColumnDefinitions>
  57.        
  58.         <Image Grid.Column="1" Margin="5" Source="avares://TepelneCerpadlo/Assets/Icons/power.png" />
  59.         <StackPanel Grid.Column="2" Margin="5,0,0,0" Orientation="Horizontal" VerticalAlignment="Center" >
  60.           <TextBlock Text="{Binding Power}" />
  61.           <TextBlock Text=" W" />
  62.         </StackPanel>
  63.         <Image Grid.Column="3" Margin="5" Source="avares://TepelneCerpadlo/Assets/Icons/efficiency.png" />
  64.         <StackPanel Grid.Column="4" Margin="5,0,0,0" Orientation="Horizontal" VerticalAlignment="Center" >
  65.           <TextBlock Text="{Binding Efficiency}" />
  66.           <TextBlock Text=" %" />
  67.         </StackPanel>
  68.       </Grid>
  69.       <Grid Grid.Row="5">
  70.         <Grid.ColumnDefinitions>
  71.           <ColumnDefinition Width="*" />
  72.           <ColumnDefinition Width="*" />
  73.           <ColumnDefinition Width="*" />
  74.           <ColumnDefinition Width="*" />
  75.           <ColumnDefinition Width="*" />
  76.         </Grid.ColumnDefinitions>
  77.         <Grid.RowDefinitions>
  78.           <RowDefinition Height="*" />
  79.           <RowDefinition Height="*" />
  80.           <RowDefinition Height="*" />
  81.         </Grid.RowDefinitions>
  82.         <Image Grid.Row="0" Grid.Column="1" Margin="5" Source="avares://TepelneCerpadlo/Assets/Icons/compressor1.png" />
  83.         <Image Grid.Row="0" Grid.Column="2" Margin="5" Source="avares://TepelneCerpadlo/Assets/Icons/compressor2.png" />
  84.         <Image Grid.Row="0" Grid.Column="3" Margin="5" Source="avares://TepelneCerpadlo/Assets/Icons/heating-element.png" />
  85.         <Image Grid.Row="1" Grid.Column="1" Margin="5" Source="avares://TepelneCerpadlo/Assets/Icons/fan.png" />
  86.         <Image Grid.Row="1" Grid.Column="2" Margin="5" Source="avares://TepelneCerpadlo/Assets/Icons/pump.png" />
  87.         <Image Grid.Row="1" Grid.Column="3" Margin="5" Source="avares://TepelneCerpadlo/Assets/Icons/three-way-valve.png" />
  88.         <Image Grid.Row="2" Grid.Column="1" Margin="5" Source="avares://TepelneCerpadlo/Assets/Icons/warning.png" />
  89.         <Image Grid.Row="2" Grid.Column="2" Margin="5" Source="avares://TepelneCerpadlo/Assets/Icons/leak.png" />
  90.       </Grid>
  91.     </Grid>
  92.     <Grid Grid.Column="1">
  93.       <Grid.RowDefinitions>
  94.         <RowDefinition Height="*" />
  95.         <RowDefinition Height="*" />
  96.         <RowDefinition Height="*" />
  97.         <RowDefinition Height="*" />
  98.         <RowDefinition Height="*" />
  99.       </Grid.RowDefinitions>
  100.       <TextBlock Text="{Binding Clock}" Margin="10,5" HorizontalAlignment="Right" VerticalAlignment="Top" />
  101.       <Button Grid.Row="1" Content="NASTAVENÍ TEPLOTY" Margin="15,15,15,10"/>
  102.       <Button Grid.Row="2" Content="MENU" Margin="15,10"/>
  103.       <Button Grid.Row="3" Content="VOLBA MODU" Margin="15,10,15,15"/>
  104.     </Grid>
  105.   </Grid>
  106.  
  107. </Window>
RAW Paste Data