예제 #1
0
        /// <summary>
        /// Command handler for ChangeSkinCommand
        /// </summary>
        private void ChangeSkin(object sender, ExecutedRoutedEventArgs e)
        {
            ResourceDictionary rd = new ResourceDictionary();

            rd.MergedDictionaries.Add(Application.LoadComponent(new Uri(e.Parameter as string, UriKind.Relative)) as ResourceDictionary);
            Application.Current.Resources = rd;

            // save the skin setting
            appSettings.Skin = e.Parameter as string;
            appSettings.Save();

            family.OnContentChanged();
            PersonInfoControl.OnSkinChanged();
        }
예제 #2
0
 /// <summary>
 /// The focus can be set only after the animation has stopped playing.
 /// </summary>
 private void ShowPersonInfo_StoryboardCompleted(object sender, EventArgs e)
 {
     PersonInfoControl.SetDefaultFocus();
 }