How to implement BINDING between drawing shapes and properties?

See this background info:
Can we have BINDING between drawing shapes and properties?
This needs more specific info. My application reads a number of XML files, and places the data in an Excel worksheet. Let's say that there are 20 XML files, the app creates 20 lower tabs (spreadsheets) named: "Item 1", "Item 2", ...,
"Item 20".
That is the current version. I am told by the users, however, that in some cases there are some XML files which create more than 1 Excel lower tab.  For example, the file: "Items 8-11.xml" needs to fill tabs 8, 9, 10 and 11.
In that particular case the user will modify the default map (a 45-degree diagonal, equivalent to the
identity function F(x) = x), by clicking around. The resulting new map will look as follows:
Since the number of XML files does not change, the number of rows is constant. However, each time a black square is moved from its canonical (45-degree) location, a spreadsheet becomes "orphan" and therefore the application must create a new Excel
lower tab (which is a grid column). IOW: The number of columns keeps on growing to the right.
List<Model>
I figure that (as opposed to DataGrids which grow and shrink vertically, which each Model being 1 row) this thing should use the column as fundamental Model.
Before running the main app (the XML file reading procedures), the user will select a menu item named "Configure XML to Excel Mapping" and an interface similar to the image above will be shown.
In addition to the property binding, which has been discussed, how should I implement the drawing and erasing of black and white squares? I guess I will need some sort of "ConvertTo" bidirectional bridge from/to boolean and square drawing?

You lost me with the xml file and the tab and the wossname to the thingummybob.
I don't follow the explanation, sorry.
The way to show stuff like that isn't dependent on how the data is stored where though.
I probably wouldn't draw them, as such.
I'd probably just make each a usercontrol which bound the fill brush of a rectangle for the black white bit and used a border for the outline.
To simplify that:
<Grid> <Border>
<Rectangle Fill={Binding FillBrush}"/>
</Border>
</Grid>
FillBrush
Would be a public property solidcolorbrush exposed from your cellvm
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using GalaSoft.MvvmLight;
namespace wpf3
public class CellVM : ViewModelBase
private SolidColorBrush fillBrush;
public SolidColorBrush FillBrush
get { return fillBrush; }
set
fillBrush = value;
RaisePropertyChanged();
You can then have some logic somewhere which tells that viewmodel to show black or white fill.  Which would be that converter bridge thingy equivalent.  This thing is true then FillBrush = whiteBrush else FillBrush = blackBrush.
You could probably do it with just rectangle, lose the border and set the Stroke on the rectangle.
The stroke is the outside line round a rectangle ( or any shape).
https://msdn.microsoft.com/en-us/library/system.windows.shapes.shape.stroke(v=vs.110).aspx
And you would of course do other stuff like sizing the usercontrol and arranging an list in a list as I explained in your other thread.
Oh.................
But to answer the question in the title.
Yes you can bind all sorts of things including the point making up a polygon, brush used to draw the line and all sorts.  You could even do flashing cells if you wanted.
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML

