styling

How can I style the border and title bar of a window in WPF?

为君一笑 提交于 2019-12-17 06:34:45
问题 We are developing a WPF application which uses Telerik's suite of controls and everything works and looks fine. Unfortunately, we recently needed to replace the base class of all our dialogs, changing RadWindow by the standard WPF window (reason is irrelevant to this discussion). In doing so, we ended up having an application which still looked pretty on all developer's computers (Windows 7 with Aero enabled) but was ugly when used in our client's environment (Terminal Services under Windows

How can I style an Android Switch?

☆樱花仙子☆ 提交于 2019-12-17 02:01:05
问题 The switch widget introduced in API 14 is styled by default with holo theme. I want to style it slightly different, changing its colors and shape a bit for branding reasons. How does one go about this? I know it must be possible, as ive seen the difference between default ICS and Samsung's touchwiz theme I assume I'll need some state drawables, and I've seen a few styles in http://developer.android.com/reference/android/R.styleable.html with Switch_thumb and Switch_track that look like what I

How to add a focus style to an editable ComboBox in WPF

自古美人都是妖i 提交于 2019-12-13 16:23:37
问题 I've been looking at the following example on how to style the ComboBox , but I haven't been able to create a focus effect when going into an editable combo box. Whenever the ComboBox receives focus, it should go into edit mode and the component should have a focus style. The basic problem is that whenever I go into the edit mode, it's not the surrounding ComboBox which actually has the focus, but the text subcomponent and I haven't been able to create a Trigger on the text component which

Button border thickness from code behind

五迷三道 提交于 2019-12-13 15:52:59
问题 I am very new to wpf, and right now I am working with buttons, and so I want to change buttons border thickness, but from code behind not in XAML, and what I did was next: var converter = new System.Windows.Media.BrushConverter(); var brush = (Brush)converter.ConvertFromString("#83D744"); btn0.Background = System.Windows.Media.Brushes.Transparent; // This is applied to button btn0.BorderThickness = new Thickness(1); //Thickness wont apply to button I dont know why btn0.BorderBrush = brush; /

Pandas set element style dependent on another dataframe

感情迁移 提交于 2019-12-13 12:42:53
问题 As I was writing this question I figured out an implementation. I have decided to still post it because styling is relatively new and there aren't that many questions yet so I hope it may prove useful to someone else. I am hoping to not get any downvotes and will be happy to accept someone else's implementation. I read through this post in meta and this post, so hope I am in the clear. I can provide my implementation below if desired. I have an hourly time series that I group by daily mean. I

how do i underline every character and set number of characters dynamically in a edit view

筅森魡賤 提交于 2019-12-13 11:17:53
问题 i want to give hint for last 4 characters only.Please provide layout for the same 回答1: Maybe something like this TextView theTextView = new TextView(this); theTextView.setText(Html.fromHtml("<u>3</u> <u>2</u> <u>3</u> <u>5</u> <u>1</u>")); 来源: https://stackoverflow.com/questions/37642803/how-do-i-underline-every-character-and-set-number-of-characters-dynamically-in-a

&. doesn't work in SCSS… why not?

帅比萌擦擦* 提交于 2019-12-13 05:35:12
问题 I'm writing some basic SCSS. But I've noticed appending & before a class, only works in certain circumstances. For example, before elements like "section" or before ":hover, active". But this never works for me before ".class". Why not? For example, in the below code, .flex-item styles only apply, if I remove the &. But look at docs/internet, it should work with & in front, no? section { padding: 20px; margin: 0 auto; border: 1px solid red; position: relative; width: 95%; list-style: none;

Why is the Highcharts tick placement different in two similar charts?

最后都变了- 提交于 2019-12-13 05:26:40
问题 I have a question regarding the tick placement in two similar Highcharts chart. In the first example, I have specified the xAxis property and in the second example I have specified an x and y value in the series. The data is exactly the same, but as you can see the ticks are placed differently. I have tried to play around with the tickmarkPlacement , minPadding , maxPadding to make the first example look like the second, but without success. Could someone tell me wy the two charts, place

WPF styling . Have no idea how to do it

北城余情 提交于 2019-12-13 04:58:54
问题 I am trying to make an image button in WPF based on the following article Custom button template in WPF The problem with this is that I have No Idea how to make the image to become grayscale when disabling the button. So I am loading two images, But I can not load a second images into ButtonProperties. So my idea was to load an rgb and greyscale image, and as I disable the button one image is hidden and another shown, and vice versa. and also the text to get greyed out. As I think, this

Styling 4 different divs with :hover, :visited and :active

百般思念 提交于 2019-12-13 01:27:11
问题 I hope someone can help me out with this. I got this HTML: <a href="http://test"><div id="topleftbox"></div></a> <a href="http://test"><div id="toprightbox"></div></a> <a href="http://test"><div id="bottomleftbox"></div></a> <a href="http://test"><div id="bottomrightbox"></div></a> I style these divs with a background image like this: #topleftbox { background: url(../img/images/layout_03.jpg); background-repeat: no-repeat; width: 229px; height: 228px; float: left; } #topleftbox:hover {