MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
Can not find resource path
Open
Nobody has claimed this yet.
bug
evaluation required
- Dominant language
- C#
- Stars
- 16.3k
- Forks
- 3.5k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 8
Description
Bug explanation
`
<!--#region Resource-->
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<materialDesign:BundledTheme
BaseTheme="Light"
PrimaryColor="DeepPurple"
SecondaryColor="Lime" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<!--#endregion-->
<DockPanel>
<StackPanel>
<Button
Width="100"
Height="50"
Content="Hi"
Style="{StaticResource MaterialDesignPaperSecondaryLightButton}" />
<ComboBox
Width="200"
Margin="10"
Style="{StaticResource MaterialDesignOutlinedComboBox}">
<materialDesign:HintAssist.Hint>
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome
Width="15"
Height="15"
Foreground="LightGray"
Icon="Search" />
<TextBlock Margin="6,0,0,0" Text="Category..." />
</StackPanel>
</materialDesign:HintAssist.Hint>
<ComboBoxItem Content="Option 1" />
<ComboBoxItem Content="Option 2" />
<ComboBoxItem Content="Option 3" />
</ComboBox>
</StackPanel>
</DockPanel>
`
with this code I got the message "System.Exception: Set property 'System.Windows.ResourceDictionary.Source' threw an exception," I am developing in Revit Api 2023
Version
5.2.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the embedded WPF XAML in TestView and reproduce the ResourceDictionary.Source exception in Revit API 2023 with MaterialDesignThemes.Wpf 5.2.1. Check the referenced pack URI and resource availability; done means TestView loads without the exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100