-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from Eficaz-Sistemas/master
Release 6.1.6
- Loading branch information
Showing
34 changed files
with
513 additions
and
204 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
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
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
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
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
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
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
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
99 changes: 99 additions & 0 deletions
99
src/Desktop/EficazFramework.WPF/Application/ApplicationDefinition.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
namespace EficazFramework.Application; | ||
|
||
public static class ApplicationDefinitionHelpers | ||
{ | ||
public static WpfApplicationTarget Wpf([NotNull] this ApplicationDefinition applicationDefinition) => | ||
(WpfApplicationTarget)applicationDefinition.Targets["WPF"]; | ||
|
||
|
||
} | ||
|
||
|
||
/// <summary> | ||
/// Wrapper class for <see cref="EficazFramework.Application.ApplicationTarget.Properties"/> parameters for Blazor target. | ||
/// </summary> | ||
public sealed class WpfApplicationTarget : ApplicationTarget | ||
{ | ||
public WindowState StartWindowState | ||
{ | ||
get | ||
{ | ||
if (!Properties.ContainsKey("StartWindowState")) | ||
Properties["StartWindowState"] = WindowState.Normal; | ||
return (WindowState)Properties["StartWindowState"]; | ||
} | ||
set => Properties["StartWindowState"] = value; | ||
} | ||
|
||
//public bool Resizable | ||
//{ | ||
// get | ||
// { | ||
// if (!Properties.ContainsKey("Resizable")) | ||
// Properties["Resizable"] = true; | ||
// return (bool)Properties["Resizable"]; | ||
// } | ||
// set => Properties["Resizable"] = value; | ||
//} | ||
|
||
|
||
public int OffsetX | ||
{ | ||
get | ||
{ | ||
if (!Properties.ContainsKey("OffsetX")) | ||
Properties["OffsetX"] = 15; | ||
return (int)Properties["OffsetX"]; | ||
} | ||
|
||
set => Properties["OffsetX"] = value; | ||
} | ||
|
||
public int OffsetY | ||
{ | ||
get | ||
{ | ||
if (!Properties.ContainsKey("OffsetY")) | ||
Properties["OffsetY"] = 15; | ||
return (int)Properties["OffsetY"]; | ||
} | ||
set => Properties["OffsetY"] = value; | ||
} | ||
|
||
|
||
public int Width | ||
{ | ||
get | ||
{ | ||
if (!Properties.ContainsKey("Width")) | ||
Properties["Width"] = 425; | ||
return (int)Properties["Width"]; | ||
} | ||
set => Properties["Width"] = value; | ||
} | ||
|
||
public int Height | ||
{ | ||
get | ||
{ | ||
if (!Properties.ContainsKey("Height")) | ||
Properties["Height"] = 200; | ||
return (int)Properties["Height"]; | ||
} | ||
set => Properties["Height"] = value; | ||
} | ||
|
||
|
||
public int ZIndex | ||
{ | ||
get | ||
{ | ||
if (!Properties.ContainsKey("ZIndex")) | ||
Properties["ZIndex"] = 1; | ||
return (int)Properties["ZIndex"]; | ||
} | ||
internal set => Properties["ZIndex"] = value; | ||
} | ||
|
||
|
||
} |
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
Oops, something went wrong.