styles

HTML Style tag equivalent of “font size+2”

旧时模样 提交于 2019-12-23 07:20:07
问题 What is the new "style" way of temporary increasing a font size, and then returning back to the normal (without using CSS, or is CSS the better way?). I want to insert a Hebrew word in my text, and for beginners, the Hebrew font is just too small. I always want it bigger than the current font size, not pegged to some specific size. Line 1 below works (the old way of doing things). What is the fix to line 2? This is normal. <font size="+2">bigger</font> back to norm. <span style='{FONT-SIZE:

how to set a comboBox's style inside a WPF DataGrid?

此生再无相见时 提交于 2019-12-23 05:51:28
问题 I have a DataGrid containing some DataGridComboBoxColumns. I would like the comboBoxes inside those columns to have a certain style applied. so I tried adding the following to my DataGrid's Resources: <Style x:Key="{x:Type ComboBox}" TargetType="{x:Type ComboBox}"> <Setter Property="SnapsToDevicePixels" Value="true"/> <Setter Property="OverridesDefaultStyle" Value="true"/> <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/> <Setter Property="ScrollViewer

How to apply different styles dynamically for matching text from a dynamic paragraph in React Native

試著忘記壹切 提交于 2019-12-23 05:18:04
问题 I am doing React Native project. This is my first project in React Native. And I am getting questions and answers in that (multiple questions and answers). Each answer has multiple different styles with matching text of answer paragraph. If any matching text there, I have to apply those styles for that selected texts, There may be different font styles, underline, url link, emails. I have tried with following code, but, It is displaying empty data. text: the text to search for in the answer's

WPF combobox colors

浪尽此生 提交于 2019-12-23 04:58:09
问题 I'm changing the look of all ComboBox es in my application by adding this Style to App.xaml: <Style TargetType="ComboBox"> <Setter Property="Foreground" Value="White"/> <Setter Property="Background" Value="#303030"/> <Setter Property="BorderBrush" Value="#000000"/> </Style> There are two colors that I haven't been able to set: 1) the Background color when IsEnabled=false 2) the highlight Background color when the mouse is over the ComboBox . How can I change these two colors? [edit: it looks

ExcelWriter.Style CellLocked - why won't it work?

梦想与她 提交于 2019-12-23 04:46:04
问题 I'm trying to create a simple example with #officewriter #excelwriter and having trouble using the styles. Not sure why. ExcelApplication XLAPP = new ExcelApplication(); Workbook WB = XLAPP.Create(); Worksheet WKST = WB.Worksheets[0]; DataSet ds = <...some valid dataset with 2 columns....> DataView dv = ds.Tables[0].DefaultView; DataImportProperties props = WB.CreateDataImportProperties(); SoftArtisans.OfficeWriter.ExcelWriter.Style dataStyle = WB.CreateStyle(); props.UseColumnNames = true;

Apply Style to all child-elements of specific type

大城市里の小女人 提交于 2019-12-23 04:05:22
问题 I want to write a style for wpf where all buttons in a StatusBar (that has a defined style) have the same style (e.g. width). Here is what my style looks like: <Style TargetType="{x:Type StatusBar}" x:Key="DialogBoxStatusBarStyle"> <Setter Property="Background" Value="LightGray" /> <Setter Property="Padding" Value="5" /> ...? </Style> And the xaml for the elements: <StatusBar Style="{StaticResource ResourceKey=DialogBoxStatusBarStyle}" Grid.Row="3" FlowDirection="RightToLeft"> <Button Content

Android Resolving style properties and attributes?

荒凉一梦 提交于 2019-12-23 03:47:12
问题 My Android Application has a main Project Module that has the following declaration in the styles file. This Theme is used in the Manifest file on the "application" tag so all components within the "application" element have the same theme applied. <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.NoActionBar"> <item name="android:colorPrimary" tools:ignore="NewApi"> @color/light_black </item> <item name="colorPrimary">@color/light_black</item> <item name=

WPF Style BasedOn parent Style in current context

こ雲淡風輕ζ 提交于 2019-12-23 03:32:00
问题 Say, I have a default style for a TextBox 'TextBoxStyleBase'. I then define a DataGrid style which has an own TextBox style BasedOn that Base-style, defining another Border Color. In some place inside a DataGrid I want to define another TextBox style but inherit from the one defined in DataGrid style. Is there a way to make a style inherit from the style that is currently defined for a specific control in the current 'context'? EDIT: To make it more clear, here's what I have: <!-- explicit

Javascript get CSS style for ID

て烟熏妆下的殇ゞ 提交于 2019-12-23 03:31:22
问题 I would like to be able to get the style from a CSS element which is not used on the webpage. For example, this is the page: <html> <head> <style type="text/css"> #custom{ background-color: #000; } </style> </head> <body> <p>Hello world</p> </body> </html> as you can see the ID 'custom' has a value but is not used within the document. I would like to get all the values for 'custom' without using it in the page. The closest I have come is: el = document.getElementById('custom'); var result;

Flat button in WPF - trigger not firing

帅比萌擦擦* 提交于 2019-12-23 03:11:53
问题 I wanted to restyle my buttons to be more flat so I have created two styles; first for ToggleButton that derives from ToolBar.ToggleButtonStyleKey and second for Button that derives from ToolBar.ButtonStyleKey . It worked great - the buttons are now toolbar-like and flat. Second thing I wanted is to have Background property to be transparent when user hovers the cursor over the control. So to achieve that I defined a simple trigger that sets the Background to Transparent on IsMouseOver event.