Skip to content

Can not find resource path #3879

@Cazorlas

Description

@Cazorlas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugevaluation requiredItems is pending review or evaluation by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions