This file contains hidden or 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
<Style TargetType="TextBox" x:Key="MaterialDesignFloatingHintTextBoxWithFocus" BasedOn="{StaticResource MaterialDesignFloatingHintTextBox}"> | |
<Style.Triggers> | |
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsVisible}" Value="True"> | |
<Setter Property="FocusManager.FocusedElement" Value="{Binding RelativeSource={RelativeSource Self}}"/> | |
</DataTrigger> | |
</Style.Triggers> | |
</Style> | |
<Style TargetType="PasswordBox" x:Key="PasswordBoxWithFocus" BasedOn="{StaticResource MaterialDesignPasswordBox}"> | |
<Style.Triggers> | |
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsVisible}" Value="True"> |
This file contains hidden or 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
public static class GuidUtil | |
{ | |
public static string ToCompressedString(this Guid guid) | |
{ | |
return Convert.ToBase64String(guid.ToByteArray()) | |
.Substring(0, 22) | |
.Replace('+', '-') | |
.Replace('/', '_'); | |
} |
This file contains hidden or 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
ko.components.register('toggle-switch', { | |
viewModel: function (params) { | |
this.checked = params.checked; | |
}, | |
template: '<label class="switch">' + | |
'<input type="checkbox" data-bind="checked: checked" />' + | |
'<span class="slider round"></span></label>' | |
}); |
This file contains hidden or 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
ko.bindingHandlers.datetimepicker = { | |
init: function (element, valueAccessor, allBindingsAccessor) { | |
/*! version : 4.17.45 | |
========================================================= | |
bootstrap-datetimejs | |
https://github.com/Eonasdan/bootstrap-datetimepicker | |
========================================================= | |
*/ | |
$(element).datetimepicker({ | |
icons: { |