MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Can not find resource path

オープン
#3,879 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug evaluation required
主要言語
C#
スター
16.3k
フォーク
3.5k
平均マージ
1日 22時間
マージ済み PR(30日)
8

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

TestView に埋め込まれた WPF XAML から始め、MaterialDesignThemes.Wpf 5.2.1 を使用して Revit API 2023 で ResourceDictionary.Source 例外を再現します。参照されている pack URI とリソースの可用性を確認します。TestView が例外なしで読み込まれれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
desktop
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。