How to bind a WrapPanel's items with different width to respective Grid's ColumnWidth??

I have a Grid which has two columns. Inside the grid there will be WrapPanel which starts from column 0 and has columnspan of 1. This WrapPanel has two children. I want one children's width to be the width of col0 and other to be the width of col1. I have
tried something(code below) but it is not working.[Initially I implemented this without wrappanel that is my grid will have two columns,one column takes 60% of the total width and also has minimum width, other column  takes 40% of the total width.So everything
is fine.But when I resize my window I want the second column to get wrapped to the bottom of the 1st column.So I added wrappanel].
The following code explains well:
<Grid Grid.Row="1" Margin="0,20,0,0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="6*"></ColumnDefinition>
                                <ColumnDefinition Width="4*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <WrapPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="2"  HorizontalAlignment="Left" VerticalAlignment="Top">
                                <StackPanel Margin="0" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[0].ActualWidth}">
           <Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}" FontSize="13"/>
                                       <Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
</StackPanel>
                                <StackPanel Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[1].ActualWidth}">
                                    <TextBlock Foreground="{DynamicResource VsBrush.ToolWindowText}"></TextBlock>
                                    <Button Margin="0,5,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
                                </StackPanel>
                            </WrapPanel>
 </Grid>

Why don't you just remove the WrapPanel and set the Grid.Column attached properties of the StackPanels?:
<Grid Grid.Row="1" Margin="0,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*"></ColumnDefinition>
<ColumnDefinition Width="4*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Margin="0" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[0].ActualWidth}">
<Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}" FontSize="13"/>
<Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
</StackPanel>
<StackPanel Grid.Column="1" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[1].ActualWidth}">
<TextBlock Foreground="{DynamicResource VsBrush.ToolWindowText}"></TextBlock>
<Button Margin="0,5,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
</StackPanel>
</Grid>
I am afraid that it makes no sense to define two ColumnDefinitions if you just put a single element with the Grid.ColumnSpan property set to 2 in the Grid. This effetively makes the WrapPanel span the two columns and then there is only a single column...You
might as well put the Grid inside the WrapPanel then:
<WrapPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Top">
<Grid Grid.Row="1" Margin="0,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*"></ColumnDefinition>
<ColumnDefinition Width="4*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Margin="0" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[0].ActualWidth}">
<Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}" FontSize="13"/>
<Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
</StackPanel>
<StackPanel Grid.Column="1" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[1].ActualWidth}">
<TextBlock Foreground="{DynamicResource VsBrush.ToolWindowText}"></TextBlock>
<Button Margin="0,5,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
</StackPanel>
</Grid>
</WrapPanel>
There is also a SharedSizeGroup property that you can set if you are adding several Grids to the WrapPanel and want the columns of all Grids to have a common width:
https://msdn.microsoft.com/en-us/library/system.windows.controls.definitionbase.sharedsizegroup(v=vs.110).aspx
<WrapPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Top">
<Grid Grid.Row="1" Margin="0,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*" SharedSizeGroup="a"></ColumnDefinition>
<ColumnDefinition Width="4*" SharedSizeGroup="b"></ColumnDefinition>
</Grid.ColumnDefinitions>
</Grid>
<Grid Grid.Row="1" Margin="0,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*" SharedSizeGroup="a"></ColumnDefinition>
<ColumnDefinition Width="4*" SharedSizeGroup="b"></ColumnDefinition>
</Grid.ColumnDefinitions>
</Grid>
</WrapPanel>
Please remember to close your threads by marking helpful posts as answer.

Similar Messages

  • How can I make a bullet item with a custom Bullet character such as a check mark ?

    Hi Everyone,
        I'd like to make a list with Bullets, but I can find a bullet character which I am looking for. Especially I'd like to make Bullet characters available in PowerPoint, such as check mark, and others. How can I make a bullet item with a custom Bullet character or picture such as a check mark ?
      Regards
      Cem

    Cem777 wrote:
    Hi Everyone,
        I'd like to make a list with Bullets, but I can find a bullet character which I am looking for. Especially I'd like to make Bullet characters available in PowerPoint, such as check mark, and others. How can I make a bullet item with a custom Bullet character or picture such as a check mark ?
      Regards
      Cem
    Search InDesign help for "change bullet characters" (without quotes,) and use the technique described there with the Zapf Dingbat font as suggested by Peter S.
    You can also use InDesign's glyphs panel (Window > Type & Tables > Glyphs) to scroll through all the character sets in all the fonts that InDesign has access to on your system, to look for check mark characters.
    After you have created a paragraph style that applies the customized check-mark-bullet that you want, every time you apply that paragraph style, the custom bullet appears. So, while it's a few steps to set up the style the first time, from then on it's automatic.
    If you really need a particular bullet that's not in any font you have, you'll need to search for fonts that have check mark characters and buy one or use a free one. Caution: free fonts aren't always created to the same strict standards that commercial fonts from reputable font foundries observe; free fonts sometimes cause problems when printing or exporting to PDF. You can search Google for "fonts with check mark" (without quotes.)
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Any suggestions how can I delete or archive items with DocTitle as *.html ?

    Any suggestions how can I delete or archive items with DocTitle as *.html ? These are the email templates checked in by Fusion Apps, and all I know are the DocTitles.
    Archive servervice seems a better way to delete items at same time keep a backup. but not sure what's the correct way to setup/use the "aExportQuery" parameter. Seems it's been ignored from the ADD_ARCHIVE and EXPORT_ARCHIVE idccommands, codes listed below.
    @Properties LocalData
    IdcService=ADD_ARCHIVE
    IDC_Name=CommonDomain_ucm11g_cs
    aArchiveName=archive_test
    aArchiveDescription=this is an archive test
    aCopyWebDocuments=0
    aDoReplace=0
    aExportQuery=Standard Query ValuePanel UseExportDate 0 AllowExportPublished 0 AllRevisions 1 LatestRevisions 0 NotLatestRevisions 0 MostRecentMatching 0 CurrentIndex 0 Clauses dDocTitle:contains:.html CustomQuery dDocTitle%LIKE%'#%.html#%' IsCustom 0
    @end
    @Properties LocalData
    IdcService=EXPORT_ARCHIVE
    aArchiveName=archive_emt
    IDC_Name=CommonDomain_ucm11g_cs
    aExportQuery=Standard Query ValuePanel UseExportDate 0 AllowExportPublished 0 AllRevisions 1 LatestRevisions 0 NotLatestRevisions 0 MostRecentMatching 0 CurrentIndex 0 Clauses dDocTitle:contains:.html CustomQuery dDocTitle%LIKE%'#%.html#%' IsCustom 0
    dataSource=RevisionIDs
    aDoDelete=1
    @end
    <<EOD>>

    You could use the Archiver app. You can use that app as-needed or set it up so that all items are setup to delete once they're checked in.
    -ryan

  • How to use the same OC4j server with different port number

    How to use the same OC4j server with different port numbers..?
    I have to OC4J installed on my machine on different hard disk drives....
    I want to be able to run both the server simultaneously..?
    is it possible ..it yes then how..?
    for that i have changed the port number of one server...
    but when i am trying to start the other server with different port number..it says that JVM -Bind already...
    Is there any clues...?
    Nilesh G

    In the config directory:
    default-web-site.xml: Change the port the HTTP listener listens on
    jms.xml: Change the port the JMS service listens on
    rmi.xml: Change the port the ORMI listener listens on.
    Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
    Rob
    Oracle

  • How to download the same song(track) with different keys? iTunes seems to think I have already downloaded the song and will not download the song in a different key of the Demo Track

    How to download the same song(track) with different keys? iTunes seems to think I have already dowloaded the song and will not let me download the song in a different key or the Demo.

    Hello Jigz19,
    It sounds like you are unable to play a couple of songs from your library becuase you get a message that the computer is unauthorized to play, but other content purchased that same day works without issue. I would verify that the affected songs were purchased with the same Apple ID first:
    Recovering a forgotten iTunes Store account name
    http://support.apple.com/kb/ht1920
    Open iTunes
    Highlight one of the items you have purchased (You can find your purchases in your Purchases playlist).
    Choose File > Get Info.
    Click the Summary tab.
    The Account Name area will list the account used to purchase the item. Unless you have changed accounts, this is your iTunes Store account name.
    If so, then delete the songs:
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
    http://support.apple.com/kb/HT5772
    Then re download them with this article:
    Download past purchases
    http://support.apple.com/kb/ht2519
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • How can I share the home folder with different accounts on the same mac?

    Hi, here's a question:
    How can I share the home folder with different accounts on the same mac?
    The whole point being not to have to install all my apps, and move all my files each time between users.
    The second thing would be to be able to modify one document on one account, and have it changed on the other account without having to copy it.
    I would like to have a pro and a private account on my mac.
    Thanks for you answers,
    Doug

    Your apps should not be installed in your home folder--they should be in /Applications where every user can access them.
    If you want to share things between users on the same Mac, use the /Users/Shared folder. Keep your home folder private. Trying to defeat the protections on the home folder subfolders just gets messy. I've never bothered to figure out all of the problems associated with it so I can't explain how to do it.
    Even with using Shared, you would need to alter the ACLs on the shared folder in order to allow both users to modify the documents.
    You must create a Group in Users & Groups and put each user in that group. Then create a folder inside /Users/Shared where you want to share the various files.
    Then, add an ACL to the shared folder that gives the group special permissions. on that folder.
    sudo chmod -R +a "<sharinggroup> allow delete,chown,list,search,add_file,add_subdirectory,delete_child,file_inherit,directory_inherit" /Users/Shared/<sharing folder>
    Replace <sharinggroup> and <sharingfolder> with the name of your group and your folder. Then, run the command in the Terminal.
    With that ACL, each user in <sharinggroup> will be able to alter the files created by any user in the group in that <sharingfolder>.
    Essentially, the client OS is not designed for true file sharing among the individual users. It is designed to isolate each user account from the others.

  • Merge of two same items with different Qty in po

    Hi Experts,
    Is it possible to merge two Same items with different Quantity into 1.
    For Eg:- 2 similar  items  with qty 2 & 3 must show 5 qty appearing once.Is it possible through Transnotification what should be the query.
    Mona

    Hi Mona,
    If you want to display a Purchase Order on screen summarized by item, set the "Summary Type"  to "By Item" (by default it is "No Summary"). The PO lines will then be summarized by item with total quantity for each item.
    If you want to display it on the printout then you need to modify the PLD. It is quite easy actually. You can use the Repetitive Area Footer to display the summary of each item and set all fields in the Repetitive Area to be not visible and set the height to minimum height.
    Cheers,
    Marini

  • Can we clear more line items with different currency within one Vendor

    Dear All,
    Please guide us the following issue is
    Can we clear two line items with different currency within one Vendor (i.e., Down Payment entry passed in EUR and Invoice in JPY).
    Thanks in advance.
    Regards
    Srinivas

    Hi
    I suppose this should be possible in F-44, for any difference in forex enter a new line item 'Charge off diff.' to Dr/Cr Forex gain/loss account
    Thank You,

  • How to generate a second csv file with different report columns selected?

    Hi. Everybody:
    How to generate a second csv file with different report columns selected?
    The first csv file is easy (report attributes -> report export -> enable CSV output Yes). However, our users demand 2 csv files with different report columns selected to meet their different needs.
    (The users don't want to have one csv file with all report columns included. They just want to get whatever they need directly, no extra columns)
    Thank you for any help!
    MZ

    Hello,
    I'm doing it usually. Typically example would be in the report only the column "FIRST_NAME" and "LAST_NAME" displayed whereas
    in the csv exported with the UTL_FILE the complete address (street, housenumber, additions, zip, town, state ... ) is written, these things are needed e.g. the form letters.
    You do not need another page, just an additional button named e.g. "export_to_csv" on your report page.
    The csv export itself is handled from a plsql procedure "stored procedure" ( I like to have business logic outside of apex) which is invoked by pressing the button "export_to_csv". Of course the stored procedure can handle also parameters
    An example code would be something like
    PROCEDURE srn_brief_mitglieder (
         p_start_mg_nr IN NUMBER,
         p_ende_mg_nr IN NUMBER
    AS
    export_file          UTL_FILE.FILE_TYPE;
    l_line               VARCHAR2(20000);
    l_lfd               NUMBER;
    l_dateiname          VARCHAR2(100);
    l_datum               VARCHAR2(20);
    l_hilfe               VARCHAR2(20);
    CURSOR c1 IS
    SELECT
    MG_NR
    ,TO_CHAR(MG_BEITRITT,'dd.mm.yyyy') AS MG_BEITRITT ,TO_CHAR(MG_AUFNAHME,'dd.mm.yyyy') AS MG_AUFNAHME
    ,MG_ANREDE ,MG_TITEL ,MG_NACHNAME ,MG_VORNAME
    ,MG_STRASSE ,MG_HNR ,MG_ZUSATZ ,MG_PLZ ,MG_ORT
    FROM MITGLIEDER
    WHERE MG_NR >= p_start_mg_nr
    AND MG_NR <= p_ende_mg_nr
    --WHERE ROWNUM < 10
    ORDER BY MG_NR;
    BEGIN
    SELECT TO_CHAR(SYSDATE, 'yyyy_mm_dd' ) INTO l_datum FROM DUAL;
    SELECT TO_CHAR(SYSDATE, 'hh24miss' ) INTO l_hilfe FROM DUAL;
    l_datum := l_datum||'_'||l_hilfe;
    --DBMS_OUTPUT.PUT_LINE ( l_datum);
    l_dateiname := 'SRNBRIEF_MITGLIEDER_'||l_datum||'.CSV';
    --DBMS_OUTPUT.PUT_LINE ( l_dateiname);
    export_file := UTL_FILE.FOPEN('EXPORTDIR', l_dateiname, 'W');
    l_line := '';
    --HEADER
    l_line := '"NR"|"BEITRITT"|"AUFNAHME"|"ANREDE"|"TITEL"|"NACHNAME"|"VORNAME"';
    l_line := l_line||'|"STRASSE"|"HNR"|"ZUSATZ"|"PLZ"|"ORT"';
         UTL_FILE.PUT_LINE(export_file, l_line);
    FOR rec IN c1
    LOOP
         l_line :=  '"'||rec.MG_NR||'"';     
         l_line := l_line||'|"'||rec.MG_BEITRITT||'"|"' ||rec.MG_AUFNAHME||'"';
         l_line := l_line||'|"'||rec.MG_ANREDE||'"|"'||rec.MG_TITEL||'"|"'||rec.MG_NACHNAME||'"|"'||rec.MG_VORNAME||'"';     
         l_line := l_line||'|"'||rec.MG_STRASSE||'"|"'||rec.MG_HNR||'"|"'||rec.MG_ZUSATZ||'"|"'||rec.MG_PLZ||'"|"'||rec.MG_ORT||'"';          
    --     DBMS_OUTPUT.PUT_LINE (l_line);
    -- in datei schreiben
         UTL_FILE.PUT_LINE(export_file, l_line);
    END LOOP;
    UTL_FILE.FCLOSE(export_file);
    END srn_brief_mitglieder;Edited by: wucis on Nov 6, 2011 9:09 AM

  • Delivery is pulling items with different delivery dates from sales order

    hi all,
    i have a sales order with two line items with different delivery dates(eg 1st and 21st). material availability date for them is different. when i tried to create the delivery on 1st it is pulling the 2nd item whose delivery date is on 21st.
    where can i control this.
    thanks in advance
    harini

    Hi,
    let us take one example>materials A and B,
    A delivery date is 22.01.2008(maintained in schedule lines in SO)
    B delivery date is 30.01.2008(maintained in schedule lines in SO)
    now i want to deliver material A on 22.01.2008
    by default system will give you only material A in the item line
    material B will not be displaced in the second line item
    now i want to deliver material B on 30.01.2008
    by default system will show me material B in delivery line item
    if in case material A is not delivered then delivery will show you two line items
    i.e., Material A and B
    i think you have understood the difference
    regards,
    US

  • How can I share applications and softwares with different users of the same computer?

    First question: How can I share applications and softwares with different users of the same computer?
    Second : Can I use 2 different I cloud accounts to synt 2 iphones with one computer?

    Applications installed on the admin account are available to all user accounts unless Parental Controls are enabled.
    Yes.   Separate user accounts, help here >   How to use multiple iPods, iPads, or iPhones with one computer

  • How to add serial number contolled item with serial numbers in sales order.

    Hi OM Functional Experts,
    I need a help on sales order booking.
    We have serial controlled items in our inventory. At the time of booking a sales order, we need to call the items with the appropriate serial numbers [ for example, if i book an item for a qty of 10, then, the system should get the details ( serial number ) of the 10 item's serial number ].
    And the serial numbers are Pre-defined by the organization for their internal tracking from the porcess 1 till end of the assembly line.
    The purpose of this step, is to reduce the particular serial numbered item from the inventory, when we reserve/pick release the sales order.
    thanks in advance.
    Rdx,
    J kannan
    Edited by: J Kannan on Feb 17, 2009 1:23 AM

    Kannan
    OK. Unfortunately reservations cannot be created at the serial number level. So the unsupported way of doing this is updating the mtl_serial_numbers tables. I hope you would know (by some means) which serial numbers you want to allocate to a specific sales orders. If you know, update group_mark_id column in mtl_serial_numbers table with your order_line_Id, This will avoid any one from picking the serial numbers (they will not come up in the LOV or will not be auto allocated).
    But you have to make sure to take it off when you actually want to pick this order line and allocate this serial number. So just before you pick release/ confirm this order line you need to update column back to null so that you can allocate that serial number.
    Thanks
    Nagamohan

  • How to create web items with different quantities?

    Hi,
    I have B1 inventory items that are single items but we will be selling them on the web as 'packages' of different quantities.  For example, we would like the user to be able to select the web item, then be presented with a drop down (attribute) of case (10 items), 1/2 pallet (80 items) or full pallet (160 items).  Is it possible to setup a product line master which is a B1 inventory item, then define the child items, non B1 items, and somehow have the proper quantities ordered?  (ie. ordering 2 cases creates a B1 order for our parent item with a quantity of 20)
    If I can do this, I have another concern.  Since we are currently using our test database, if I setup all of these child items and create the parent/child relationships, will these be lost once we swtich the database over to our live/production database?
    Thanks,
    David

    Personally, I would add the javascript to the Item's description with additional drop downs there, upon selecting the drop down, this would populate the QTY field which i would hide via javascript as well, but will be passed on to the Cart/checkout page.
    There is a somewhat similar discussion here:
    [Re: Custom price logic|Re: Custom price logic]
    James

  • How to create inbound delivery for items with no confirmation control key.

    hi Please help me with this..
    are there any user exits to create an inbound delivery for scheduling agreement items with no confirmation control key.
    my req is
    i have 12 items (me33 transaction) of them three have confirmation control key populated and out of those three 2 will be deleted so only one item is left for inbound delivery creation, but i need to have all this possible for all items with or without confirmation control key.
    thank you

    hi
    for inbound delivery there is BAdi called LE_SHP_DELIVERY_PROC... in there is method called ITEM_DELETION... in this u can flag the item to delete or not..
    this will be triggered for inbound as well as oubound delivery..
    you can check confirmation status for the PO in the table EKES... in this table there is filed called EBTYP.. using this field u can check the PO item confirmation status..
    I hope above information is helpuful for u

  • Error message "can't nest items with different editing timebases"

    Hello final cut wiz group!
    I just finished a soundtrack in Logic Pro 7 and am trying to import the XML into Final Cut 5 with my G5 (OS 10.4.1). I'm getting a message that says "30 fps, NTSC rate does not match sequence preset time base 25 fps. The timebase defined in the the XML will be used. Unable to edit clip into sequence."
    I can get the sound to play after rendering, but when I try to bring the clip into the sequence, I get an error that says cannot nest items with conflicting timebases?
    Anybody have an idea how I can get myself out of this problem?
    Thanks for your help!
    DJ

    I'm not too familiar with using the XML functions but 25fps I believe is PAL and 30fps would be NTSC. That is a problem. When you export from Logic you may be able to change a frame rate setting in the export dialog. Or you could just bounce the file into a compatable format such as AIF or wave/PCM and then import that. Good luck.

Maybe you are looking for