Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ORACLE Simphony Customized Buttons via XAML

Status
Not open for further replies.

Dananjaya

Programmer
Jan 17, 2020
39
OM
Hi All,
Can anyone guide me to customize buttons and layout creation technique in ORACLE Simphony version 2 page design module. I'm an experience C# developer and need initial guidance to start page customization in WPF platform. I noticed that the coding behind the layouts (e.g button ) is not exactly generic code in WPF and it's having reference to OpsUI.dll which I'm not exactly sure how I may use it in development environment.
e.g
Standard button creation has below code referring to OpsUI.dll
Code:
<ControlClipboard xmlns="clr-namespace:EMC.Application.General.Controls.MicrosGridEditor;assembly=EMC" xmlns:mouic="clr-namespace:Micros.OpsUI.Controls;assembly=OpsUI" xmlns:av="[URL unfurl="true"]http://schemas.microsoft.com/winfx/2006/xaml/presentation">[/URL]
  <mouic:Button OpsCommandText="" OpsCommandIndex="0" OpsCommandArguments="" Width="Auto" Height="Auto" Focusable="False" av:Grid.Column="1" av:Grid.Row="5" av:Grid.ColumnSpan="4" av:Grid.RowSpan="4" av:AutomationProperties.AutomationId="micros.generated..0.0.." />
</ControlClipboard>


Sample code ( even very small ) would be much helpful to start my leisure time experiments.

Thank you.
Thameera
 
Before i give you any info id warn you against trying to do anything too fancy if you want to make maintaining the POS system easy.
There is a lot you can do with custom buttons and pages but Oracle do not consider or know about what you have done when they do their releases and it has happened many times in the past that fancy custom templates have stopped working.

If you do want to customise id advise you to keep it simple.

If you want examples just decompile OpsUI.dll with JetBrains Dot peak (or any other decompiler). You can see the XAML in there for the default page templates and buttons.

For buttons have a look at the OpsUIResources.xaml. Its just a resource dictionary of styles. Specifically look for styles like <Style TargetType="mcontrol:Button"

image_gmobqc.png




Specialist in creating custom applications for the Micros POS range: 3700, 9700, Simphony FE, Simphony. SIM Scripts, Data Exports, Simphony extension applications, API Creation and integration. If you need anything please contact me via my website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top