I am still having a trouble cropping with my project I am trying to create, which I have included the code and the XAML code below. For my project, i am trying to have the user click on the button "crop image" then they are given the ability to highlight the area to crop, and right click and save the crop image as jpg or bmp, so far i have looked at several examples including jim's input (thank you jim again) but still is a little confusing to me, if someone can help me out with this by completing the missing piece (or finishing the project), and/or explain that would be great. I am willing to go even as far as talking over the phone or email just to help me because i feel this is an essential thing to learn using WPF/C# image object/bitmap. If anyone can help me out with this one i would be very very grateful. So again, the code is below so you can see what i got so far, which i like because you can zoom in and out of the image object called viewerphoto1 using the slider. Anyways here is the code below:
I was looking at this example from the link below, which i like, i am trying to have the user click on the button crop image, and thats when it will show the rectangle, however the description or the explanation is sorta hard to understand, can anyone help me with this, including how to get crop image to appear on the crop image viewer object?
I'm trying to do my first WPF app, and the IDE seems to have lost the ability to show properties for any control. The only way to fix it is to shut the IDE down and restart it, and then, it only works for the first control you try to view the properties for. What a POS...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
I created a UserControl in XAML that includes a Frame. But when the application is loading the Frame source, the application throws and InvalidOperationException. This message tells me, that the class for the Frame's source couldn't be found in the given namespace. And this is true, because it doesn't use the namespace I intended. Here's a short example to illustrate the problem:
Thanks for your answer. That's more or less exactly what I am doing. Only that I placed the files in some directories, so the namespace is a bit longer.
And I didn't change the namespace in the code behind files. The strange thing is, that the exception already says, that the class should be located in a different namespace - one, that doesn't make any sense to me.
Currently I load the page in the code behind file. Perhaps I get some time later this day and can break it down and post a "working" sample.
var tag = document.getElementById('tagID');
var destinationTag = document.getElementById('destinationID');
destinationTag.innerHTML = tag.innerHTML;
Now I wanna do it with XAML and C#.
For example, I've already written this XAML code :
BTW I didn't want embed C# in XAML , I've wanted to copy XAML codes with C# from a side XAML file to the other side of it.
Do u understand what I mean ?
Actually, you can embed .NET language code within XAML by placing it within <x:code xmlns:x="#unknown"> tags. Such code is moved into the generated partial class by the compiler, and the language must match the language of the containing project (i.e. you can't embed C# in a VB proj).
While I can't think of any good reason to do this, it is possible.
Hi! I am a WPF beginner.
I just want to make an UI using WPF for an old unmanged Application coded by C++.
I want to using CCW(Com Callable Wrapper) between the managed and unmanaged world.
Following requirement is needed:
1. To keep the app unmanaged except UI;
2. To play video stream from the unmanaged app in WPF UI.
Best wishes for all and Merry chrismas!
Any help or hints are greatly appreciated!