我们放置标签时如何加载新的表面窗口 [英] how to load a new surface window when we place a tag

查看:53
本文介绍了我们放置标签时如何加载新的表面窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hii,

 我正在处理标签...

 im working on tags...

我想在我们放置时加载一个新的表面窗口标签...

i want to load a new surface window when we place a tag ...

t hanks提前

raghav

推荐答案

你好,

最好的方法是不加载新窗口但是使用图层和用户控件,例如你可以在主窗口中有如下内容:

The best approach is not loading a new window but work with layer and user control for instance you can have in you main window something as follow :

 <Grid x:Name="_layoutRoot" x:FieldModifier="private">        <controls:BackgroundImage />        <controls:ScreenSaverImage Visibility="{Binding InactivityMode,Converter={StaticResource VisibilityConverter},UpdateSourceTrigger=PropertyChanged}"/> </Grid>         

在上面的示例中,我有一个不活动计时器,它在ViewWodel中运行,当计时器触发时,它设置了InactivityMode属性。

这个属性然后导致ScreenSaver窗口出现在背景窗口的顶部。

In exemple above I have an Inactivity Timer whihc is running in a ViewWodel, when timer trig then it set the InactivityMode property.
This property then cause the ScreenSaver Window to appear on top of background window.

就是这样。连接一个属性,当你放置一个标签并设置它时

And thats it. Connect a property which set when you place a tag and you have it

当然你也可以玩动画,以便在属性触发时获得更好的视觉效果。

Of course you could play also with animation in order to have a better visual effect at the time the property trig.

HOpe帮助

问候

serge


这篇关于我们放置标签时如何加载新的表面窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