This commit is contained in:
Nikola Metulev 2017-08-28 10:13:22 -07:00
Родитель f956cd7bd9
Коммит 1bf0c83154
4 изменённых файлов: 25 добавлений и 7 удалений

Просмотреть файл

@ -193,9 +193,15 @@ namespace Microsoft.Toolkit.Uwp.SampleApp
}
#if !DEBUG // don't cache for debugging perpuses so it always gets the latests
if (string.IsNullOrWhiteSpace(_cachedDocumentation) && StorageFileHelper.IsFileNameValid(filename))
if (string.IsNullOrWhiteSpace(_cachedDocumentation))
{
_cachedDocumentation = await StorageFileHelper.ReadTextFromLocalCacheFileAsync(filename);
try
{
_cachedDocumentation = await StorageFileHelper.ReadTextFromLocalCacheFileAsync(filename);
}
catch (Exception)
{
}
}
#endif

Просмотреть файл

@ -595,7 +595,7 @@
"XamlCodeFile": "SurfaceDialTextboxCode.bind",
"Icon": "/SamplePages/SurfaceDialTextbox/SurfaceDialTextbox.png",
"BadgeUpdateVersionRequired": "Anniversary Update required",
"DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/extensions/SurfaceDialTextbox.md"
"DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/extensions/SurfaceDialTextboxHelper.md"
}
]
},

Просмотреть файл

@ -53,10 +53,22 @@ namespace Microsoft.Toolkit.Uwp.UI.Controls.TextToolbarSymbols
~Symbol()
{
Dispatcher?.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
try
{
isEnabledWatcher?.Dispose();
});
Dispatcher?.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
try
{
isEnabledWatcher?.Dispose();
}
catch (System.Exception)
{
}
});
}
catch (System.Exception)
{
}
}
}
}

Просмотреть файл

@ -250,7 +250,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Extensions
var contentpropname = ContentPropertySearch(element.GetType());
if (contentpropname != null)
{
return element.GetType().GetProperty(contentpropname).GetValue(element) as UIElement;
return element.GetType()?.GetProperty(contentpropname)?.GetValue(element) as UIElement;
}
return null;