How add wpf usercontrol in xceed wizard control? - xceed

hi i have tried to use wizard control.
i' d like to call my usercontrol in a page of wizard control.
<xctk:Wizard FinishButtonClosesWindow="True">
<xctk:WizardPage x:Name="IntroPage"
Title="Welcome to my Wizard"
Description="This Wizard will walk you though how to do something." />
<xctk:WizardPage x:Name="Page1" PageType="Interior"
Title="Page 1"
Description="This is the first page in the process."
NextPage="{Binding ElementName=Page2}"
PreviousPage="{Binding ElementName=IntroPage}"/>
<xctk:WizardPage x:Name="Page2" PageType="Interior"
Title="Page 2"
Description="This is the second page in the process"/>
<xctk:WizardPage x:Name="LastPage" PageType="Interior"
Title="Last Page"
Description="This is the last page in the process"
CanFinish="True"/>
</xctk:Wizard>

This is resolved. It was very simple:
myusercontrol my = new myusercontrol();
Page1.Content = my;

Related

How to change each item of Treeview in Devextreame side-navigation-menu to a link tag (<a><a/>) to have "Open link in new" tab option?

I'm using Devextreame by React in a project which has its built-in side-navigation-menu. The menu is a Treeview component gives its sub-menus as an array by the items property.
<TreeView
ref={treeViewRef}
items={items}
keyExpr={'path'}
selectionMode={'single'}
focusStateEnabled={false}
expandEvent={'click'}
onItemClick={selectedItemChanged}
onContentReady={onMenuReady}
width={'100%'}
expandedExpr="false"
/>
So there is no accebility to the tags of items to change them to a <a> tag to have "Open link in new" option as a link.
Does any body know how to change each item of Treeview in Devextreame side-navigation-menu to a link tag <a> to have "Open link in new" tab option?

Display IconFile in DNN menu

I am trying to modify the default skin of DNN 9.3.2 to display the IconFile which I have set under page settings for each page.
To display the icon anywhere on a page I used
<img src="<%= Server.HtmlEncode(PortalSettings.ActiveTab.IconFile) %>" />
but it's not what I want.
It should appear like this:
Any ideas?
OK, solved:
<img src="[=ICON]" />

show outlook ribbon near appointmentTab

I created new outlook ribbon by ribbonXML
I want to show this Ribbon
1. in Appointment\Meeting window
2. in CalendarItems near 'Appointment' tab , when appointment is selected from the calendar view
I can display the two options but not together in one Ribbon.
"contextualTabs" - displays the tab in calendarItems,
"TabAddins" - displays the tab only in appointment\meeting window according to the C# code
I want this Ribbon will be displayed in both of these cases.How can I do it?
My Code:
<ribbon>
<tabs>
<tab idMso="TabAddIns" label="MyTab">
<group id="group1" label="save">
<button id="btnSaveAs" onAction="btnSaveAs_Click"
imageMso="FileSave"/>
</group>
</tab>
</tabs>
<contextualTabs>
<tabSet idMso="TabSetAppointment">
<tab id="TabAppointment" label="MyTab">
<group id="MyGroup" label="save">
<button id="btnSaveAppAs" onAction="btnSaveAs_Click" label="save"
imageMso="FileSave"/>
</group>
</tab>
</tabSet>
</contextualTabs>
</ribbon>
C#: (cause showing the ribbon only in appointment\meeting window)
public string GetCustomUI(string ribbonID)
{
if(ribbonID=="Microsoft.Outlook.Appointment")
return GetResourceText("OutlookAddIn.Ribbon.xml");
if (ribbonID == "Microsoft.Outlook.MeetingRequest")
return GetResourceText("OutlookAddIn.Ribbon.xml");
return null;
}
It looks like you need to return an appropriate Ribbon XML markup for the Explorer ribbon ID value. Try to debug the GetCustomUI method and see what values are passed.
Read more about the Ribbon UI (aka Fluent UI) in the following articles in MSDN:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
I found the solution.
I put the two options in two separate xml files and repaired getcustomUI
Ribbon.xml:
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabAddIns" label="MyTab">
<group id="group1" label="save">
<button id="btnSaveAs" onAction="btnSaveAs_Click"
imageMso="FileSave"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
CalendarToolsRibbon.xml:
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="Ribbon_Load">
<ribbon>
<contextualTabs>
<tabSet idMso="TabSetAppointment">
<tab id="TabAppointment" label="MyTab">
<group id="MyGroup" label="save">
<button id="btnSaveAppAs" onAction="btnSaveAs_Click" label="save"
imageMso="FileSave"/>
</group>
</tab>
</tabSet>
</contextualTabs>
</ribbon>
</customUI>
C#:
public string GetCustomUI(string ribbonID)
{
if (ribbonID == "Microsoft.Outlook.Appointment")
return GetResourceText("OutlookAddIn.Ribbon.xml");
if (ribbonID == "Microsoft.Outlook.MeetingRequest.Read")
return GetResourceText("OutlookAddIn.Ribbon.xml");
return GetResourceText("OutlookAddIn.CalendarToolsRibbon.xml");
}

ZK Spreadsheet with combobox

how can i get combobox in a ZK spreadsheet cell as shown in the link below?
ZK spreadsheet
Try this code...
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<div height="100%" width="100%" apply="org.zkoss.zssessentials.config.SheetDimensionComposer">
<combobox id="sheets">
</combobox>
<spreadsheet id="spreadsheet" src="/WEB-INF/excel/config/demo_sample.xls"
maxrows="200"
maxcolumns="40"
width="100%"
height="450px"></spreadsheet>
</div>
</zk>
The combobox is a ZK Spreadsheet data validation drop down(when excel cell validation type is a list), it is not a embedded zk combobox. I think ZK Spreadsheet doesn't support to embedded a outside zk component into it yet.
I've never used ZK Spreadsheet but I think this could be the same behavior that in a classic listbox.
In a listbox you have to use a listbox in mold "select" instead a combobox, like this bellow.
<listbox id="listOfItems" model="#bind(vm.listOfItems) #template('anItem')" selectedItem="#bind(vm.selectedItem)">
<listhead>
<listheader label="Item-Label" hflex="1" />
<listheader label="Thing-Label" hflex="1" />
</listhead>
<template name="anItem" var="i">
<listitem>
<listcell>
<textbox value="#bind(i.code)" hflex="1" />
</listcell>
<listcell>
<listbox mold="select" model="#bind(vm.listOfThings) #template('aThing')" selectedItem="#bind(i.selectedThing)" hflex="1">
<template name="aThing"var="t">
<listitem label="#load(t.label)" />
</template>
</listbox>
</listcell>
</listitem>
</template>
</listbox>

how can i load data when click on tab in salesforce?

i had created 4 Visualforce tab. and also implement that when user click on the tab at that time only respective page load. and it is working also. but problem is data of default page is loading but the data of included page is not loading with page. i had post my code here. so how can i load data when click on particular tab. ?????![enter image description here][1]
<apex:tab id="tab1" name="tab1" >
<apex:detail/>
</apex:tab>
<apex:tab id="tab2" name="tab2" >
<apex:include pageName="page2" />
</apex:tab>
`
You need to wrap your <apex:tab> components in an <apex:tabpanel> component, like so:
<apex:tabpanel selectedTab="tab1">
<apex:tab name="tab1">
<!-- put tab 1 content here -->
</apex:tab>
<apex:tab name="tab2">
<!-- put tab2 content here -->
</apex:tab>
<!-- etc -->
</apex:tabpanel>

Resources