Fix datacontext not added to mvvmlight pages
This commit is contained in:
Родитель
54304293c4
Коммит
c784b85435
|
@ -9,8 +9,8 @@ namespace Microsoft.Templates.Core.PostActions.Catalog.Merge
|
|||
public static class IEnumerableExtensions
|
||||
{
|
||||
private const string MacroBeforeMode = "^^";
|
||||
private const string MacroStartGroup = "{{";
|
||||
private const string MarcoEndGroup = "}}";
|
||||
private const string MacroStartGroup = "{[{";
|
||||
private const string MarcoEndGroup = "}]}";
|
||||
|
||||
public static int SafeIndexOf(this IEnumerable<string> source, string item, int skip)
|
||||
{
|
||||
|
|
|
@ -22,12 +22,12 @@ namespace App38
|
|||
var s = "";
|
||||
}
|
||||
|
||||
//{{
|
||||
//{[{
|
||||
private static void ThisIsANewMethod()
|
||||
{
|
||||
//INSIDE NEW METHOD!!
|
||||
}
|
||||
//}}
|
||||
//}]}
|
||||
|
||||
protected override void OnActivated(IActivatedEventArgs args)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<Page
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
DataContext={Binding uct.ItemNameViewModel, Source={StaticResource Locator}}
|
||||
DataContext="{Binding uct.ItemNameViewModel, Source={StaticResource Locator}}"
|
||||
mc:Ignorable="d">
|
||||
</Page>
|
Загрузка…
Ссылка в новой задаче