-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProgressDialog cannot find the AccentColorBrush Resources #1149
Comments
Where are you putting those resources? App.xaml or are you putting it in the top level of your MetroWindow? |
@Amrykid my application is a class library(类库), and it doesn't have the default app.xaml, so i can only put the ResourceDictionary under my MetroWindow, i know this causes this issue now. when i try to add app.xaml, and make it the ApplicationDefination manually, it causes many new isuue, and the application cannot run. i have sloved the System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='MahApps.Metro.Controls.MetroWindow', AncestorLevel='1''. BindingExpression:Path=ActualWidth; DataItem=null; target element is 'MetroProgressBar' (Name='PART_ProgressBar'); target property is 'Width' (type 'Double'), just change the Controls\Dialogs\ProgressDialog.cs, ProgressBarForeground = this.FindResource("AccentColorBrush") as Brush; this code ensure the application find the resources... when it comes to the message dialog, i haven't known how to solve... |
@ye4241 Where are you adding the resources to? |
@Amrykid the class library cannot define the ApplicationDefination, so use the Windows.Resources, I know it caused this issue, don't know how to solve. when it comes to the New ThemeManager, can this solve this issue ( when a application don't have the App.xaml)? |
Add all ResourceDictionary, still show cannot find the AccentColorBrush Resources when i used the MetroDialogColorScheme.Theme.
i try to track this error still no answer.Only follow shows in the debug when i try to close the progress dialog.
i've see the PART_ProgressBar, but i seems ok...please help me out,i need the progress dialog works.
The text was updated successfully, but these errors were encountered: