bug fixes for release mode
This commit is contained in:
Родитель
f956cd7bd9
Коммит
1bf0c83154
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче