コード例 #1
0
 private void OnResourcesChanged(object sender, ResourcesChangedEventArgs e)
 {
     if (_changeHandlers == null)
     {
         return;
     }
     foreach (Action <object, ResourcesChangedEventArgs> handler in _changeHandlers)
     {
         handler(this, e);
     }
 }
コード例 #2
0
 internal override void OnResourcesChanged(object sender, ResourcesChangedEventArgs e)
 {
     if (e == ResourcesChangedEventArgs.StyleSheets)
     {
         ApplyStyleSheets();
     }
     else
     {
         base.OnResourcesChanged(sender, e);
     }
 }
コード例 #3
0
 internal virtual void OnParentResourcesChanged(object sender, ResourcesChangedEventArgs e)
 {
     if (e == ResourcesChangedEventArgs.StyleSheets)
     {
         ApplyStyleSheetsOnParentSet();
     }
     else
     {
         OnParentResourcesChanged(e.Values);
     }
 }
コード例 #4
0
ファイル: Element.cs プロジェクト: zxyang178/Xamarin.Forms
 internal void OnResourcesChanged(object sender, ResourcesChangedEventArgs e)
 {
     OnResourcesChanged(e.Values);
 }
コード例 #5
0
 void Item_ValuesChanged(object sender, ResourcesChangedEventArgs e)
 {
     OnValuesChanged(e.Values.ToArray());
 }