iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi!
Do you have an idea about how can i get a preview for every opened window in the UXDesktop (Like the minimized window preview) ???
Waiting Forward for your answer
Best Regards,
KAROUI Haythem
IT Manager
CREA-DIGITAL
By default, UXDesktopDock has included Live Preview Thumbnail feature which automatically obtains the last window thumbnail before its minimized, giving a real desktop experience on the web.
In order to get a preview of a window in UXDesktop, we need to take a snapshot of the window element and then display it on UXPopup control. You can try to use the SnapshotElement method. This method will snapshoot the specified UIElement into a WritableBitmap. The UIElement can be properly captured regardless of its current Visibility and Opacity value.
Hope this helps.
Hi again,
Can you please explain more?
II tried to use the SnapshotElement method but it does not exist in the current context...
can you send me a little example of how can have a preview for an opened window ?
The following snippet code shows how to utilize SnapshotElement() method in a simple scenario. The scenario is: when user clicks the “Click” UXButton control, the Source property of Img control will be set with the WritableBitmap which is the return of SnapshotElement method.
Sample.xaml Code
<Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="200" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid Name="Panel"> <Intersoft:UXCheckBox Content="cOBA" /> </Grid> <StackPanel Grid.Column="1"> <Intersoft:UXButton Content="Click" Click="ButtonBase_OnClick" /> <Image Name="Img" Height="100" Width="100" /> </StackPanel> </Grid>
Sample.xaml.cs Code
private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { Utility.SnapshotElement(this.Panel, true, (args) => { this.Img.Source = args.Result; }); }
Could you please provide more information about how to have a preview for an opened window so that I can assist you further? Does the preview appear when user moves the mouse over the minimized window in UXDesktopDock? Please feel free to inform me about the detail of the scenario.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname