X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2FTizen.NUI%2Fsrc%2Fpublic%2FXamlBinding%2FResourceDictionary.cs;h=50fc3ce25d751c7b67e7c9ea0f4fc7d9607e0662;hb=586ca8ec7df212769ef5ddfb81a7c4163ec819b7;hp=10510906cc9d964297d9eda8138aefe6fd0b1916;hpb=bd5c699d69db44c93d8812ea9f91a9df2db4e639;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.NUI/src/public/XamlBinding/ResourceDictionary.cs b/src/Tizen.NUI/src/public/XamlBinding/ResourceDictionary.cs index 1051090..50fc3ce 100755 --- a/src/Tizen.NUI/src/public/XamlBinding/ResourceDictionary.cs +++ b/src/Tizen.NUI/src/public/XamlBinding/ResourceDictionary.cs @@ -25,6 +25,8 @@ using System.Globalization; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; + +using Tizen.NUI.Binding.Internals; using Tizen.NUI.Xaml; namespace Tizen.NUI.Binding @@ -77,19 +79,25 @@ namespace Tizen.NUI.Binding } /// - /// Gets or sets the URI of the merged resource dictionary. + /// Gets or sets the resource dictionary. /// - /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. + /// Internal using, will never open. [EditorBrowsable(EditorBrowsableState.Never)] [TypeConverter(typeof(RDSourceTypeConverter))] - public Uri Source + public ResourceDictionary Source { - get { return source; } + get + { + return this; + } set { - if (source == value) - return; - throw new InvalidOperationException("Source can only be set from XAML."); //through the RDSourceTypeConverter + OnValuesChanged(value.ToArray()); + + foreach (var pair in value) + { + Add(pair.Key, pair.Value); + } } }