This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<UserControl x:Class="AssetTracker.Views.VersionView" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="clr-namespace:AssetTracker.UserControls" xmlns:cm="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:Triggers="clr-namespace:AssetTracker.Triggers"> | |
<DockPanel LastChildFill="True"> | |
<local:HyperlinkButton DockPanel.Dock="Top" x:Name="NewLicense" HorizontalAlignment="Right" > | |
<TextBlock Text="+ Ny lisens" /> | |
</local:HyperlinkButton> | |
<ListBox x:Name="Licenses" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Common initialization | |
var xVal = xVal || {}; | |
xVal.Plugins = xVal.Plugins || {}; | |
xVal.Messages = xVal.Messages || {}; | |
xVal.AttachValidator = function(elementPrefix, rulesConfig, options, pluginName) { | |
if (pluginName != null) | |
this.Plugins[pluginName].AttachValidator(elementPrefix, rulesConfig, options); | |
else | |
for (var key in this.Plugins) { | |
this.Plugins[key].AttachValidator(elementPrefix, rulesConfig, options); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xVal.AttachValidator(null, | |
{ | |
"Fields": [ | |
{ | |
"FieldName": "CompanyCode", | |
"FieldRules": [ | |
{ | |
"RuleName": "Required", | |
"RuleParameters": { | |