Search found 58 matches

by darthmaule2
30 May 2019, 12:01
Forum: General Discussion
Replies: 2
Views: 64

Re: Unable to set custom ControlTemplate for a MenuItem

Thanks, I have this working with the style you posted and my template:
        <ControlTemplate x:Key="TopLevelItemTemplate" TargetType="MenuItem">
by darthmaule2
29 May 2019, 22:22
Forum: General Discussion
Replies: 2
Views: 64

Unable to set custom ControlTemplate for a MenuItem

I confirmed the following works in WPF but not in Noesis. I did then realize you didn't yet have complete support for "x:Static"... <ControlTemplate x:Key="{x:Static MenuItem.TopLevelItemTemplateKey}" TargetType="MenuItem"> <Border x:Name="MenuItemBorder" Width="190" Height="100" BorderThickness="1"...
by darthmaule2
14 May 2019, 19:56
Forum: General Discussion
Replies: 1
Views: 90

Trying to bind to a BitmapImage created with a Uri pointing to an embedded resource

I have a folder called "Images" which contains an embedded resource "MyImage.png". I can display that image without any issues if I do it like this <Image Source="Images/MyImage.png"></Image> But, I can't load the image using a Uri from code-behind... I can see that FileTextureProvider::OpenStream(s...
by darthmaule2
25 Apr 2019, 14:12
Forum: General Discussion
Replies: 3
Views: 148

Re: ConnectEvent not being called in Noesis 2.2.2 / .NET 4.6.1 / Windows x64?

Ahh, nevermind. I was not explicitly assigning a SelectionChanged event for my ListView, which I thought was a built-in event. I must have taken that out myself at some point. It's working now.
by darthmaule2
25 Apr 2019, 13:55
Forum: General Discussion
Replies: 3
Views: 148

Re: ConnectEvent not being called in Noesis 2.2.2 / .NET 4.6.1 / Windows x64?

ok that's not a good example... I added an event to the XAML and now ConnectEvent is getting called. But, it's still not working in my other application... I'll have to come up with a better minimal example :)
by darthmaule2
24 Apr 2019, 21:33
Forum: General Discussion
Replies: 3
Views: 148

ConnectEvent not being called in Noesis 2.2.2 / .NET 4.6.1 / Windows x64?

I recently noticed my breakpoint in ConnectEvent wasn't getting called, so, I downloaded the latest tutorials from github and made only 1 change to "Buttons", which was to override ConnectEvent and set a break point when it's called: namespace Buttons { /// <summary> /// Interaction logic for MainWi...
by darthmaule2
23 Feb 2019, 11:39
Forum: General Discussion
Replies: 5
Views: 203

Re: How do I save/render an <Image> element as a file using the managed SDK?

RenderTargetBitmp feature request:
https://www.noesisengine.com/bugs/view.php?id=1410

CroppedBitmap and TransformedBitmap feature request:
https://www.noesisengine.com/bugs/view.php?id=1411
by darthmaule2
19 Feb 2019, 20:34
Forum: General Discussion
Replies: 5
Views: 203

Re: How do I save/render an <Image> element as a file using the managed SDK?

I guess the answer to your second option would get me pretty far. Using WPF, I have a function where I combine multiple BitmapSource images by rendering one on top of the other "BlendBitmapSources" and another one "CreateZoomedImage" where I transform a BitmapSource and then render that. The RendeTa...
by darthmaule2
13 Feb 2019, 20:40
Forum: General Discussion
Replies: 5
Views: 203

How do I save/render an <Image> element as a file using the managed SDK?

I have this BitmapSource property: public BitmapSource RecalledImage { get; set; } The above property is populated by reading an image from disk into a buffer "bytes" and then by calling Create: RecalledImage = Noesis.BitmapSource.Create(file.Width, file.Height, 96, 96, bytes, file.Width * 3, Bitmap...