User Profile
Collapse
-
quddusaliquddus replied to How to Serialize Class That Contains WPF-Specific Variables e.g. Viewport3D, Translatin .NETHi. I think u might be right about some things not being serializable. Threrfore I will not persue this further. Thanks -
quddusaliquddus started a topic How to Serialize Class That Contains WPF-Specific Variables e.g. Viewport3D, Translatin .NETHow to Serialize Class That Contains WPF-Specific Variables e.g. Viewport3D, Translat
I am getting errors when trying to seralize a class that has variables of type specific to WPF e.g. ModelVisual3D, TranslateTransf orm3D, Viewport3D.
How can I avoid these errors yet serialize the class as it is?Last edited by Niheel; May 27 '10, 10:37 PM. Reason: removed hi and thanks, fixed some punctuation stuff -
3D Triangle ImageBrush - WPF
Hi. I am trying to apply an image brush to a 3d triangle without success: My code is below. What am i foing wrong?
Code:Dim ModelTri As New MeshGeometry3D ModelTri.Positions.Add(New Point3D(0, 0, 0)) ModelTri.Positions.Add(New Point3D(100, 0, 0)) ModelTri.Positions.Add(New Point3D(100, 100, 0)) Dim MeshTri As New MeshGeometry3D MeshTri.TriangleIndices.Add(0)
-
XamlWriter.Save() doesnt preserve attributes
Hi :),
I am trying to get the XElement representing the contents of a Viewport3D control in a form in WPF.
If I do this: XamlWriter.Save (Viewport3DName )
then the attributes of the contents of the Viewport3D are not saved by the XamlWriter.
I thnk its described here: http://msdn.microsoft.com/en-us/library/ms754193.aspx
My aim is to get the structure of the contents of the Viewport... -
XElement Question
I have an `XElement` and an `XPath` expression that selects a node from it. It works fine in the original program that I wrote it in but doesnt work if I paste it to another program. I've checked the references and import statements. What am i doing wrong?
I think the problem might be that the original program had the code within the class of a wpf window while it was moved to a abstract class where it doesnt work.
Dim... -
-
Hi. Thanks for the help. I really appreciate it.
My problem with it inheriting the control class is that I dont know how I can overrride the Draw() method from anyhwere else in the application.
For example - if I wanted to run a different version of the Draw() method form a button click - how could I do this?
Thanks again.Leave a comment:
-
C# Inheritance
Hi :),
I have two classes. The first one inherits from the Control class...
Code:class GraphicsDeviceControl : Control { }
... and one that inehrits from that one ...
Code:class TriangleControl : GraphicsDeviceControl { protected override void Draw() { } }
-
Sorry. Should have explained. I wanted some help with this. Im new to C# but have a little experience with other languages. I have been scouring the net to find a simple example and so far Ive come across :
http://www.codeproject.com/cs/menu/ToolBarDock.asp
But I am finding it hard to adapt it to my needs. I would appreciate help with this (free)....Leave a comment:
-
Toolstrip - Floating at Mousepoint
Hi :),
I want to create a toolstrip that floats like the mini-font-toolbar in Word 2007. It should float next to the mouse cursor when I click (or hover or Dbl click) at a point.
Thanks
Q -
It might be something to do with this function in scrolltopcontro l.js
Code:scrollup:function(){ if (!this.cssfixedsupport) //if control is positioned using JavaScript this.$control.css({opacity:0}) //hide control immediately after clicking it var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto) if (typeof dest=="string" && jQuery('#'+dest).length==1)
Leave a comment:
-
I just tested it out. The conflict is with a dock menu's interface.js that I've been using:
http://www.ndesign-studio.com/blog/mac/css-dock-menu
If I add <script id="2" type="text/javascript" src="js/interface.js"></script>
then the scrollbar doesnt work....Leave a comment:
-
If I add these scripts to the page then it goes wrong:
Code:<script id="1" type="text/javascript" src="js/jquery.js"></script> <script id="2" type="text/javascript" src="js/interface.js"></script> <style type="text/css"> a.active { font-weight: bold;
Leave a comment:
-
-
BTW - it works fine when run in a empty website - but if i run ti in a page with other scripts it makes the vertical scrollbar disappaear. any ideas why?Leave a comment:
-
When i run the code - the scrollbar disappears in the page im running the code in.Leave a comment:
-
Vertical Scrollbar Disappears in FireFox
I am running this: http://www.dynamicdrive.com/dynamicindex3/scrolltop.htm
It works fine except the vertical scrollbar disappears when the image is clicked.
What should I do? -
Simple Spacing Question from CSS Novice
I am trying to change http://www.ndesign-studio.com/blog/mac/css-dock-menu such that the icons have more space between them than present. Anykind of help would be much appreciated. Thanks -
Check Packet Size of TCP Data Before Reading Next Byte in Stream
Hi :D,
I am sending data to server via TCP IP Connection. I am using a continuous loop at the server end - that accepts new clients and while streams can be read, it reads data stream.
The data is sent from the client with 2 leading bytes of data that represent the size of the packet of data sent and type of data.
My question is: how do I retrieve the size of the data packet and then check that this amount... -
No activity results to display
Show More
Leave a comment: