diff options
-rw-r--r-- | Xamarin.PropertyEditing.Windows/PropertyButton.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Windows/PropertyButton.cs b/Xamarin.PropertyEditing.Windows/PropertyButton.cs index 1eee443..d4d41e7 100644 --- a/Xamarin.PropertyEditing.Windows/PropertyButton.cs +++ b/Xamarin.PropertyEditing.Windows/PropertyButton.cs @@ -157,7 +157,7 @@ namespace Xamarin.PropertyEditing.Windows { var panel = this.FindPropertiesHost(); var pvm = (PropertyViewModel) DataContext; - e.Resource = ResourceSelectorWindow.RequestResource (panel, pvm.ResourceProvider, pvm.Editors.Select (ed => ed.Target), pvm.Property, e.Resource); + e.Resource = ResourceSelectorWindow.RequestResource (panel, pvm.TargetPlatform.ResourceProvider, pvm.Editors.Select (ed => ed.Target), pvm.Property, e.Resource); } private void OnCreateResourceRequested (object sender, CreateResourceRequestedEventArgs e) @@ -165,7 +165,7 @@ namespace Xamarin.PropertyEditing.Windows var panel = this.FindPropertiesHost(); var pvm = (PropertyViewModel) DataContext; - var result = CreateResourceWindow.CreateResource (panel, pvm.ResourceProvider, pvm.Editors.Select (oe => oe.Target), pvm.Property); + var result = CreateResourceWindow.CreateResource (panel, pvm.TargetPlatform.ResourceProvider, pvm.Editors.Select (oe => oe.Target), pvm.Property); e.Source = result.Item1; e.Name = result.Item2; } |