개정판 a6f7f9b6
issue #1136: control 생성자에서 generic.xaml 제거 및 App.xaml 에 generic 추가
Change-Id: Ife79570df09c37a10104924afbd0caebc03f1244
MarkupToPDF/Controls/Etc/SignControl.cs | ||
---|---|---|
34 | 34 |
{ |
35 | 35 |
DefaultStyleKeyProperty.OverrideMetadata(typeof(SignControl), new FrameworkPropertyMetadata(typeof(SignControl))); |
36 | 36 |
//Application.Current.Resources.MergedDictionaries.Add(Application.LoadComponent(new Uri("/MarkupToPDF;Component/Themes/generic.xaml")) as ResourceDictionary); |
37 |
ResourceDictionary dictionary = new ResourceDictionary(); |
|
38 |
dictionary.Source = new Uri("/MarkupToPDF;component/themes/generic.xaml", UriKind.RelativeOrAbsolute); |
|
39 |
Application.Current.Resources.MergedDictionaries.Add(dictionary); |
|
40 |
System.Diagnostics.Debug.WriteLine("resource Count :" + Application.Current.Resources.MergedDictionaries.Count); |
|
37 |
//ResourceDictionary dictionary = new ResourceDictionary();
|
|
38 |
//dictionary.Source = new Uri("/MarkupToPDF;component/themes/generic.xaml", UriKind.RelativeOrAbsolute);
|
|
39 |
//Application.Current.Resources.MergedDictionaries.Add(dictionary);
|
|
40 |
//System.Diagnostics.Debug.WriteLine("resource Count :" + Application.Current.Resources.MergedDictionaries.Count);
|
|
41 | 41 |
} |
42 | 42 |
|
43 | 43 |
public void Dispose() |
44 | 44 |
{ |
45 |
GC.Collect(); |
|
46 |
GC.SuppressFinalize(this); |
|
45 |
//GC.Collect(); |
|
46 |
//GC.SuppressFinalize(this); |
|
47 |
this.Base_Image = null; |
|
47 | 48 |
} |
48 | 49 |
#region Dependency Properties |
49 | 50 |
public static readonly DependencyProperty UserIDProperty = DependencyProperty.Register( |
내보내기 Unified diff