Posts

c# - DependencyProperty with TwoWay Binding -

मेरे पास एक बेहद अनुकूलित संपादन नियंत्रण है जो RichTextBox को प्राप्त करता है मैं एक मूल्य इस पर नियंत्रण करने के लिए बाध्य करने के लिए एक तरह से की जरूरत है, तो मैं एक नया DependencyProperty पंजीकृत, लेकिन मैं इसे कोड करने के लिए है कि मैं जरूरत परेशानी है। सार्वजनिक स्थिर केवल पढ़ने के लिए DependencyProperty ValueProperty = DependencyProperty.Register ( "मूल्य", typeof (स्ट्रिंग), typeof (XliffRichCellEditor), नई PropertyMetadata (नई PropertyChangedCallback (XliffRichCellEditor.OnValuePropertyChanged))); सार्वजनिक स्ट्रिंग मान {प्राप्त करें (रिटर्न (स्ट्रिंग) इसे प्राप्त करें। गेट वैल्यू (वैल्यू प्रॉपर्टी); } सेट {this.SetValue (ValueProperty, value); }} निजी स्थिर शून्य OnValuePropertyChanged (DependencyObject घ, DependencyPropertyChangedEventArgs ई) {// RichTextBox में दस्तावेज़ को बदलने के लिए जब बाइंडिंग स्रोत बदल गया है // लेकिन यह भी उपेक्षा करता है, तो परिवर्तन RichTextBox जो केवल DependencyProperty // अपडेट कर रहा है से आता है की आवश्यकता है। इस मामले ...

javascript - how to make information displayed only in child window? -

I have written the code to open the window to the child (Toolbar has been disabled here) by the parent window (body online load Using the function) Calling the same (login.jsp) page again. Opens the first time in the browser (such as login.jsp) (by typing URL) it displays all the information and then goes to the hair window where I have disabled the toolbar. I want to type url and I want to go that I do not want to show any information in the original window ... I want to show only in the child window. I'm not sure that I understand your question correctly, but my script After all, the child has done everything in the window, and should try to see the focus () about the parent's location about: empty : location.href = 'about: empty'; Of course, pointing it to an empty page within your site would be the same thing.

html - Is there an out of the box Javascript "Tweet this" link solution with URL shortening, which does not eagerly load files from other domains? -

Third-party server requests slow down my site, so I'm trying to minimize as much as possible . In my book, the ideal "Tweet it" solution should be I have a small javascript snippet hosted on my site There is no activity on the page page (at least as low, but there is no additional HTTP request) Just click, get it shortened url and tweet it Is there anything like this? I have nothing to do about scripting around me, but of course I do not want to invent the wheel, if there is a good solution. EDIT: If anyone has ended in the end, then there is an interest in it. I decided to implement the API call My backend is triggered by an AJAX request when the user clicks on a button, from customer's perspective, this solution requires less resources and It can be as lazy as it is. Plus: Addressing the bit.ly API directly is actually trivial. However: retweet.js (posted below) is still the best out-of-the-box client-side solution that I have seen so far....

c# - TypeConverter in propertygrid only converts from string, not to -

When the property grid is reached, only the conversion mechanism (often called) is called "Foo!" Returns the property string in the grid when I click to edit I get an exception Type.oo. Object type can not be changed to type. (Not properly translated,) What is a clue from the convert format, why not? And the error indicates that it is trying to convert to a string, not from. I think that when I want to edit this object, it will have to be converted from foo to string, and when the editing ends. Public class FooTypeConverter: StringConverter {public override object ConvertFrom (ITypeDescriptorContext Reference, CultureInfo Culture, Object Value) {New Foo (string) value); } Convert the public override object (Type the ITE DiskText Contact Reference, CultureInfo Culture, Object Value, Type Type) {Return "Foo!"; } Public override bool CanConvertFrom (ITypeDescriptorContext reference, type source type) {back true; } Public Override Bull CanConvertTo (ITypeDescrip...

Problem with Url.Content in ASP.NET MVC on Default Route -

अगर मैं अपने डिफ़ॉल्ट दृश्य / होम / इंडेक्स & lt; स्क्रिप्ट भाषा = "जावास्क्रिप्ट" src = "& lt;% = Url.Content (" ~ / लिपियों / jquery-1.3.2.js ")% & gt;" प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; & lt; / स्क्रिप्ट & gt; अगर मैं निम्नलिखित यूआरएल http : //127.0.0.1: 99 99 / होम / इंडेक्स का उपयोग करके इस स्थान पर सर्फ करता हूं तो पृष्ठ सही ढंग से प्रस्तुत हो जाता है & lt; स्क्रिप्ट भाषा = "javascript" src = "/ स्क्रिप्ट / jquery-1.3.2.js" प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; & lt; / script & gt; अगर मैं निम्नलिखित यूआरएल http : //127.0.0.1: 9999 / (डिफ़ॉल्ट / होम / इंडेक्स से जुड़े वायर्ड) का उपयोग करता हूं तो पृष्ठ यह रेंडर करता है: & lt; script language = "javascript" src = "// स्क्रिप्ट / jquery-1.3.2.js" प्रकार = "टेक्स्ट / जावास्क्रिप्ट" & gt; & lt; / script & gt; क्या किसी को भी इस मुद्दे को हल करने ...

mysql - paging with php? -

Hello I want to list contents as 10 content per page This is for every content The source code is & Lt; Br / & gt; Yayan: & lt; Strong & gt; & Lt; A href = "#" & gt; Ronnie C Linwood & lt; / A & gt; & Lt; / Strong> & Lt; Br / & gt; & Lt ;? = $ Arama [Ticlama]? & Gt; KJ Ocunmus & Lt; Br / & gt; & Lt ;? Php rating_form ("$ Arama [id]"); ? & Gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt ;? = $ Arama [location] & gt; & Lt; / Div & gt; & Lt ;! - / articles - & gt; I think you better use a paging class instead of making your own It will save a lot of time in your next projects. Your current problem will also be resolved

java - A customizable diff tool that can produce report (in XML, HTML) -

I want to provide a difference report for a non-regression test. My program is Java based, but I did not find any API to fill my needs. So I am using an external device (CSDIF) which takes 2 files as logic and returns an HTML report. It's nice and easy to setup. The only problem now is that some changes need to be made to use the HTML report and I am roaming it with the report, it changes some different parts, style ...) Does anyone know a different tool that has a powerful command line support, allowing to generate custom reports? Good reports will see options 2 pan, regex filtering, easy styling options ... like HTML would be as good as a VIM difference scene. I have already read stuff about the DIFIFO tool in stack overflow, but I many thanks / p> I would recommend. It provides HTML or original FIP components that you can change in style and yourself.