Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

donovan solms

@donovan solms
About
Posts
37
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Starting animation defined in XAML from code
    D donovan solms

    thanks for the reply. The problem is that the BeginStoryboard is in a Trigger, which is far nested into a DataTemplate so I cannot give it a key. I got to the BeginStoryboard through code by navigating through the template and registering everything that I need. So when I finally call story.Storyboard.Begin(this); I get no errors, the code is run (checked via tracing through it) but the animation doesn't happen. Any reason for this? Wrong containingObject?

    rather have something you don't need, than need something you don't have

    C# wpf csharp database help question

  • Starting animation defined in XAML from code
    D donovan solms

    Hi, I've posted this on the Microsoft forums as well but have not received any usable answer. I have a storyboard in XAML (in a DataTemplate) that I need to start from code. Now I've given up on that idea and rather went with an event to start it. Note: This is WPF. instead of: I now have: gestureMade is an event I created. Which is defined in code as: public static readonly RoutedEvent gestureMadeEvent = EventManager.RegisterRoutedEvent("gestureMade", RoutingStrategy.Bubble, typeof(gestureMadeHandler), typeof(TouchActor)); public delegate void gestureMadeHandler( object sender, GestureEventArgs e ); public event gestureMadeHandler gestureMade { add { AddHandler(gestureMadeEvent, value); } remove { RemoveHandler(gestureMadeEvent, value); } } I know the event gets raised because I have a MessageBox that pops up in the handler. The problem is that it doesn't trigger the animation. Am I missing something? rather have something you don't need, than need something you don't have

    C# wpf csharp database help question

  • Coding Standard Question
    D donovan solms

    that's what I thought as I'm in Orcas. I'll just stick to my usual style. Thanks for everyone's feedback

    rather have something you don't need, than need something you don't have

    C# question csharp

  • Coding Standard Question
    D donovan solms

    pmarfleet wrote:

    The second snippet looks like a property declaration for an Interface.

    it does, but you can use it in a normal class as well

    rather have something you don't need, than need something you don't have

    C# question csharp

  • Coding Standard Question
    D donovan solms

    Which is better according to coding standard for c#? this: public bool isDraggable { get { return _draggable; } set { _draggable = value; } } or this: public bool isDraggable{ get; set; } without using private members? Or is this a matter of personal choice?

    rather have something you don't need, than need something you don't have

    C# question csharp

  • vector drawing in wpf
    D donovan solms

    Hi, I want to create a very basic vector drawing application in wpf. All I need is a basic overview on how to do it. I've read a lot on the shapes in wpf. and I plan to use the Path class. Now most documentation cover the XAML but as this is an application where a user will be able to draw it with a mouse, XAML doesn't help me. Basically the application on needs to draw in a fixed size in black, nothing more. can anyone please tell me how I will create geometry (with a path) from the mouse movements? thank you, Donovan

    rather have something you don't need, than need something you don't have

    C# wpf graphics csharp help tutorial

  • Find a Button with HitTest
    D donovan solms

    there is no vendor.everything is custom created. the screen works like the ms surface computer.but my code at the moment works ok,i can touch and manipulate images because hittest returns a system.windows.controls.image. but a button returns buttonchrome so there is no way to solidly check the control type to be able to raise the correct event. i cant check for buttonchrome because it can change depending on the UI styling. this is all WPF.

    rather have something you don't need, than need something you don't have

    C# question

  • Find a Button with HitTest
    D donovan solms

    When I hittest for a location where a button is, i get ButtonChrome or TextArea. Now I know why, but how do I find 'Button' through code. There is e.Source and e.OriginalSource through the eventargs but for my specific implementation those won't ever return Button as any one of them. Is there another way of finding the Parent of ButtonChrome/TextArea from the HitTestResult? The reason why the eventargs won't ever have that value is because i'm working with custom input (multitouch screen to be exact). So it doesn't come through the framework. Except if you can propose a better way to start the input. At the moment it starts at the Canvas level. No higher. thanks in advance. donovan

    rather have something you don't need, than need something you don't have

    C# question

  • Messed up code.
    D donovan solms

    ah,great quote! no i'm not having trouble with the code.i just feel the touchframework and touchcanvas code can be improved,it all just feels so innefficient. i want to find the code issues at the beginning of the project,rather than the end.

    rather have something you don't need, than need something you don't have

    C# question csharp c++ wpf performance

  • Messed up code.
    D donovan solms

    hi, this is probably not a good thing to ask, but i need help because i'm not an experienced programmer. I am working on writing a 'framework' that allows you to write applications that works on multitouch tables (or surface computers). now the code isn't complicated so most of you would not have trouble understanding it, even if you've never worked with multitouch applications. no my question is: could someone please have a look at my code and tell me if there is a better, more efficient way to do what i'm doing? or if i could get better performance? or if there is a better approach? all the application does is load 3 photos, and allow you to rotate/scale/drag is on the screen with your fingers. the code is available here: http://www.whitespaced.co.za/WPF_MTPhotoApp_SOURCE.zip it won't compile, you'll need more files, but let me know if you wish to compile, then i'll add the link to those files the code works as follows: the TouchFramework class gets the finger events from a managed c++ wrapper for unmanaged c++ fingertracker. the is raises the events, any class that has those events get raises as well, in this case TouchCanvas. TouchCanvas checks to see which object was touched and the raises it's own event and passing as parameter the UIElement that was touched. Now all the other classes that has a reference to the current canvas gets that event and checks to see if it is the object that was touched(TouchImage) and does something about it. now this works fine, but the coding is bad, i don't know is a interface would be better. and i also feel to many events are being passed around. (ex. if there are 300 images on screen and you press your finger on any one, all 300 will check if it was the one touched after the TouchCanvas already figured out what was touched. I would really appreciate any help on this subject as i want to write this as best as possible. i also want the 'framework' to be easily extensible by added new classes, like TouchVideo and so. Thank you Donovan

    rather have something you don't need, than need something you don't have

    C# question csharp c++ wpf performance

  • C# USB Detection [modified]
    D donovan solms

    thanks to both of you, seems both solutions would be able to solve my problem! thanks again donovan

    rather have something you don't need, than need something you don't have

    C# csharp question wpf

  • C# USB Detection [modified]
    D donovan solms

    hi, I've tried the following code at http://www.msnewsgroups.net/group/microsoft.public.dotnet.languages.csharp/topic6944.aspx i've made the changes they say, but it still doesn't work when i insert a usb device (flashdisk). I'm trying do detect when a device is inserted into a usb port. how can i do it? and if possible, which port it was inserted at. it's for a WPF app EDIT: ok, it's working now, but i have the same questions that the person with the code posted: 1)Check if the device is inserted or removed..How do i do that?? 2)also i want to check Total storage (capacity)of the device connected c) storage(unused)available in the device thanks donovan -- modified at 6:54 Thursday 12th July, 2007

    rather have something you don't need, than need something you don't have

    C# csharp question wpf

  • multiple inheritance workaround?
    D donovan solms

    thanks,but how can i use the code that adds my custom event handlers in my class when i convert it to an interface?

    rather have something you don't need, than need something you don't have

    C# csharp question wpf oop

  • multiple inheritance workaround?
    D donovan solms

    hi, i have to inherit from multiple classes. a base class i wrote, and a wpf class, like Image or so, because i'm writing some custom controls. i know c# doesn't have multiple inheritance. how can i achieve multiple inheritance functionality? thanks, donovan

    rather have something you don't need, than need something you don't have

    C# csharp question wpf oop

  • C# custom event handlers/controls
    D donovan solms

    thanks. that is what i was looking for! the singleton will solve a lot of problems. thanks again. donovan

    rather have something you don't need, than need something you don't have

    C# csharp c++ help question

  • C# custom event handlers/controls
    D donovan solms

    Touch on the screen >> C++ app >> C# app >> fire event on control exactly

    rather have something you don't need, than need something you don't have

    C# csharp c++ help question

  • C# custom event handlers/controls
    D donovan solms

    ok. let me explain. it's a multitouch screen i built myself. it gets a videofeed from a camera of where you press your finger. the unmanaged c++ app does the tracking of the fingers. then i built a managed wrapper to get the 'events' raised by the unmanaged part. now that is working. now i need to add those touch events to a UIElement in wpf. now doing it with one object is no problem, but doing it with say Image and Button is a whole different story. because once i add a UIElement implemented to receive touches, the app runs but without allowing the other one for touches. so i want to build a framework that allows for more than one element to be touched. the basics should be the same as the normal mousedown event. as for "doing different things" and "why whould you use more than one finger"? google/youtube for 'microsoft surface', or 'jeff han ftir' and you'll see why more than one finger and why it does different things when you touch different objects. @led mike - you're right : "And what does "does do quite different things than pressing two fingers on something else" have to do with "how" you capture the "press" event? " has nothing to do with it, it was just to better explain.

    rather have something you don't need, than need something you don't have

    C# csharp c++ help question

  • C# custom event handlers/controls
    D donovan solms

    it's for a multitouch screen, so pressing two fingers on an image does do quite different things than pressing two fingers on something else. so emulating the mouse is not quite a good solution

    rather have something you don't need, than need something you don't have

    C# csharp c++ help question

  • C# custom event handlers/controls
    D donovan solms

    hi, i have a unmanaged c++ app that sends events to a managed wrapper, and then the wrapper sends it to my c# app. it works fine. but now i want to create custom controls that gets these events. the problem is i have no idea how. i can create basic custom controls and so. it's for a touchscreen, so what i want to do is very similar to the click/mousedown events, except its more of a touchdown instead of mousedown. eventually i want to be able to do Image.touchdown += (add event handler) and one the image is touched on screen, the event is raised. just like a mouse event. can anyone please tell me where to start, or what article to read, or just give me a hint in the right direction? thanks, donovan

    those that say it cannot be done shouldn't interrupt those doing it

    C# csharp c++ help question

  • Unable to load DLL
    D donovan solms

    no not the touchlib.dll , that's a unmanaged dll that a COM dll is trying to access. when i type 'regasm touchlib.dll' it tells me that touchlib.dll or one of it's dependencies couldn't be found, could it be a dependency? or am i missing something when i compile? maybe you can tell me what compile options MUST be set to get DLLImport to work with it? could i not be exporting symbols?

    rather have something you don't need, than need something you don't have

    C# csharp c++ visual-studio com question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups