在焦点具有焦点时更改对象的视觉外观 [英] Changing the visual look of an object when it has focus

查看:72
本文介绍了在焦点具有焦点时更改对象的视觉外观的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够让对象在有焦点时更改不同的颜色,或者使用键盘上的Tab键对其进行选项卡更改。我可以从一个对象切换到另一个对象,但是xaml形式只显示该项目周围有一个虚线outlien表示它具有焦点。问题是我的用户无法在通过xaml表格进行选项卡时轻松分辨出他们在哪里。

解决方案

设置"IsFocused"。或"GotFocus"或在"录制"时触发并自定义所需的外观。

I need to be able to have an object change a differect color when it has focus or when I tab to it using the tab key on the keyboard. I can tab from one object to another but the the xaml form only shows the item as having a dashed outlien around it indicating that it has the focus. The problem is my user will not be able to tell easily where they are at when tabbing through the xaml form.

解决方案

Set an "IsFocused" or "GotFocus" trigger and customize the look that you want while it is "recording"


这篇关于在焦点具有焦点时更改对象的视觉外观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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