-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d676be
commit 47ba7e2
Showing
3 changed files
with
7 additions
and
9 deletions.
There are no files selected for viewing
8 changes: 2 additions & 6 deletions
8
src/Samples/Common/Views/FeatureSamples/MarkupControl/CommandAsProperty.dotcontrol
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
@viewModel System.String, mscorlib | ||
@baseType DotVVM.Samples.Common.Views.FeatureSamples.MarkupControl.CommandAsProperty, DotVVM.Samples.Common | ||
|
||
<%-- When uncommented, it produces an error --%> | ||
<%-- In Release mode, the error that is really hard to debug (maybe it was caused because the control was loaded from embedded resource). --%> | ||
<%--<dot:Button Text="{value: _this}" Click="{command: _control.Click}" />--%> | ||
|
||
|
||
<%--The following with ToString works somehow and I am not sure by what magic--%> | ||
<%-- both options are legit --%> | ||
<dot:Button Text="{value: _this}" Click="{command: _control.Click}" /> | ||
<dot:Button Text="{value: _this}" Click="{staticCommand: _control.Click}" /> |
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