Posts

wpf - data binding on properties confusion -

I have a WPF tabstime whose data reference is set to my object 'Product' 'Get my data from the object I have a list view, whose item source property is set in a list in my object' Product.DetailsList 'list view column' Product. Distinct list is bound to object. Up until everything works fine, now I need to bind some columns in my list view to the properties of my datacentext object ie ' Product 'Can anyone tell me how can I get it? I think it is not entirely clear how the hierarchy is in the middle of your control, datacontext Works like this: Access to their children from top level control is being achieved. In this case, if the WPF TabItem is the parental control of ListView, then ListView will have the same DataContext as TabItem. Besides, by thinking that I can get it right, you can do this: Where the interesting part is the relative source set on FindAncestor and since you know that DataContext is set on the product object, you c...

c# - bitmap compression -

I am trying to send a bitmap screenshot over the network, so I need to compress it before sending it, So if someone has a library or method just tell me, thanx than a lot When you have an image In the stream, you is to select a format, almost all the bitmap formats (BMP, GIF, JPG, PNG) 1 or more. HE Government use of compression. So just select a suitable format, and make sure the sender and the receiver agree on it.

debugging - AbsoluteTime with numeric argument behaves strangely -

यह अजीब है: दिनांक लिस्ट @ निरपेक्ष समय [5 9 6523] रिटर्न {2078, 7, 2, 2, 42, 9.7849} लेकिन दिनांकसूची @ AbsoluteTime [596524] रिटर्न {1 942, 5, 26, 20, 28, 39.5596} सवाल: क्या चल रहा है? ध्यान दें कि एक संख्यात्मक तर्क के साथ AbsoluteTime को undocumented है। (मुझे लगता है कि मुझे अब पता है कि यह क्या कर रहा है लेकिन यह समझ गया कि यह भविष्य के संदर्भ के लिए एक StackOverflow प्रश्न के रूप में उपयोगी है; और अगर कोई कारण है उस मैजिक 596523 नंबर के लिए।) पीएस: मैथमैटिका में यूनिक्स के समय में परिवर्तित होने के लिए इन यूटिलिटी फ़ंक्शन लिखते समय मुझे इसका सामना करना पड़ा: (* यूनिक्स समय का प्रयोग ( एक पूर्णांक) के बजाय गणितिका के AbsoluteTime ... *) टीएम [x ___]: = AbsoluteTime [x] (* टीएम AbsoluteTime के लिए एक उपनाम है। *) Uepoch = tm [[1970}, टाइम ज़ोन-> 0]; (* Unixtm टीएम के अनुरूप काम करता है। *) Unixtm [x ___]: = गोल [टीएम [x] -यूपोक] (* टीएम और यूनिक्स के बीच यूनीक्सम कनवर्ट करें) * यूनीक्स्टएम [x_? NumericQ]: = गोल [x- Uepoch] (* एमएमए युग का समय...

virtual memory - Linux: page faults and network filesystems -

If a Linux system stays outside of physical memory, should it disable the executable code pages Leaves it? I think the answer is yes, because there is no reason to keep them in swap, so if necessary, they are released and loaded again (as far as I know, that is what is freeBSD is). If the above is true for Linux, I have a question, how does it govern the executable executable with network file system (for example NFS)? Does it go to an executable pages on the page and if there is any page fault? If a Linux system runs outside of physical memory, does it disable passive code pages Leaves it? I think the answer is yes, because there is no reason to keep them in swap, so if necessary, they are released and loaded again (as far as I know, that is what is freeBSD is). Yes it does. If the above is true for Linux, I have a question, how does it govern the executable executable with network file system (for example NFS)? Is there any page fault? The NFS client caches cont...

vb.net: Replace function with double quotes in From part -

संभव डुप्लिकेट: Vb.net में से प्रतिस्थापित को इसके मूल्य में दोहरे उद्धरण चिह्नों का इस्तेमाल करने पर फ़ंक्शन का उपयोग कैसे किया जा सकता है? मंद रूप में स्ट्रिंग = स्ट्रिंग। बदलें ("कुछ स्ट्रिंग", "कुछ" "स्ट्रिंग्स") >

wpf - Create popup "toaster" notifications in Windows with .NET -

I am using .NET and creating a desktop app / service that is notified in the corner of my desktop Will display, when some events are triggered I do not want to use a regular message box B / C which would be very intrusive, I want to slide to see the information and then want to fade after a few seconds. I'm thinking of something that will work out like Outlook alerts when a new message arrives. The question is: Should I use WPF for this? I have not done anything with WPF, but try it to appreciate what that end means the best it is a way to meet with regular NET libraries? WPF makes it absolutely trivial: it will take practically ten minutes or less these steps Raise: Create a window, set AllowTransparency = "true" and add a grid to it A ScaleTransform with the origin of 0 of the grid Set RenderTransform, 1 Gray that ScaleX from 0 to 1 then 1 to 0 Window.Top and Window.Left calculation in the creator animate animating opacity for place But one anne Registra...

sdk - UIEvent for iPhone locking & unlocking? -

I am creating an iPhone app in which I want time user activity. However, while calculating the time the iPhone was locked (or when the user received a phone call) I did not want to calculate that time what is the best way to do it? Is there a UIEvent on which my app can get the iPhone lock or unlock (and can work on)? find methods applications: and applicationDidBecomeActive: .