WdTempAreaSet.xaml 2.91 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<flyctrllib:WindowBigClose  
    x:Class="FLY.IBC.UI.Client.UiModule.WdTempAreaSet"
    xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:FLY.IBC.UI.Client.UiModule" 
        xmlns:ut="clr-namespace:FLY.IBC.UI.Client.UnitTests"
        mc:Ignorable="d"
        Title="WdTempAreaSet" SizeToContent="WidthAndHeight" 
        Unloaded="WindowBigClose_Unloaded"
    >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.IBC.UI.Client;component/Themes/TempAreaPanelStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <Style TargetType="local:UcTcSet">
                <Setter Property="Margin" Value="5"/>
                <Setter Property="Number" Value="{Binding Number}"/>
                <Setter Property="PV" Value="{Binding TempPV}" />
23 24
                <Setter Property="SV" Value="{Binding TempSV,Mode=TwoWay}" />
                <Setter Property="IsRun" Value="{Binding IsHeatingSet,Mode=TwoWay}"/>
潘栩锋's avatar
潘栩锋 committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
                <Setter Property="IsOT1" Value="{Binding IsHeating}"/>
                <Setter Property="IsAT" Value="{Binding IsSelfAdjusting}"/>
                <Setter Property="IsOT2" Value="{Binding IsCooling}"/>
            </Style>
            <Style TargetType="local:UcTcAll">
                <Setter Property="Margin" Value="5"/>
            </Style>
            <ut:IbcServiceUt x:Key="viewModel"/>
            
        </ResourceDictionary>
    </Window.Resources>
    <Grid Background="{StaticResource Color_bottom}"  
          d:DataContext="{Binding Source={StaticResource viewModel},Path=TAreas[1]}">
        <StackPanel Orientation="Horizontal" Margin="10">
            <StackPanel>
                <local:UcTcSet DataContext="{Binding Temperatures[0]}"/>
                <local:UcTcSet DataContext="{Binding Temperatures[1]}"/>
            </StackPanel>
            <StackPanel>
                <local:UcTcSet DataContext="{Binding Temperatures[2]}"/>
                <local:UcTcSet DataContext="{Binding Temperatures[3]}"/>
            </StackPanel>
            <StackPanel>
48
                <local:UcTcAll Number="{Binding Number}" SV="{Binding AllTempSet,Mode=TwoWay}" IsAllRun="{Binding IsAllTempSame,Mode=TwoWay}"/>
潘栩锋's avatar
潘栩锋 committed
49 50 51 52 53 54 55 56 57 58 59 60
                <local:UcTcSet DataContext="{Binding Temperatures[4]}" />
            </StackPanel>
            
            <StackPanel>
                <Grid Height="40"/>
                <local:UcTcSet DataContext="{Binding Temperatures[5]}" />
            </StackPanel>
        </StackPanel>


    </Grid>
</flyctrllib:WindowBigClose>