styles

Dynamically change implicit style

我是研究僧i 提交于 2019-12-23 02:55:09
问题 Right now I have some TabItems in my App which are implicitly styled. I want to add a "Night mode" to my app and change my style. How should I go about this? 回答1: You can do this with merged dictionaries. Put all your "normal" styles in a dictionary and add it to the app resources by default: <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Styles/Normal.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> <

Resize WPF ListBox selection box

自作多情 提交于 2019-12-23 02:36:12
问题 For a project I have implemented a small IntelliSense like control which is nothing than a ListBox . Its DataTemplate consist of a StackPanel holding one Image and one TextBlock . Nothing else. As you can see in the first screenshot of my control, the selection box of the ListBox selects the whole item (which usually is exactly what one would expect): However my "stolen" icons from VS11 are low-quality so I wanted to adjust the selection like Visual Studio does: You can see that only the text

Making first word/character of string in textview bigger

放肆的年华 提交于 2019-12-23 01:18:29
问题 I have been searching online but haven't managed to find something that I could use. I have text in my textview that will have text something like; 1 Person 2 Person 3 Person the text is formatted like this (1\nperson), (2\nperson) .... so adding space between the number and the person string. What I want to do is make the number of each string bigger. For example; I have searched online and the links / similar things I found are not that helpful: Is it possible to have multiple styles inside

What is the correct way to use attr for pre-lollipop devices?

大城市里の小女人 提交于 2019-12-22 18:37:34
问题 I am developing an Android application with support for Jelly Beans onwards. I have my own style defined as: <style name="AppTheme" parent="Theme.AppCompat.NoActionBar"> </style> <style name="AppTheme.Child" parent="AppTheme"> <item name="colorButtonNormal">@color/login_button_enabled</item> </style> <style name="HomeButton" parent="Widget.AppCompat.Button"> <item name="android:background">@drawable/home_button</item> </style> And drawable/home_button.xml is defined as: <?xml version="1.0"

Fix VCL Styles Directory in Delphi XE3

时间秒杀一切 提交于 2019-12-22 16:46:36
问题 I have a problem about VCL Styles in Delphi IDE. When I change VCL Style From default style to another style in delphi IDE and run program an "Style 'Style Name' not found" error comes up. I trying to find a option in IDE to fix Style directory, but I can't find any options. Please, help me to solve this problem and fixing IDE Options. thanx a lot. 回答1: oh, after a time, I found a way for solving this problem. for solving this problem must running the "redistsetup.bat" file. this file by

Fix VCL Styles Directory in Delphi XE3

左心房为你撑大大i 提交于 2019-12-22 16:46:05
问题 I have a problem about VCL Styles in Delphi IDE. When I change VCL Style From default style to another style in delphi IDE and run program an "Style 'Style Name' not found" error comes up. I trying to find a option in IDE to fix Style directory, but I can't find any options. Please, help me to solve this problem and fixing IDE Options. thanx a lot. 回答1: oh, after a time, I found a way for solving this problem. for solving this problem must running the "redistsetup.bat" file. this file by

Icon badge overlay for notifications in silverlight/xaml

我的未来我决定 提交于 2019-12-22 14:56:33
问题 I've got a ribbon bar in my silverlight app and on one of the icons I would like for there to be a badge icon showing the number of items in the view that the icon activates. Picture the Mail icon in OS X showing the number of unread messages or the notifications counter on an IOS app icon. I don't know much about xaml styles, but it seems to me I could duplicate the default style for the ribbon bar button, then add to it with some sort of red circle, and a white text that took in its value

Icon badge overlay for notifications in silverlight/xaml

断了今生、忘了曾经 提交于 2019-12-22 14:56:12
问题 I've got a ribbon bar in my silverlight app and on one of the icons I would like for there to be a badge icon showing the number of items in the view that the icon activates. Picture the Mail icon in OS X showing the number of unread messages or the notifications counter on an IOS app icon. I don't know much about xaml styles, but it seems to me I could duplicate the default style for the ribbon bar button, then add to it with some sort of red circle, and a white text that took in its value

Unable to access style with getComputedStyle in iOS

穿精又带淫゛_ 提交于 2019-12-22 12:44:30
问题 Ok, so I have this function designed to return a desired computed style from a specified element. It works in all desktop browsers that I have tested, however, it does not work in mobile safari. If I log the getComputedStyle call back to the console it is a [object CCStyleDeclaration] which is great, but when I log the getPropertyValue call it simply returns "null" instead of the correct style. Any help would be fantastic. Thanks! Utils.getStyle = function(element, style){ var strValue = "";

WPF Richtextbox FontFace/FontSize

可紊 提交于 2019-12-22 12:13:32
问题 I am currently trying to create some basic word processor features in a WPF project. I am using a RichTextBox and am aware of all of the EditingCommands (ToggleBold, ToggleItalic...ect.). The thing I am stuck on is allowing the user to change the fontsize and font face like in MS Office where the value changes for only the selected text and if there is no selected text then the value will change for the current caret position. I have come up with a decent amount of code to get this to work,