Comments (4)
Managed to get this working - used local copy of source code. Made updates to the following files: ToolboxView.xaml, ToolboxItem.cs, ToolboxItemAttribute.cs and ToolboxService.cs. By default the Sigma icon will be used unless specified in the ToolboxItem Attribute on the ToolboxItem.
from gemini.
You're right; I do need to hook up the ToolBoxItemViewModel.IconSource
attribute. Thanks for bringing it my attention.
from gemini.
I noticed the update. Almost exactly what I had initially thought, although I had the sigma.png image as the default icon if none was specified. I seem to be having issues with the latest copy of the code as the toolbox is no longer visible for the FilterDesigner demo. After changing the IconSource type from Uri to string, and removing the string-to-uri conversion in the toolbox service class, the toolbox came back into view with all icons displayed correctly. Perhaps I'm doing something wrong or missing something with the original code?
from gemini.
Figured out a correct and much simpler fix. In the Gemini.Modules.Toolbox.Services.ToolboxService class, change the IconSource to the following:
IconSource = (attribute.IconSource != null) ? new Uri(attribute.IconSource, UriKind.RelativeOrAbsolute) : null
After specifying UriKind, the demo works as expected with no other code changes (no need for my previous suggested changes).
from gemini.
Related Issues (20)
- How to find out whether the Tool is Docked as a Document? HOT 1
- add light bulb module
- add intellisense provider to texteditor
- Tool window content disappears when it is not pinned. HOT 2
- XML Schema Invalid. HOT 1
- Do Not Save Application State In Debug Mode HOT 1
- Connections in GraphEditor cant be moved
- How make the second menu configurable
- The README should include a list of non-free dependencies this project uses. HOT 1
- nuget最新程序包安装报错 HOT 4
- Avalonia Version HOT 1
- Views FlowDirecation dose not changing HOT 4
- Failed to create new WPF application HOT 3
- How to compare ThemeManager.CurrentTheme.Name HOT 2
- Failed to create application on .net core 3.1 HOT 4
- Wierd exception HOT 1
- _statusBarGrid null HOT 1
- Weird Exception on start HOT 1
- Memory leak casued by MEF
- d
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gemini.