Can anyone suggest how to load an icon onto a button in .NET 8.0 if PresentationCore is missing?
Solved! Go to Solution.
Can anyone suggest how to load an icon onto a button in .NET 8.0 if PresentationCore is missing?
Solved! Go to Solution.
Solved by jeremy_tammik. Go to Solution.
I would assume that the code is virtually unchanged from the previous .NET Framework. What do you need PresentationCore for?
I would assume that the code is virtually unchanged from the previous .NET Framework. What do you need PresentationCore for?
PushButton pushButton = CreatePushButton(panel0, typeof(CmdAbout), "About");
pushButton.LargeImage = Converter(Properties.Resources.about_32_32);
pushButton.Image = Converter(Properties.Resources.about_16_16);
For example, LargeImage & Image its presentation core. When I try to set an icon for my buttons, I get an error that PresentationCore is missing. Unfortunately, I couldn't find any answers online on how to do this.
PushButton pushButton = CreatePushButton(panel0, typeof(CmdAbout), "About");
pushButton.LargeImage = Converter(Properties.Resources.about_32_32);
pushButton.Image = Converter(Properties.Resources.about_16_16);
For example, LargeImage & Image its presentation core. When I try to set an icon for my buttons, I get an error that PresentationCore is missing. Unfortunately, I couldn't find any answers online on how to do this.
Can WPF also be used to create UIs in .NET 8? I heard there were some changes to it as well.
Can WPF also be used to create UIs in .NET 8? I heard there were some changes to it as well.
Image and LargeImage are Revit API properties on the RibbonButton class:
They are of type ImageSource:
You can certainly convert to that in .NET Core as well:
Image and LargeImage are Revit API properties on the RibbonButton class:
They are of type ImageSource:
You can certainly convert to that in .NET Core as well:
Yes, of course, squared.
Yes, of course, squared.
Here what I got(
Here is one of the solutions that I pointed out in my previous answer:
https://stackoverflow.com/questions/59831243/using-imagesource-in-net-core-3-1
Here is one of the solutions that I pointed out in my previous answer:
https://stackoverflow.com/questions/59831243/using-imagesource-in-net-core-3-1
Can't find what you're looking for? Ask the community or share your knowledge.