Skip to content
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

Could not load file or assembly 'PropertyTools.Wpf, PublicKeyToken=ea0c9f2b460934d0' or one of its dependencies. The system cannot find the file specified #5

Open
chebz opened this issue May 30, 2022 · 1 comment

Comments

@chebz
Copy link

chebz commented May 30, 2022

I've been trying to use your package in VSIX project. Everything works until I try creating a node, which throws an exception:
"System.IO.FileNotFoundException: 'Could not load file or assembly 'PropertyTools.Wpf, PublicKeyToken=ea0c9f2b460934d0' or one of its dependencies. The system cannot find the file specified.'

The code is pretty much copied from Calculator example:

        protected virtual void FlowChart_ContextMenuItem_Click(object sender, RoutedEventArgs e)
        {
            var menuItem = sender as MenuItem;
            var nodeType = menuItem.CommandParameter as Type;

            FlowChartView flowChartView = FlowChartViewModel.View;
            FlowChart flowChart = flowChartView.ViewModel.Model;
            flowChart.History.BeginTransaction("Creating node");
            {
                NodeGraphManager.CreateNode(
                    false, Guid.NewGuid(), FlowChartViewModel.Model, nodeType,
                    _ContextMenuLocation.X, _ContextMenuLocation.Y, 0);
            }
            flowChart.History.EndTransaction(false);
        }

Calculator example works fine. I've tried adding PropertyTools and PropertyTools.Wpf packages, but that didn't make any difference.

@chebz
Copy link
Author

chebz commented May 30, 2022

I've managed to "fix" it by replacing pt.EditableTextBlock with TextBox in Generic.xaml:

<TextBox x:Name="PART_Header"
                                             Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" 
                                             Text="{Binding Model.Header, Mode=TwoWay}"
                                             Focusable="True"
                                             Foreground="{Binding Model.HeaderFontColor}"
                                             Background="Transparent"
                                             BorderThickness="0"
                                             FontWeight="Bold"
                                             FontSize="12"
                                             IsEnabled="{Binding Model.AllowEditingHeader}"/>
									<!--<pt:EditableTextBlock x:Name="PART_Header"
														  Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
														  Text="{Binding Model.Header, Mode=TwoWay}"
														  Focusable="True"
														  Foreground="{Binding Model.HeaderFontColor}"
														  FontWeight="Bold"
														  FontSize="12"
														  IsEnabled="{Binding Model.AllowEditingHeader}"/>-->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant