WPF tab item design Issue !
Hi,
I am facing a situation with designing tab control.My requirement is depicted below:
I have this tab called Precedent and I might have 2/3 more tabs depending on certain conditions and then the remaining width of the tab control should feature like a disabled tab item running through the entire width of the tab control,
as depicted above.
But this is what I could achieve so far
meaning, i couldnt make that disabled default tab run through the entire width of the tab control, as per my requirement.
Can anyone please suggest what I have been missing here.
Thanks
Samjukta
If I understand correctly.
Basically, you want that greyed rounded bit behind the active tabs.
I would be inclined to "cheat" and not have disabled tabs in there.
Leaving just the one tab there.
Put a rounded border of the appropriate colour behind your tabcontrol.
Done.
This isn't quite the right colour and I've obviously not styled the tabcontrol but it should give you the idea:
<Grid Name="Root" >
<Border Background="LightGray" CornerRadius="8,8,0,0"/>
<TabControl >
<TabItem>
<TabItem.Header>
<TextBlock Text="Precedent"/>
</TabItem.Header>
</TabItem>
</TabControl>
</Grid>
Your question was about the tab headers.
But....
If you bind the itemssource of your tabcontrol you can easily add/remove entries from a collection of tabitems.
Or you could just add or remove tabitems directly.
Please don't forget to upvote posts which you like and mark those which answer your question.
My latest Technet article - Dynamic XAML
Similar Messages
-
Design a WPF Tab control similar to the Wpf Ribbon
Hi,
I have a requirement to show the list of tools similar to that of a Microsoft word's Ribbon, but then i find some limitations in the Wpf Ribbon i..e it can not be completely customised, for example- The Ribbon tab header's height has to be increased
when selected as shown in the figure, but I couldn't find any relevant solution to accomplish it, so I have decided to use the native Tab Control and make it look like a Ribbon bar as suggested by Andy
ONeill
Expected Ribbon Tab header Style(Done using native Tab Control)
But the issue here is I'm not able to handle the resize behaviour of the Wpf tab control.. when the tab control is resized it has to arrange all the elements in the same way that the ribbon bar does
on Dynamic Resizing..
can you help me building a Tab control with this feature...
Thanks,
Sai Kiran ReddyThanks for your valuable reply Mr. Andy ONeill can you please tell me how to mimic the Dynamic
Resizing behaviour of Ribbon bar using the WPF Tab Control..
There is an awful lot of functionality in a ribbon.
And it's pretty tricky to use.
Personally, I usually go with a tabcontrol and then add functionality I need from there.
Often two tabitems with horizontally arranged listviews are sufficient.
You can see that approach in use in my article:
http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
<TabControl HorizontalAlignment="Left" x:Name="CommandTab">
<TabItem Header="Navigate" FontSize="10">
<ListView ItemsSource="{Binding Views}" BorderBrush="Transparent" FontSize="12" FontWeight="Bold"
ScrollViewer.CanContentScroll="False"
>
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"></StackPanel>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
<ListView.ItemTemplate>
<DataTemplate>
<Button Command="{Binding Navigate}"
BorderThickness="0" Height="32" Width="100"
Background="{StaticResource LightBrightGradientBrush}"
Foreground="{StaticResource DarkDullBrush}"
>
<TextBlock Text="{Binding ViewDisplay}"
TextAlignment="Center"
/>
</Button>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</TabItem>
<TabItem Header="Edit" x:Name="EditTabItem" FontSize="10">
<ListView ItemsSource="{Binding Commands}" BorderBrush="Transparent" FontSize="12" FontWeight="Bold"
ScrollViewer.CanContentScroll="False"
>
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
<ListView.ItemTemplate>
<DataTemplate>
<Button Command="{Binding Send}"
BorderThickness="0"
Margin="0" Padding="0"
>
<Path Data="{Binding IconGeometry}" Stretch="Uniform"
Style="{StaticResource PathOpacityStyle}"
Fill="{StaticResource MidDullBrush}" Width="32" Height="32"/>
<Button.ToolTip>
<TextBlock Text="{Binding CommandDisplay}"/>
</Button.ToolTip>
</Button>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</TabItem>
</TabControl>
By the way.
I think if you really work at it you can customise the ribbon by re templating the thing.
On one project I ran that work and wrangling the riibbon generally turned out to pretty much eat up all the time of one of my guys though.
Hope that helps.
Recent Technet articles:
Property List Editing ;
Dynamic XAML -
Possible to have spry Tabbed Items vertical rather than horizontal?
Hi,
I'm basically trying to set up a website that uses spry tabbed instead of links because I would like to have a continuous, rolling flash image browser running in a separate div. Links would obviously refresh the plug-in, and it's not what I'd like.
I did something similar before using spry, and had it navigated on the top, but for this design I'd like to have the links going down vertically, with content to the right of them.
Is this possible using tabbed items?
Also, is it wise that I use spry and a flash/shockwave plug-in, as this is a business website and would need to be opened at all computers?
Cheers in advance!
Ivan Reshetilov
http://www.ivanreshetilov.co.ukhttp://labs.adobe.com/technologies/spry/samples/tabbedpanels/tabbed_panel_sample.htm
Also yes you can use Spry together with Flash. If it gives issues. Set the flash's wmode to transparent -
Design issue with sharing LV2 style global between run-time executables
Hi,
Just when I though that I had everything figured out, I ran into this design issue.
The application that I wrote is pretty much a client-server application where the server publishes data and the client subscribes data using data sockets. Once the client gets all the data in the mainClient.vi program, I use LV2 style (using shift registers) to make the data global to all the other sub-vi’s. So the LV2 is in initialize mode in the mainClient.vi program and then in the sub-vi’s the LV2 is in read mode. Also, I had built the run time menu for each sub-vi that when an item is selected from the menu, I would use the get menu selection to get the item tag which will be the file nam
e of the sub-vi and open the selected sub-vi using vi server. This all worked great on my workstation where I have labVIEW 7.0 Express installed. But the final goal is to make exe’s for each of these sub-vi’s and install runtime on the PC’s that do not have labVIEW installed. Of course when I did that only the mainClient.exe program was getting the updated data from the server but the sub-vi’s were not getting the data from the mainClient.exe. I did realize that the reason for this is due to the fact that I had compiled all the sub-vi’s separately and so the LV2 vi is now local to each executable (i.e. all executables have their own memory location). Also, the run-time menu did not work because now I am trying to open an executable using vi server properties.
To summarize, is there a way to share LV2 style global's between executables without compiling all of the sub-vi’s at one time? I tried using data-sockets (local-host) instead of LV2 st
yle gloabls to communicate between the sub-vi’s but I ran into performance issues due to the large volume of data.
I would really appreciate it if anyone can suggest a solution/alternative to this problem.
Thanks
Nish> 1) How would I create a wrap-around for the LV2.vi which is
> initialized in my mainClient.vi and then how would I use vi server in
> my sub-vi to refer to that LV2.vi?
> You mentioned that each sub-vi when opened will first connect to the
> LV2.vi via via-server and will keep the connection in the shift
> register of that sub-vi. Does this mean that the sub-vi is accessing
> (pass-by-reference) the shared memory of the mainClient.vi? If this
> is what you meant I think that this might work for my application.
>
If the LV2 global is loaded statically into your mainClient.vi, then any
other application can connect to the exe and get a reference to the VI
using the VI name. This gives you a VI reference you can use to call
the VI. Ye
s, the values will be copied between applications. That is
why you need to add access operations to the global that returns just
the info needed. If you need the average, do that in the global. If
you need the array size, do that in the global. Returning the entire
array shouldn't be a common operation on the LV2 style global anyway.
> 2) Just to elaborate on my application, the data is
> transferred via DataSockets from the mainServer.vi on another PC to
> the client’s PC where the mainClient.vi program subscribes the
> data (i.e. 5 arrays of double type and each arrays has about 50,000
> elements). The sub-vi’s will have to access these arrays
> located on the mainClient.vi every scan. Is there any limitation on
> referencing the mainClient.vi data via vi-server from each sub-vi?
Your app does need to watch both the amount of data being passed across
the network, and the amount being shared between the apps. You might
want to consider puttin
g the VIs back into the main app. What is the
reason you are breaking them apart for?
Greg McKaskle -
STO from unrestricted to E stock from TAB item in Sales Order?
Hi all,
We have the situation where we are shipping stock intra-company via the STO Process. The requirements are being driven of a TAB item on the Sales Order, and the purchase req is being generated automatically, and being converted to STO > Delivery > Shipped then received at requesting plant.
If we leave the Dependent Requirements Indicator on MRP4 in Material Master to blank the stock is shipped from the shipping plant as Sales Order stock and received into the requesting plant as Sales Order stock. If we change the Dependent Requirements Indicator on MRP4 in material Master to '2' then it trys to ship the stock as unrestricted, and the theory is that is should be received as Sales Order stock.
Shipping as Unrestricted and receiving as Sales Order stock is exactly the scenario we are trying to achieve.
We initially ran into an issue with error message M7146. OSS Note 305582 describes this situation, and says we need to change the consumption posting on Account Assignment Catgegory M to be 'E - Accounting via Sales Order'.
So we changed this, and now when we try and create the Sales Order we get an error message kd051 Maintain a Settlement Profile. We are told by our Finance people that we cannot use the Sales Order as a cost collector as it impacts the PA reporting, so I am wondering if anyone has any suggestions as to how we can resolve this issue.
Many Thanks.Dear all,
can u update me with the depot to depot process ( like there some 20 qty in 1300 depot i wanted to transfer the 20 qty to 1200 depot)
what is the process should be followed
i am still not getting the right way
please guide me my process i am following is :
supplying plant
Create a STO PO from receiving plant T-code ME21n
Create delivery with ref to STO PO T-code VL10b
Post goods issue T-code VL02n
Create Depot Excise invoice with Reference to delivery document T-code J1IJ
Create pro-forma invoice T-code VF01
Receving plant
Goods receipt (With out excise capture selection) T-code MIGO
Capture excise invoice at depot (Enter challan qty and Excise baseAmount) T-code J1IG
Please guide me on this as it is critical -
Dear Experts,
While i create packaging in Handling unit ther is a tab of Additional Data in Sales and distribution.In that we have Item Category - Issue is i am inputing manual item category TAN but i want to pick automatically.
I am unable to find the setting for packaging Item category of Sales and distribution.
Plz provide your inputs.
Thanks
Shri...Apart from what Jignesh suggested, follow the following steps for automatic packing:
1 In the Shipping screen choose Pack/load - Pack delivery. You see the Change outbound delivery screen.
2 Enter the number of the delivery that you want to pack, or select one using the matchcode function
3 Press ENTER. You see the overview screen Change Outbound Delivery: Overview - Quantities.
4 Choose Edit, then Pack. You see the screen Pack Items
If you want to pack all delivery items that are not packed, choose Edit - Automatic packing.
In this function, you do not need to select any items individually. All items and shipping units of the selected delivery that are not packed are automatically placed at the disposal of the user exits for automatic packing.
If you only wish to have certain items in the delivery packed, choose Edit then Autom.pack items
With this function, you must select the items and shipping elements to be packed. Then, only the selected unpacked items are placed into an internal table.
If you have set the supplied example to active, the program automatically searches, in both procedures, for the respective shipping materials for the items to be packed.
Thanks & Regards
JP -
Most ofter, we are using TAB item cat for our order, one so map to one po, it is the simplest scenario, but sometime, we have inventory, we would like to use the in ventory first, then issue po to purchase item. I should said, I want to item check the available first, then the remain item will issue PO for purchase. Thanks!
Hello Friend,
In that case assign a approval process and workflow to your order types.So when ever an order is saved it will be locked for further activities and unless and until it is released manually by the concerned officer then only it will trigger the future actions. Through workflow the person responsible will get the notification for approval. -
Design issue using JFrame, JPanel, JLabel
I have been working on this problems for several months now and I and nearly finished.
I have a design question I hope others from this forum can provide some incite to the best approach.
The problem space is a 8 X 8 Chessboard. I have designed a board using JPanels and JLables sitting inside a JFrame. In each square on the chessboard is a JLabel with an image. The "board" sits in the DEFAULT LAYER of a JLayeredPane. As the user clicks a specific square, a queen is placed in the square (8-queens problem). The only thing I do is swap out the image. All this works well--thanks to several of you from this forum. :-)
When I add a new queen to the board, the application goes through the evaluation of attack positions. Next, the application should display the new chessboard with only the queens not threaten by other queens. I keep up with the chessboard using an boolean array internally. I build a second boolean array for the new or refreshed chessboard.
What I want to do is build a second chessboard and "swap" it out with the one in the default layered pane. Can someone be so kind and shine some light on this design issue for me?
Thank you for taking the time to read my post.I don't understand this approach. Swing is by default 'double buffered' and will not flicker. You will get this be default since this is one of the things the Swing painting model gives over AWT.
You should look at just using JComponent and the paintComponent() method for drawing what you need.
What I've done in the past is have a simple XML JDoM model. Have components that render themselves based on this model.
Changing the model then I just issues a call to repaint() at the top level container.
You can also add and remove items from the parent container. Then issue validate() or repaint(). Can't remember now but I think validate() hits the layout manager logic and then repaints.
I'm pretty sure the Romain guy posted an example of how to easily draw a background chess board in a panel. ;-)
The tree concept might really prove useful for a 'gaming tree' approach at the AI also.
If you look at the Java3D API you will see they use a tree to represent what is rendered and the details about it. Really nice until you change something in the tree that cause the renderer to blow up. ;-)
I guess the moral is always make small simple changes and test.
Hope this is helpful. -
Design issue with the multiprovider
Design issue with the multiprovider :
I have the following problem when using my multiprovider.
The data flow is like this. I have the info-objects IobjectA, IobjectB, IobjectCin my Cube.(Source for this data is s-systemA)
And from another s-system I am also loading the masterdata for IobjectA
Now I have created the multiprovider based on the cube and IobjectA.
However, surprisingly join in not workign in multiprovider correctly.
Scenario :
Record from the Cube.
IObjectA= 1AAA
IObjectB = 2BBB
IObjectC = 3CCC
Records from IobjectA =1AAA.
I expect the record should be like this :
IObjectA : IObjectB: IObjectC
1AAA :2BBB :3CCC
However, I am getting the record like this:
IObjectA : IObjectB: IObjectC
1AAA :2BBB :3CCC
1AAA : # :#
In the Identification section I have selected both the entries for IobjectA still I am getting this error.
My BW Version is 3.0B and the SP is 31.
Thanks in advance for your suggestion.May be I was not clear enough in my first explanation, Let me try again to explain my scenario:
My Expectation from Multi Provider is :
IObjectA
1AAA
(From InfoObject)
Union
IObjectA IObjectB IObjectC
1AAA 2BBB 3CCC
(From Cube)
The record in the multiprovider should be :
IObjectA IObjectB IObjectC
1AAA 2BBB 3CCC
Because, this is what the Union says .. and the Definition of the multiprovider also says the same thing :
http://help.sap.com/saphelp_bw30b/helpdata/EN/ad/6b023b6069d22ee10000000a11402f/frameset.htm
Do you still think this is how the behaviour of the multiprovider.. if that is the case what would be the purpose of having an infoobject in the multiprovider.
Thank you very much in advance for your responses.
Best Regards.,
Praveen. -
Data mart from two DSOs to one - Loosing values - Design issue
Dear BW experts,
I´m dealing with a design issue for which I would really appreciate any help and suggestions.
I will be as briefly as possible, and explain further based on the doubts , questions I received in order to make it easier go through this problem.
I have two standard DSOs (DSO #1 and #2) feeding a third DSO (DSO #3), also standard.
Each transformation DOES NOT include all fields, but only some of them.
One of the source DSO (let´s call it DSO #1) is uploaded with a datasource that allows reverse type of records (Record Mode = 'R'). Therefore some updates on DSO #1 comes with one entry with record mode 'R' and a 2nd entry with record mode = 'N' (new).
Both feeds are delta mode, and not the same entries are updated through each of them, but the entries that are updated can differ (means an specific entry (unique key values) could be update by one of the feeds, but no updates on the 2nd feed for that entry).
Issue we have: When a 'R' and 'N' entries happen in DSO #1 for any entry, that entry is also reversed and re created in the target DSO #3 (even being that not ALL fields are mapped in the transformation), and thefore we loose ALL the values that are exclusively updated through DSO #2, becoming blank.
I don´t know it we are missing something in our design, or how should we fix this issue we have.
Hope I was more or less clear with the description.
´d really appreciatted your feedback.
Thanks!!
GustavoHi Gustavo
Two things I need to know.
1. Do you have any End Routine in your DSO? If yes, what is the setting under "Update behavior of End Routine Display"....Option available right side of Delete Button ater End Rouine.
2. Did you try with Full Load from DSO1 and DSO2 to DSO3? Do you face the same problem?
Regards
Anindya -
Auto populate of vendor in partner Tab during Goods issue- Batch management
Dear All,
I there a possibility of populating the Vendor (in partner tab) during goods issue (MVT 601,201, 240 etc).
Provided the material is batch managed.
Thanks and Best Regards
W.RaghuramWhat I feel is that u have to maintain the Batch Characteristics then it is quite possible.
In std In Partner tab I feel not possible. Not sure other expert may guide you.
Biswajit -
A web service design issue with patterns
Hello,
I�d like to ask for your help in the following design issue:
I need to create an email sending web service (with Axis). Only just one method which returns with an integer return code. This handles the following:
- based on the given parameters gets the email addresses from an
LDAP server (with netscape ldap for java)
- makes a cache from them (only after a timeout period will be the cache
refreshed) (don�t know what tool to use for this)
- selects html templates which to be sent based on the given parameters
- sends emails with the appropriate templates (with Velocity)
- the whole process is logged (with log4j)
I have to write the code as generic as possible. I know that some design pattern should be used for this. (some from GoF , and I know there exists design patterns specially created for web services as well).
Could you enumerate me which patterns (and for what part of the program) would be the best choice to solve this problem? I have read through some books about patterns, but don�t have the knowledge to pick up the right one for a concrete problem like this..
Thank you in advance,
nagybalyHello,
I�d like to ask for your help in the following design
issue:
I need to create an email sending web service (with
Axis). Only just one method which returns with an
integer return code. This handles the following:Lots of responsibilities here. You would do well to break this up into several classes that you can test separately.
I would also advise that you not embed all this in a servlet. Make a service that collaborates with several objects to accomplish the task and let the serlvet just call it.
.> - based on the given parameters gets the email
addresses from an
LDAP server (with netscape ldap for java)I'd recommend Spring's LDAP module. Pretty terrific stuff.
cache from them (only after a timeout period will be
the cache
refreshed) (don�t know what tool to use for
this)Maybe EhCache or OsCache or something like that.
- selects html templates which to be sent based on
the given parametersWhere does this come from? Certainly not the LDAP. A relational database? Write a DAO for the document template.
- sends emails with the appropriate templates (with
Velocity)Have an e-mail sender service using Java Mail.
- the whole process is logged (with log4j)Easily done.
I have to write the code as generic as possible. I
know that some design pattern should be used for
this. No pattern. There might be patterns, if you say that the DAOs to access the LDAP and RDB are patterns.
Stop thinking patterns and start thinking objects.
(some from GoF , and I know there exists design
patterns specially created for web services as
well).Nope.
Could you enumerate me which patterns (and for what
part of the program) would be the best choice to
solve this problem? I have read through some books
about patterns, but don�t have the knowledge to pick
up the right one for a concrete problem like this..
Thank you in advance,
nagybalyYou haven't read them because they aren't there. Your problem is pretty specific, even if it's common.
% -
EBP PO : Unable to duplicate/copy item,GR_NON_VAL issue
Hello,
I am using SRM 5.O .
In Process PO when I go to create the PO with more than one line item following issue comes :
When I entered one line item and check its ok when I click on <b>Duplicate Selected</b> Item or <b>Copy</b> push button than check following error appears .
<b><i>Flag 'Automatic Settlement' at item level is different; Change not possible
Flag 'Invoice Expected' at item level is different; Change not possible </i></b>
Thanks ,
Sachin
null
nullHello,
I have debugged whole program and found when there is single line item everything is fine & when i clicked on <b>Duplicate Selected Item</b> the value of GR_NON_VAL indicator set in first line item and second Items indicator as it is blank .Where single line Item indicator was blank .
When I am copying the line item than its working OK .
Due to mismatch in items followinng program raise error message .
PERFORM downward_inheritance USING p_hgp_ecom
p_hgp_icom
p_guid
p_object_type
p_itm_icom
ls_igp_icom
p_changed
CHANGING ls_header.
Is there any idea why system behaving like this ?
Thanks,
Sachin -
Purchase Order creation for TAB item
Hi,
I used TAB item in the Sales Order. Then I created Purchase Order(ME21n) using that Purchase req number. Then I went to ME23 and did goods receipt from the menu and clicked the item OK. Saved.
Now when I tried to do delivery for the Order, its saying the stock is not there.
I see the PO in the Doc Flow.
Please help. Let me know the steps to create PO and delivery for this TAB item.
Will reward point for a good reply
thanksyes I did.
I used the confirmed schedule line as the delivery date in VL01n
It is saying ZERO stock is available
I can see my stock with type E for this Order in MB51
Not sure why it is not allowing me to created delivery.
Is it some storage location problem or sth? This is in testing Environment. I guess Production is working but I compared Material Master Data and POs from Productioni to testing.
I don't see anything different.
need help
thanks -
Two PR Line items for the TAB Item category
Hi,
We have created a sales order with TAB item category.
In MD04 we found two line items of the same firmed PR.
Any idea why two lines of PR are generated?
Regards,
VengatHello Friend,
Please check
In Material Master MRP1 view check for the rounding value.If rounding value is 10 and order is for 30 then 3 line items of PR will generate.Hope it helps.
Maybe you are looking for
-
USB Drive (Toshiba 16GB PA3875A-1MAB) Not formatted message
Some months ago I purchased two 16GB USB drives with intention to use as a convenient backup for certain data files for myself and my wife on separates PCs, both of which were Dell desktops running Windows XP. I used my drive on a few occasions think
-
Customer adavnces and retention in Billing
Hello Friends, Good Morning! We have customer Advance and retention. These are manual condtion in Sale order(both are Statistical conditions). The clients requirement is flow the accounting documents as below: Example: customer invoice 100000
-
OOTB Approval workflow and content approval
I have successfully utilized the OOTB Approval workflow to manage the content approval status for document libraries. But when I attempt the same on a list (custom, links, announcements...etc)..... the approval goes through without a problem but the
-
Hello, In kdemod3, for GTK themes, gtk-qt integrates into the default theme much better than qtcurve does. However, openoffice 3 does have the invisible toolbar problem with gtk-qt, so I am forced to use qtcurve to use OOo. In qtcurve, Firefox and Th
-
Photo edits not being recognized by developers
i have edited several of my photos (sepia, black/white, antique, etc) while keeping the original too. each edited photo is given a different name (such as "img18412.jpg") in the "get info" tab of "photos." at the bottom left of iphoto window, under i