Similar Messages

  • How the implementation differs between BW and BI , Is BI takes more time fo

    Hi All,
    I would like to know difference between implemenation and time lines for MM as mentioned below.
    How the implementation differs between BW and BI , Is BI takes more time for implementing MM module  than on BW?
    Thanks in advanced. (Full points will be awarded)
    With Regards,
    PCR

    Hi Timo,
    Thanks for response!
    But as i read from the following url: http://docs.oracle.com/cd/E15051_01/apirefs.1111/e10653/oracle/jbo/ViewObject.html, the setQueryTimeOut(int timeOutMills), the timeOut is mentioned in milliseconds. Please correct me if I am wrong.
    and i have overriden the executeQuery() method in the View Object Impl class as shown below:
    public void executeQuery() {
    Map sessionScope = ADFContext.getCurrent().getSessionScope();
    sessionScope.put("MyQuery", this);
    try {
    super.executeQuery();
    } finally {
    sessionScope.remove("MyQuery");
    throw new JboException("Query Taking too long to respond");
    and in the JAVA class i am calling the above method like this:
    monitor.setQueryTimeOut(6);
    monitor.executeQuery();
    But the issue is:
    1. The above exception message is getting carried forward to other pages as well. I mean somewhere in the session/ADFContext this message is being saved and error comes up/pops up when i click on other tabs of the page. How do i clear this?
    2. The above exception message is coming for the first time but when i click the 'Submit' button second time, i am getting the results and also the message that 'Query is taking too long to respond'. This should not be the case, everytime it should show the same message as the timeout limit is less and the query should end without fetching the results.
    Kindly let me know how to resolve the above issues, any pointers will be helpful.
    Thanks in advance.
    Edited by: user9223904 on Nov 3, 2012 4:42 AM

  • How to implement dependencies between search criteria in a Search page

    Hi All,
    I am using Jdev 11.1.1.6
    Someone please let me know how to implement dependency between the search criteria in a search page.
    i have found few articles for implementing the same in forms.
    i am trying to implement dependencies between search criteria's. i will be using two serach criteria's as lov's in Search page(Using search panel) not in simple forms.
    the second criteria lov should be listing all the results based on the firstr search criteria.
    someone pls let me know how too implement this.
    Regards
    Siva

    Thanks Timo,
    I got the result. On the dependent attbute properties,i selected the parent attribute and then followed the link for further proceeding.
    Its working fine.
    Thanks alot for the reply.
    Regards
    Siva

  • How to implement XI interfaces in online and offline modes?

    Hi Everybody,
    Can you please tell me how to implement XI interfaces in online and offline modes?
    thanks a lot,
    Ramya Shenoy.

    Hi,
    Are you looking for Push and Pull mechanism of PI?
    When the adapters like SOAP, HTTP, IDOC, etc. send the data to PI , it is nothing but a push mechanism, and hence the communication is synchronous by default.
    But adapters like JDBC, File, etc. they fetch the data from Source Applications, so it is a kind of Pull mechanism for PI, and
    by default communication is asynchrnous.
    Pls elaborate exactly what are you looking for?
    Regards,
    Supriya.

  • How to provide joins between oracle tables and sql server tables

    Hi,
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server.
    how to provide joins between oracle tables and sql server tables ? Any help on this
    Regards,
    Malli

    user10675696 wrote:
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server. Bad idea most times. Heterogeneous joins do not exactly scale and performance can be severely degraded by network speed and b/w availability. And there is nothing you can do in the application and database layers to address performance issue at the network level in this case - your code's performance is simply at the mercy of network performance. With a single glaring fact - network performance is continually degrading. All the time. Always. Until it is upgraded. When the performance degradation starts all over again.
    If the tables are not small (few 1000 rows each) and row volumes static, I would not consider doing a heterogeneous join. Instead I would rather go for a materialised view on the Oracle side, use a proper table and index structure, and do a local database join.

  • How can I distinguish between the first and the rest in Smartforms??

    I have made an Invoice in Smartform. I have to take three copies of that. In the first copy it will be printed "ORGINAL INVOICE" and in the next copies it will print "Duplicate copy".  How can I distinguish between the first and the rest in Smartforms??
    Regards,
    Subhasish

    >
    Subhasish Ganguly wrote:
    > I have made an Invoice in Smartform. I have to take three copies of that. In the first copy it will be printed "ORGINAL INVOICE" and in the next copies it will print "Duplicate copy".  How can I distinguish between the first and the rest in Smartforms??
    Hello Vamshi,
    As per the OP's requirement he has to print 3 copies of the invoice. Which according to my understanding should be printed at the same time ? May be i am wrong in interpreting this.
    You must be knowing you can control the print params of the SmartForms in CONTROL_PARAMETERS where you set the NO_DIALOG & in the OUTPUT_OPTIONS pass the number of copies.
    I think the solution you have proposed the "Original Copy" will be printed only once. (Correct me if i am wrong)
    Every time the user prints the invoice again he will be getting a "Duplicate Copy". If this is what the OP wants the logic is perfect
    Cheers,
    SUhas

  • I am new to Apple; how do i toggle between the pc and and overhead projector? Which keys?

    I am new to Apple; how do I toggle between the pc and an overhead projector? Which keys?

    Not sure how your question relates to an AirPort Extreme, AirPort Express or Time Capsule......these products:
    It appears that you have a question about a MacBook Air.  If that is the case, then please post your question in the support area for the MacBook Air linked below:
    MacBook Air

  • How can I make a drawing stable and not disappear?

    When I draw some shapes in a panel, if another window goes over the panel, then the drawing disappears and I have to draw it again.
    How can I make the drawing stable?

    Encephalopathic wrote:
    Of course you've read the graphics tutorials, and you are doing all of your drawing in a paintComponent(Graphics g) method override, correct?Encephalopathic is correct. If you want the stuff you draw to persist, you should override paintComponent() and redraw everything there. Just because you've drawn something on a component once (say, a line or an Image) does not mean it'll be redrawn the next time the component needs to be painted. You have to re-draw your custom stuff every time a repaint event is sent to the component, and that means overriding paintComponent().
    If your component will have lots of custom painting done to it (such as if you're making a MS Paint-style program), you might want to consider drawing to a BufferedImage, then in your component's paintComponent() override, just rendering the BufferedImage. Check the documentation for more details.

  • How to implement Select Between clause? ..help

    Hi
    I want to implent typical select between clause in the mappings. It is like i want to check whether the "Given date" exists between the range of dates. The range of dates is obtained from the various dimension tables. I dont know how implement that. please help.
    Typical SQL query would be ....
    and A."Month End Date" between dim.efcv_bgdt and dim.efcv_endt
    and A."Month End Date" between dim2.efcv_bgdt and dim2.efcv_endt
    and A."Month End Date" between dim3.efcv_bgdt and dim3.efcv_endt          
    and so on..............................
    ***************************************************************

    Hi
    Use a joiner operator and connect dim1, dim2, dim3 to it and in the join expression use your netween expression.
    Or do you want to use the between in the select clause? Then use an expression operator and define a case when ... between ... and ... then ... else ... expression.
    Ott Karesz
    http://www.trendo-kft.hu

  • How to configure HA between local controller and remote controller in DC

    Good day,
    If I have two Cisco 5508 Controllers, running Software version 7.4, how would my failover happen when the AP's run in local mode, and the local controller fail, and you configured your remote controller as your secondary controller.  Question is, will the APs automatically convert to FlexConnect mode when they failover to the remote controller in the DC?  I know you cannot configure HA as the controllers have to be connected with ethernet copper cable on the redundancy port, giving you a distance limitation of 100m.
    Thank you in advance
    Adrian

    Hello ,
    As per your query i can suggest you the following solution-
    In wireless network deployments that run controller versions earlier than 5.0, when a controller goes down, it takes a long time for all the APs and the associated clients to move to a backup controller and for wireless service to resume.
    The features discussed in the document are implemented on the controller CLI in WLC software release 5.0 in order to decrease the time that it takes for access points and their associated clients to move to a backup controller and for wireless service to resume after a controller goes down:
    In order to reduce the controller failure detection time, you can configure the heartbeat interval between the controller and access point with a smaller timeout value.
    In addition to the option to configure primary, secondary, and tertiary controllers for a specific access point, you can now also configure primary and secondary backup controllers for a specific controller. If the local controller of the access point fails, it chooses an available controller from the backup controller list in this order:
    •o primary
    •o secondary
    •o tertiary
    •o primary backup
    •o secondary backup
    The access point maintains a list of backup controllers and periodically sends primary discovery requests to each entry on the list. You can now configure a primary discovery request timer in order to specify the amount of time that a controller has to respond to the discovery request of the access point before the access point assumes that the controller cannot be joined and waits for a discovery response from the next controller in the list.
    Hope this will help you.

  • How to interchange data between Java Program and C++ Program

    I constructed a java program using netbeans IDE that has ability to connect with a respective DLL; I want to connect and interchange data between my java program(.jar) and VSC++ program(.exe) through DLLs.JNI uses single Dll to invoke C/C++ function in native manner,In order to increase the efficiency I tried to connect and interchange primitive data types between Java program and C++ program using that DLL(JNI implemented).
    Unfortunately C++ program cannot obtain data values that has been changed by Java Program.For example - If I declare a global int variable in DLL,java program can catch that int variable and can update it but If I run my C++ program(exe) loading same DLL simultaneously it cannot receive the updated value of that int variable declared in the DLL.
    Therefore I need a solution to share/Interchange at least primitive data and their respective values between a JAVA and C++ Program using JNI (in spite of date transferring through Sockets).JAVA TO C/C++ & C/C++ to JAVA using DLLs.
    (TWO WAY COMMUNICATION)
    JAVA.jar  <=> <JNI> <=> DLL <=> [Connector Program C/C++] <=> C/C++ .exe
    PLEASE HELP ME!! THANK YOU

    What in the are you trying to say? What does "filled into the servlet mean?" Is the map somewhere outside the servlet? In a different process? Are you asking how to extract data from a map? Something else?
    Sorry, but your question makes no sense.

  • How to share music between my ipad and iPhone

    How to share music between iPad and iPhone

    Sync both devices to the same iTunes Library on your computer. Or just re-download iTunes Store purchased music from the Purchased tab in iTunes using the same AppleID.

  • How to deal with non-continuous shapes and graphic styles

    I am not sure how to frame this question so I will try to describe the problem.
    Imagine I have two shapes. One is a hollowed out circle (like a doughnut chart). The second is a smaller filled in circle. The smaller filled in circle is then poitioned inside the hoolowed out one, so you have like a target but with no "middle" band. What I would like to do is apply a graphic style to the COMBINED shape. The problem is that if I select both shapes and apply the style, each shape will have its own style, whereas what I want is for the style to be distributed over the two shapes as if they were one. And if I use the shape builder tool, when I join the two shapes, from the outer hollowed out circle to the inner filled in circle, I fill in the shape for the "middle band" whereas I want that middle band to be empty.
    You can probably tell I don't know Illustrator and come from Photoshop. In PS, I would simply select my two shapes and apply a style. Since my selection forms a shape that ignores the middle band, the style applies evenly to the whole selection. Can I do something similar in Ilustrator? In reality my network of shapes is more complex that the example above and I do need to keep it a vector.
    Thank you for your suggestions.
    Chris

    There are really two types of Graphic Styles - Object level styles and Group level styles. There is no way to tell which style is which. So if you have an Object level Style and try to apply it to a group of objects or often a compound shape, you get each individual object having the style. If you have a Group level style and try to apply it to only an object, you often get nothing applied.
    It perhaps sounds like you have an Object level style and are trying to apply it to a group.
    There's no way to convert an Object level style to a Group level style or vice versa. The best (and pretty much only) way I've found to get around this is to apply the style to teh correct level then make a note of all the style settings, select the other level and recreate the style for that level.
    Whether or not a style applies correctly has a great deal to do with specific aspects of the style in addition to what level the style was generated from. This is a frustrating aspect of Graphic Styles.

  • How to create dblink between oracle 10G and mysql

    I want to create dblink between oracle 10G and mysql
    I create it in ECC6.0 using DBCO transaction tcode,which database type can choose?Microsoft sql server?Because there have no mysql item.
    I choosed MSS  so that I can test it, but it failed,there is an error that 'ORA-12569:TNS:packet checksun failure'.
    I configured the oracle tnsnames.ora file like this:
         CW.WORLD =
               (DESCRIPTION =
                    (ADDRESS_LIST =
                          (ADDRESS =
                                  (COMMUNITY = SAP,WORLD)
                                  (PROTOCOL = TCP)
                                  (HOST = XX.XX.XX.XX)
                                  (PORT = XXXX)
                   (CONNECT_DATA =
                        (SID = XXX )
                   (HS = ok )
    When I tnsping CW,it will fail,like this " TNS-12569:TNS:packet checksum failure"
    How can I do.

    I want to know if this possible?

  • How to change space between folder icon and text on personal toolbar?

    I have a few folders on the personal toolbar with just a letter to indicate what they are, but on the theme I'm using, the letter is too far away from the folder it belongs to and partially falls under the next folder icon. I don't want to increase the spacing between all icons to show the full letter, as this decreases the amount of icons you can have on the toolbar. Instead I want to decrease the space between the folder and text belonging to it, so it's right next to it instead of 5 pixels away.
    I've found various entries to change padding and margins in userChrome.css, but it's always for around the icon, I don't know where to look to close the space between the icon and its corresponding text.
    Any help would be greatly appreciated, thanks.

    Did you check the value of the margin-left of the text?
    You can set negative margin values if necessary.
    <pre><nowiki>#PlacesToolbarItems .toolbarbutton-text { margin-left: -2px !important; }</nowiki></pre>
    Add .bookmark-item[container] if you only need this for folder items
    <pre><nowiki>#PlacesToolbarItems .bookmark-item[container] .toolbarbutton-text { margin-left: -2px !important; }</nowiki></pre>

Maybe you are looking for