styling

How to style a WPF DataGridCell dynamically

只愿长相守 提交于 2019-12-08 01:41:27
问题 I have a DataGrid with the itemsSource defined as follow: dg.ItemsSource = new ObservableCollection<myRow> ... public class myRow : Collection<myDataGridCell> { ... } ... public interface ImyDataGridCell { Brush Background { get; set; } Brush Foreground { get; set; } } and then I have classes for each type of column/cell: public class myTextBoxColumn : DataGridTextColumn {...} public class myTextBoxCell : TextBox, ImyDataGridCell {...} then I set each column's CellStyle like this: in each

How to make a DIV element responsive

随声附和 提交于 2019-12-07 04:11:55
问题 So on my small website I have a div that I styled with CSS and as I was testing with various resolutions, the box looked distorted on a small 11 inch screen compared to my 27 inch screen. How can I make my 700 pixel heigth 200 pixel width div look the same size on all monitor sizes Thanks HERE IS THE CSS FOR THE DIV: text-align:center; border:3px solid black; padding-bottom:10px; height:700px; width:200px; background-color: white; margin-right: 2cm; margin-top: -19cm; margin-left: auto; 回答1:

style links in javascript console

纵然是瞬间 提交于 2019-12-07 03:15:06
问题 i have a console.log message on my site with a link. The styling is working but the link remains in black font on white background. Can i change that? $(function() { var t = navigator.userAgent.toLowerCase(); if (/(chrome|firefox|safari)/.test(t.toLowerCase())) { var e = ["padding: 20px 5px 16px", "background-color: #171718", "color: #f2641c"].join(";"); var i = ["padding: 20px 5px 16px", "background-color: #f2641c", "color: #ffffff"].join(";"), n = ["background-color: transparent"].join(";")

Too many attribute references warning. Possible causes?

天大地大妈咪最大 提交于 2019-12-06 23:21:29
问题 I developed an aplication and noticed that i get a lot of " Too many attribute references" warnings in logcat. W/ResourceType﹕ Too many attribute references, stopped at: 0x######## I use support.v7.23.1.0 also design library. I define my styles like this: <style name="AppTheme.Description.TextView" parent="@android:style/Widget.TextView"> <item name="android:textColor">@color/textColorSecondary</item> <item name="android:textColorPrimary">@color/textColorSecondary</item> <item name="android

SlickGrid styling after cell edit

大城市里の小女人 提交于 2019-12-06 15:21:56
I'm using SlickGrid (2.0) dataView with slick.editors. In the Grid, a user can edit any number of cells which then modifies the underlying grid data so that the edits are maintained when the grid scrolls. This works great. But I also want to provide visual feedback for all the edits since these are not saved to the database until user hit "Save Edits" button. Problem is that the editor method resets the cell after it reads back the changed grid data. I need to maintain a background color change to indicate that it's been edited. Has anyone been able to do this? Here is the relevent code

Styling Ribbon from the RibbonControlsLibrary

别来无恙 提交于 2019-12-06 15:09:25
问题 Ribbon is nice. I want to make it nicer... (IMHO) With the Ribbon (from RibbonControlsLibrary on .NET 3.5 sp1), it is ok to change some backgrounds and foregrounds. But the thing I want to re-style is the white "mask" (linear gradient brush with alpha) that seats in the "background" of the RibbonTabGroup. I saw it with Snoop. I found it in the style. <LinearGradientBrush x:Key="[49] Í" StartPoint="0.5,0.0" EndPoint="0.5,1.0"> <GradientStop Color="#EEFFFFFF" Offset="0.0" /> <GradientStop Color

HTML/CSS - Using a image for input type=file

耗尽温柔 提交于 2019-12-06 12:13:47
How do use this image: http://h899310.devhost.se/proxy/newProxy/uplfile.png Instead of the regular: <input type="file" /> Have a look at Styling an input type="file" . I'm not very sure on whether you want to style file upload fields, or whether you simply want to use a png file in a style. Quirksmode.org has a section on styling file upload fields though, that you would want to refer to. If you want to use the PNG file to use in a style inside a page, you should like at how to set backgrounds using images, although this may not work for all HTML elements. I did something like this and it

IE11 - Flex child takes full height [duplicate]

假如想象 提交于 2019-12-06 10:02:18
This question already has answers here : How to make a sticky footer using flexbox in IE11? (5 answers) flex container min-height ignored in IE (3 answers) Closed 2 years ago . I have a problem with Flexbox on IE11. What I'm trying to do is to have one parent with 3 children. One header with a fixed size, a footer with a fixed size and in between a content area which should take the remaining space. Here's the code - it works with Chrome but not with IE11: .parent { display: flex; flex-direction: column; max-height: 500px; } .header { flex: 0 0 auto; background: red; height: 50px; } .content {

How to change TimePicker lines color in Appcompat theme?

不羁岁月 提交于 2019-12-06 08:25:55
问题 How to change TimePicker lines color between choosed number in Appcompat theme? The lines are blue, but i need orange lines. I use TimePickerDialog with ContextThemeWrapper. TimePickerDialog timePicker = new TimePickerDialog( new ContextThemeWrapper(getActivity(), R.style.timePicker), this, hour, minute, DateFormat.is24HourFormat(getActivity())); and style <style name="timePicker"> <item name="android:divider">@drawable/cab_background_top_play</item> </style> but the line have other id maybe.

How to style a WPF DataGridCell dynamically

允我心安 提交于 2019-12-06 06:00:01
I have a DataGrid with the itemsSource defined as follow: dg.ItemsSource = new ObservableCollection<myRow> ... public class myRow : Collection<myDataGridCell> { ... } ... public interface ImyDataGridCell { Brush Background { get; set; } Brush Foreground { get; set; } } and then I have classes for each type of column/cell: public class myTextBoxColumn : DataGridTextColumn {...} public class myTextBoxCell : TextBox, ImyDataGridCell {...} then I set each column's CellStyle like this: in each column's constructor: string source = String.Format(CultureInfo.InvariantCulture, "[{0}].", dataGrid