Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit ab84998c authored by Michael KRISPER's avatar Michael KRISPER
Browse files

[VECTO3GUI2020] Cleaned up project file

parent bcbe72cc
Loading
......@@ -230,10 +230,6 @@
</DataTemplate>
<!--#endregion-->
<DataTemplate DataType="{x:Type local:TestViewModel}">
<local:Test></local:Test>
</DataTemplate>
<DataTemplate DataType="{x:Type common:AdditionalJobInfoViewModelMultiStage}">
<additionaljobInfoViews:AdditionalJobInfoViewMultiStage/>
</DataTemplate>
......
<UserControl x:Class="VECTO3GUI2020.Test"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:VECTO3GUI2020"
xmlns:customControls="clr-namespace:VECTO3GUI2020.Views.Multistage.CustomControls"
xmlns:helper="clr-namespace:VECTO3GUI2020.Helper"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" d:DataContext="{d:DesignInstance local:TestViewModel }">
<Grid>
<!--https://www.thomasclaudiushuber.com/2008/01/10/bind-to-methods-with-objectdataprovider/-->
<StackPanel>
<!--<customControls:MultiStageParameter Content="{Binding ConvertedSI}" DummyContent="{Binding Source={StaticResource milimeterDummy}}"/>
<customControls:MultiStageParameter Content="{Binding ConvertedSI1}" DummyContent="{Binding Source={StaticResource milimeterDummy}}"/>
<customControls:MultiStageParameter Content="{Binding Meter}"/>-->
<customControls:MultiStageParameter Mode="COMBOBOX" Content="{Binding HeatPumpMode}" EditingEnabled="{Binding enabled}" ListItems="{Binding HeatPumpModeListItems}"></customControls:MultiStageParameter>
<!--<customControls:MultiStageParameter Mode="COMBOBOX" Content="{Binding HeatPumpMode2}" EditingEnabled="{Binding enabled}"></customControls:MultiStageParameter>-->
<!--<customControls:MultiStageParameter Mode="TEXTBOX" Content="{Binding TestString, ValidatesOnExceptions=True}"></customControls:MultiStageParameter>-->
</StackPanel>
</Grid>
</UserControl>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace VECTO3GUI2020
{
/// <summary>
/// Interaction logic for Test.xaml
/// </summary>
public partial class Test : UserControl
{
public Test()
{
InitializeComponent();
}
}
}
using System;
using TUGraz.VectoCommon.Utils;
using VECTO3GUI2020.Helper;
using VECTO3GUI2020.ViewModel.Implementation.Common;
using VECTO3GUI2020.ViewModel.Interfaces;
namespace VECTO3GUI2020
{
public class TestViewModel : ViewModelBase, IMainViewModel
{
private ConvertedSI _convertedSI;
public ConvertedSI ConvertedSI
{
get => _convertedSI;
set => SetProperty(ref _convertedSI, value);
}
private ConvertedSI _convertedSI1;
public ConvertedSI ConvertedSI1
{
get => _convertedSI1;
set => SetProperty(ref _convertedSI1, value);
}
private Meter _meter;
//private HeatPumpMode? _heatpumpMode;
private string _testString;
public Meter Meter
{
get => _meter;
set => SetProperty(ref _meter, value);
}
//public HeatPumpMode? HeatPumpMode
//{
// get => _heatpumpMode;
// set => SetProperty(ref _heatpumpMode, value);
//}
//private IList<HeatPumpMode> allowedValues = new List<HeatPumpMode>(){
// TUGraz.VectoCommon.BusAuxiliaries.HeatPumpMode.cooling,
// TUGraz.VectoCommon.BusAuxiliaries.HeatPumpMode.heating_and_cooling
//};
//private HeatPumpMode? _heatpumpMode2;
private bool _enabled;
public bool enabled { get => _enabled; set => SetProperty(ref _enabled, value); }
//public HeatPumpMode? HeatPumpMode2
//{
// get => _heatpumpMode2;
// set => SetProperty(ref _heatpumpMode2, value);
//}
//public ObservableCollection<Enum> HeatPumpModeListItems
//{
// get => new ObservableCollection<Enum>(allowedValues.Cast<Enum>());
//}
public String TestString
{
get => _testString;
set
{
if (string.IsNullOrEmpty(value)) {
throw new VectoEmptyFieldException();
}
SetProperty(ref _testString, value);
}
}
public TestViewModel()
{
_enabled = true;
}
}
}
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<!-- UAC Manifest Options
If you want to change the Windows User Account Control level replace the
requestedExecutionLevel node with one of the following.
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
<requestedExecutionLevel level="highestAvailable" uiAccess="false" />
Specifying requestedExecutionLevel element will disable file and registry virtualization.
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- A list of the Windows versions that this application has been tested on
and is designed to work with. Uncomment the appropriate elements
and Windows will automatically select the most compatible environment. -->
<!-- Windows Vista -->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />-->
<!-- Windows 7 -->
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />-->
<!-- Windows 8 -->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />-->
<!-- Windows 8.1 -->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />-->
<!-- Windows 10 -->
<!--<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />-->
</application>
</compatibility>
<!-- Indicates that the application is DPI-aware and will not be automatically scaled by Windows at higher
DPIs. Windows Presentation Foundation (WPF) applications are automatically DPI-aware and do not need
to opt in. Windows Forms applications targeting .NET Framework 4.6 that opt into this setting, should
also set the 'EnableWindowsFormsHighDpiAutoResizing' setting to 'true' in their app.config.
Makes the application long-path aware. See https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation -->
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
</windowsSettings>
</application>
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<!--
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
-->
</assembly>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment