summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml/ViewExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Xaml/ViewExtensions.cs')
-rw-r--r--Xamarin.Forms.Xaml/ViewExtensions.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Xaml/ViewExtensions.cs b/Xamarin.Forms.Xaml/ViewExtensions.cs
index fb8a612a..38d5becf 100644
--- a/Xamarin.Forms.Xaml/ViewExtensions.cs
+++ b/Xamarin.Forms.Xaml/ViewExtensions.cs
@@ -31,13 +31,13 @@ namespace Xamarin.Forms.Xaml
{
public static class Extensions
{
- public static TView LoadFromXaml<TView>(this TView view, Type callingType) where TView : BindableObject
+ public static TXaml LoadFromXaml<TXaml>(this TXaml view, Type callingType)
{
XamlLoader.Load(view, callingType);
return view;
}
- internal static TView LoadFromXaml<TView>(this TView view, string xaml) where TView : BindableObject
+ internal static TXaml LoadFromXaml<TXaml>(this TXaml view, string xaml)
{
XamlLoader.Load(view, xaml);
return view;