Why BorderThickness value not reflected to control? http://stackoverflow.com/a/16649319/440030 Why your xaml won't work? Because, you set Template property of button with a simple content presenter, So Button ignore all control property and reflect your template. One way is improve your Template property with a by example label: <ControlTemplate TargetType="{x:Type Button}">...
I solve my problem by adding specific class on body tag depending the route. I put a variable in rootScope called 'pageStyle' with correspond to the classname that I want. This variable is updated automatically when route change (see run function). There is an event when the route change ($stateChangeSuccess...
You should not be defining the ContentTemplate property. If you want to change what the button looks like, you should define the Template property and add your Triggers into the ControlTemplate you define there instead. Perhaps it would help if you read the Customizing the Appearance of an Existing Control...
I'm going to attempt to answer your questions directly, however there is much that can be discussed here. What this template doing? All controls have some kind of default template, a pre-defined look and feel of what the control looks like. The Template is overriding the default look and feel...
java,swing,styles,chat,jtextpane
This is so obvious - not sure if qualifies for an answer. Anyway Why are you doing GUI.appendReceivedMessages(""+doc); ? that is causing the doc object's default toString to appear. Hope that helps EDIT: so what can I do here I guess you can do it like this : Note that...
If you want, for example, all your windows in your app to have the same style, remove the x:Key property of your style with TargetType Window. Having the x:Key property will force you to explicitly use the style in your windows for it to apply. If you remove the x:key,...
just hold the color values in a config file simple text file will suffice. though you can use VisualStudio Resource file.. file will contain lines in each: item_enum_name item_type item_value for example: main_screen_bg_color Color Black company_logo URI \logos\logo1.jpg and so on.. just load the file parse it and use bind...
These Styles reference other Styles and Templates via StaticResource: MyFocusVisualStyte (Typo? Shouldn't it be MyFocusVisualStyle?), SliderThumbStyle, SliderRepeatButtonStyle, HorizontalSlider, VerticalSlider... All these Styles and Templates must exist and be defined BEFORE they're used. In this case, the resources must be defined in this order (I'll copy only the first node of...
android,design,attributes,styles
The easiest fix for this is to just rename the attribute in one of the libraries. To do that you have to: Download the source code of one of the libraries and add it to your project. Now you have to rename the attribute in the source code you just...
Use Search and Replace to accomplish that. ...
java,exception,design-patterns,styles
It encapsulates the new keyword in a method, which might be seen as making the user-defined exception into a kind of simple factory. This might have advantages for maintenance and/or testing later, since you just change the implementation of the enforce method and client code calling it will change....
Answer is yes to both of your questions, in fact there is lot more you can do with display:table using CSS styling CSS has properties to make any element you wish behave as if it was a table element. You'll need to structure them essentially as you would a table,...
It looks to me like you forgot to put the class "small" on the second <td> element. It should look like this: <td class="small"> <a href="...">Small content</a> </td> <td class="small">Should be smaller as well</td> ...
Yes. <div style="width:400px; height:800px"> <div style="display: table; width:400px; height: 100px; overflow: hidden;"> <div style="display: table-cell; vertical-align: middle; background-color:blue;"> <h4 style="color:white;text-align:center"> <i style="color:yellow">image</i>Training book header text </h4> </div> </div> <div style="display: table; width:400px; height: 250px; overflow: hidden;"> <div style="display: table-cell; vertical-align: middle;"> <h1...
The downvotes are probably because SO is technically not a good forum for this kind of question - apparently SO community likes clear, answerable, discrete, objective questions, not more general style or technique questions like this. But I love questions like these, so here goes. Since working with Ruby various...
Try this: Create a xml file in res/drawable called rounded_corner.xml: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:bottomRightRadius="0dp" android:bottomLeftRadius="0dp" android:topLeftRadius="5dp" android:topRightRadius="0dp"/> </shape> Then, apply the drawable to your view's background like: <TextView android:id="@+id/example" android:width="wrap_content" android:height="wrap_content"...
It's because you have the <label> surrounding both elements. If you move the label to not wrap both elements, it will work: <label> <span>Expiration</span><br> <select class="card-expiry-month input-mini"> <option value="01" >01</option> </select> </label> <label> <select class="card-expiry-year input-mini"> <option value="2014">2014</option> </select> </label> ...
Ext.create('Ext.form.Panel', { bodyPadding: 10, defaultType: 'textfield', fieldDefaults: { labelAlign: 'right', labelWidth: 150 }, renderTo: Ext.getBody(), standardSubmit: true, title: 'Form', width: 400, items: [ { fieldBodyCls: 'x-form-trigger-wrap-default x-form-text x-form-text-default', fieldLabel: 'Displayfield with link', name: 'field01', value: 'Some text <a href=http://www.yoururl.com>www.yoururl.com</a>', xtype: 'displayfield' },{ fieldLabel: 'Textfield', name: 'field02', value: 'default', xtype: 'textfield'...
The "natural" behavior of an anchor tag is just a link that contains text, right? So when you are adding this anchor tag for the img, the rectangle you're seeing is the browser "preparing" for the text, so it is taking a height of the default font size. The trick...
The short answer is - you don't do it that way. Define the styles in the css file, then use the classes in the html - whether added inline or manipulated by jQuery - to attach the css rules to your html elements. Your css file doesn't change while in...
html,css,google-chrome,styles,html-lists
Just change the padding from 10% to 10px or more for the a tag
Yes you can implement styles in your values/styles.xml you can do something like : <style name="MyMainStyle"> <item name="android:layout_width">250dp</item> <item name="android:layout_height">60dp</item> </style> <style name="MySecondaryStyle" parent="MyMainStyle"> <item name="android:paddingLeft">20dp</item> </style> As you can see you can also have parent styles. Then you can use the style in your layout.xml like so : <Button...
You can get this efect setting multiple divs with the same background image, and arranging them in a curved path along the Z axis. As an extra, you can get an hover animation .test { width: 800px; height: 600px; position: relative; transform-style: preserve-3d; perspective: 1200px; transition: perspective 2s, transform 2s;...
android,styles,statusbar,material-design,material
Simply remove: <item name="android:windowTranslucentStatus">true</item> from the "BATheme", or change it in: <item name="android:windowTranslucentStatus">false</item> if there a styles.xml with that parameter set as true....
jquery,html,css,checkbox,styles
The text is placed inside news DIVs. Divs take up the entire space especially on a new line. Get rid of the Div. Instead put them in a span and also inside the parent. Like this <div class="kat1"> <label> <input id="catswitch1" type="checkbox" onclick="shCat(1);" checked="checked"/> <label for="thing" style="cursor: pointer"></label> </label> <span>ITEM...
you need to modify the ControlTemplate. To remove the default behaviour on the Button. <Style x:Key="NavigationButton" TargetType="{x:Type Button}"> <Setter Property="Background" Value="#295fa6"/> <Setter Property="BorderBrush" Value="{x:Null}"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Button}"> <Border Background="#295fa6"> <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> </Border> </ControlTemplate>...
android,menu,android-actionbar,styles,background-color
add actionOverflowMenuStyle item to your app theme <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="actionOverflowMenuStyle">@style/CMOptionsMenu</item> </style> <style name="CMOptionsMenu" parent="Widget.AppCompat.PopupMenu.Overflow"> <item name="android:popupBackground">your color code</item> </style> ...
javascript,jquery,styles,height,width
To set the width and height for all images, you can use the .width() and .height(). In your case, you'll want the following code for <img> tags: $(img).width(450).height(350) Now, if you're trying to resize background images, you'll need to set CSS styles (duplicate post): $(selector).css({ "-o-background-size": 450px 350px, "-webkit-background-size": 450px...
That is font-size/line-height. e.g. 1.4em/1em is 1.4em font-size and 1em line-height full css syntax for font is: font: font-style font-variant font-weight font-size/line-height font-family|caption|icon|menu|message-box|small-caption|status-bar|initial|inherit; ...
android,android-layout,android-actionbar,styles,android-tabs
You can change the icon of a tab by doing the following: @Override public void onTabSelected(ActionBar.Tab tab, android.support.v4.app.FragmentTransaction fragmentTransaction) { // When the given tab is selected, switch to the corresponding page in the ViewPager. pager.setCurrentItem(tab.getPosition()); //to set tab's icon tab.setIcon(id_of_the_icon_to_change_to); //or if you don't have a new icon to...
If you wanna be more specific with your selection: DEMO var divs = document.querySelectorAll(".message-pane div"); var dd = Array.prototype.slice.call(divs); dd.forEach(function (div) { div.style.color = "#000" }); ...
Nullify the margin of document, add this style to your web page <style> html, body{ margin: 0; } </style> ...
android,xml,styles,android-manifest
Try @style/Widget.AppCompat.Light.ActionBar.Solid.Inverse instead . On a side note, the styles.xml file on appcompat_v7 suggests that @style/Widget.AppCompat.Light.ActionBar.Solid.Inverseis deprecated. @android:style/Widget.DeviceDefault.Light.ActionBar.Solid.Inverse is an alternative....
c#,wpf,xaml,styles,mahapps.metro
I ran it today and it works fine: <Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource MetroComboBox}"> <Setter Property="Margin" Value="2"/> </Style> As far as I can tell I've changed nothing to do with the project or references. However, in the last few days Visual Studio had corrupted somehow with the designer throwing exceptions left...
android,android-actionbar,styles,android-actionmode
I think you can try to use the hack way to change the backgroud: Via Java: Use hierarchyviewer.bat to analyse the layout, focus on the ActionMode view, you can see below: (Title ID: action_bar_title, SubTitle ID:action_bar_subtitle) 2.Find the specify TextView by the ID we found above, and just do whatever...
css,iframe,styles,embed,soundcloud
CSS you are writing on your CSS file wont effect content of iFrame. Solutions: Do you really need an iFrame? Cant it be done using modal window or something like that? Add CSS you want to add using JS/JQuery $('iframe').load( function() { $('iframe').contents().find("head") .append($("<style type='text/css'> .my-class{display:none;} </style>")); }); ...
The simplest way I know of would be to create a template excel workbook with your desired style already applied, then use DDE to fill in the data ranges with the values from a matching SAS dataset. There are many resources that document how to do this.
android,button,styles,overlay,android-theme
Solved, I was applying the Material Light theme, so I changed it to my style and when I run the app no overlay is showed. Thanks.
javascript,html,css,html5,styles
In the link you posted, it looks like it is the style selectors for html and body, as it is setting the height to 100%, which is probably messing up your layout. Try removing them from the selector, and give the map the height and width you want and see...
You can create a CustomControl (which inherits from TextBox) where you can create a DependencyProperty called CornerRadius, and then in your style, have access to the dependency property. See here for a tutorial. public System.Windows.CornerRadius CornerRadius { get { return (System.Windows.CornerRadius)GetValue(CornerRadiusProperty); } set { SetValue(CornerRadiusProperty, value); } } // Using...
android,dialog,styles,android-4.4-kitkat,timepicker
Just try to use ScrollView. You can put your pickers under this view. It should fix the problem on small screens. By the way maybe it's better to have 2 dialog for date and for time. It's more conventional and user friendly.
The trick is that you have two styles. With the first style you are drawing a white line, with the second style a thinner blue line on top: var width = 3; var styles = [ new ol.style.Style({ stroke: new ol.style.Stroke({ color: 'white', width: width + 2 }) }), new...
You should be able to use the TabControl.ItemContainerStyle to set a named Style on the TabItems of the outer TabControl. Try this: In Resources: <Style x:Key="ItemStyle" TargetType="{x:Type TabItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type TabItem}"> <!-- template is defined here--> </ControlTemplate> </Setter.Value> </Setter> </Style> ... <TabControl x:Name="Parent" TabStripPlacement="Left" ItemsSource="{Binding Path=ParentTabItems,...
There are some white space characters like   will be useful. You can use 	 for tab. You can also use CSS for this.
Try str.join : print(",".join(str.split(",")[1:4])) ...
android,styles,android-theme,android-styles
Ok here is how I achieved this, 1 hour after posting the question! Might be helpful for someone else! First in attrs.xml I defined the following : <attr name="textBlockStyle" format="reference"/> The in my style.xml <style name="TextBlockStyle" parent="android:style/Widget.TextView"> <item name="android:textStyle">bold</item> <item name="android:textSize">8sp</item> <item name="android:textColor">@android:color/holo_blue_dark</item> </style> <style name="AppThemeLight"...
c++,function,styles,main,writing
When the program is in C and not C++, I always put my main function at start, so if anyone or yourself want to see the program logic, then can be seen without the need to go to the file end, and if anyone have a doubt about any function,...
update your code like this and add your css as per your requirement. <?php $menu_name = 'primary'; if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name ] ) ) { $menu = wp_get_nav_menu_object( $locations[ $menu_name ] ); $menu_items = wp_get_nav_menu_items($menu->term_id); $menu_list = '<ul id="menu-' . $menu_name . '"...
I get a server response which provides us with HTML to be sent via gmail. No, it will be "sent" by the app of the user's choosing, from any of the apps on the device that support ACTION_SENDTO on a mailto: Uri. Or, the user could choose to not...
You can use jQuery as follows <script> $(document).ready(function() { if($('#first').attr("style").indexOf("height") != -1) { alert("height is hardcoded"); } else { alert("height is not hardcoded"); } }); </script> ...
Try like this: Demo CSS: p { font-weight:bold; } p span { font-weight:100; font-size:11px; } HTML: <p>Test test Test test Test test <span> °</span> Test test Test test Test test Test test </p> Edit: Updated demo CSS: p, div{ font-weight:bold; } p span, div span { font-weight:100; font-size:11px; } HTML:...
combobox,windows-runtime,styles,winrt-xaml
you can set PickerFlyoutBase.Title property of combobox to either with space or text of your choice. So it would be like: PickerFlyoutBase.Title= " " or PickerFlyoutBase.Title="Some text" ...
Just do it like this: body { background:url("http://www.destadesign.com/destacms/images/background_border_left.png") left repeat-y,url("http://www.destadesign.com/destacms/images/background_border_right.png") right repeat-y; } This CSS adds two background images to body, positions them right or left respectively, and sets the repeat-y, so it doesn't fill the screen. JSFiddle Demo...
jquery,html,css,animation,styles
If by cycle you mean to display all the name of the games one by one before displaying the final name of the game here is what you can do, Here is a demo So I have altered the PickRandomWord() and tick() and created 2 global variables "i" and "s"...
styles,windows-phone-8.1,win-universal-app
The ContentDialog buttons aren't customizable, but you can leave the ContentDialog's primary and secondary buttons unset and add your own buttons within the template.
This is referred to as Infix Notation and it doesn't require anything special so long as you have a single argument function. The reason it isn't working for you is that you need the object whose method is being called. The following compiles: class Bob { def hey(statement:String): String =...
wpf,binding,styles,datatrigger
You can use attached properties for this. For example: public static class Attached { public static readonly DependencyProperty RelatedControlProperty = DependencyProperty.RegisterAttached( "RelatedControl", typeof(UIElement), typeof(Attached)); public static void SetRelatedControl (DependencyObject element, UIElement value) { element.SetValue(RelatedControlProperty, value); } public static UIElement GetRelatedControl (DependencyObject element) { return (UIElement)element.GetValue(RelatedControlProperty); } } This property has...
If you declare a Style without an x:Key, it will override the default style for that control. <Style TargetType="local:CustomControl"> So the code above will effect all CustomControl elements throughout the entire application (or within the scope). If you do not want to override the base style, you can give your...
android,android-actionbar,styles,themes
change the parent of your Theme.BlinkMessage to Theme.AppCompat.Light. This should fix your : <style name="Theme.Blinkmessage" parent="Theme.AppCompat.Light"> ...
I hope it helps you.This is style where you can declare your group style, child style , single style ... just like this <style name="Widget.Group" parent="@android:style/Widget"> <item name="android:layout_width">match_parent</item> <item name="android:layout_height">46dp</item> <item name="android:layout_marginLeft">10dp</item> <item name="android:layout_marginRight">10dp</item> <item name="android:layout_marginTop">-1dp</item> <!-- Ensures we don't get a 2 dp top stroke...
You can use the BasedOn property: <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}"> Keep your base button style as it is: <Style TargetType="Button"> <Setter Property="Background" Value="White" /> <Setter Property="TextBlock.TextAlignment" Value="Center" /> <Setter Property="RenderTransformOrigin" Value="-0.893,-11.7"/> <Setter Property="VerticalAlignment" Value="Center"/> </Style> And apply the BasedOn property to the button on the Detail Page: <Button> <Button.Style>...
Actually, you have to add a single style attribute with properties separated by ;, for sample: <p style="color:blue; font-size:300%">This is a paragraph.</p> ...
JoeDF has a nice example, but I didn't want to add such a big library (it does waaay more than I needed. So, I just used a picture control. gui, add, picture h16 w16 vMyButton gMyProcedure, icon0, mydll And then I wrote up a teeny library called Mousey that will...
So, there are a few ways to make your code more expandable or reusable. You could use wildcard searches to minimize the actual number of searches required. Or you could put your text strings into an array that you loop through to keep the actual code to a minimum. For...
Wrap each character in a span, with a classname: HTML: <div id="fieldToSplit">233215334523</div> javascript: var element = document.getElementById("fieldToSplit") var data = element.innerHTML.split(""); var wrappedString = ""; for (var i = 0; i < data.length; i++) { wrappedString += "<span class='shade" + data[i] + "'>" + data[i] + "</span>"; } element.innerHTML =...
c#,excel,styles,interop,excel-interop
2 points to consider: Point 1 I have noticed that you want to change vertical alignment, but you use xlHalign. Please try changing that line to ws.Cells[j, i].Style.VerticalAlignment = Microsoft.Office.Interop.Excel.XlVAlign.xlVAlignCenter; Point 2 Try removing Style. So you would have something like ws.Cells[j, i].VerticalAlignment = ... Let me know if it...
Write your own style to highlight border and add as resource in FocusVisualStyle of Combobox.
Put the following code inside your DataGrid : <DataGrid.CellStyle> <Style TargetType="DataGridCell"> <Style.Triggers> <DataTrigger Binding="{Binding Path=IsReadOnly, RelativeSource={RelativeSource Self} }" Value="True"> <Setter Property="Background" Value="Red"/> </DataTrigger> </Style.Triggers> </Style> </DataGrid.CellStyle> ...
Try Like this <ListView.ItemContainerStyle> <Style TargetType="{x:Type ListViewItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ListViewItem}"> <Border BorderBrush="Transparent"`enter code here` BorderThickness="0" Background="{TemplateBinding Background}"> <GridViewRowPresenter HorizontalAlignment="Stretch" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Width="Auto" Margin="0" Content="{TemplateBinding Content}"/>...
I finally found the following solution: <Style x:Key="BottomButtonBar" TargetType="{x:Type Grid}"> <Style.Resources> <Style TargetType="{x:Type Button}"> <Setter Property="Margin" Value="10,2" /> <Setter Property="Width" Value="90" /> </Style> <Style TargetType="{x:Type TextBlock}"> <Setter Property="HorizontalAlignment" Value="Center" /> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="Margin" Value="2,0"/> </Style> </Style.Resources>...
Gabriel mentioned that this behavior is a known issue that raises when you try to create a brand-new style for data grid (or in general any item collection). I tried creating an style based on default style as suggested by Gabriel like following: <Style TargetType="{x:Type DataGrid}" BasedOn="{StaticResource {x:Type DataGrid}}"> <Setter...
Something like this? <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="oval" xmlns:ripple="http://schemas.android.com/apk/res-auto"> <solid android:color="#F44336" android:angle="270"/> <size android:width="56dp" android:height="56dp" /> </shape> </item> <item android:drawable="@drawable/ic_done_white_24dp" android:top="16dp" android:left="16dp" android:bottom="16dp"...
Try normalizing the css for every browser *{ margin:0px; padding:0px; } or go to this link Normalize.css in GitHub...
c++,user-interface,styles,window,themes
Yes, you can do it with the WinAPI. The primary message you care about is WM_NCPAINT. That's what's sent when the non-client areas of a window (e.g., the frame and title bar) need to be painted. Note that by default, rendering of the non-client areas is handled by the desktop...
If you were styling a link you would use :active or :focus but as you're using this on a dom element, you would have to use jQuery to add a class to the clicked item and apply the style through that class... $('.object').click(function() { $(this).toggleClass('clicked'); }); .object { background-color: green;...
What you are doing can be achieved with css. If you are in a single.php file, you should probably have a single class on your body or html tag. If not check this out. So with this class at the top, now you can target your widget by page, single,...
You are doing right to move inline styles to css block and specify different size for various media screen. Please note that, in the way you mentioned, jssor slider will keep initial size, it will not scale according to window resize. btw, what is the following stand for? big ->...
android,xml,textview,styles,android-theme
"textViewStyle" is not defined in v22.1.1. You can find more detail from the link: https://code.google.com/p/android/issues/detail?id=170476
You can put the shape drawables into separate files and reference from your layer list items. There's an android:drawable="" attribute on item. See here: http://developer.android.com/guide/topics/resources/drawable-resource.html#LayerList...
The problem is with your ContentStringFormat Change the ContentStringFormat to Like this <Label Name="lblSliderSpeed" Content="{Binding ElementName=speedSlider, Path=Value, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Right" ContentStringFormat="{}{0:00}"/> And No code Required In page Behind. Because,The "#" custom format specifier serves as a digit-placeholder symbol. If the value that is being formatted has a digit in...
In the case of AppCompat.Button, it inherits directly, and as far as I've been able to find, nothing overrides it, so they should be the same. From AppCompat styles.xml: <style name="Widget.AppCompat.Button" parent="Base.Widget.AppCompat.Button" /> But according to the AppCompat documentation, we should be using Widget.AppCompat: Top level themes These are the...
java,fonts,javafx,styles,weight
For "Regular" style, just use one of the static methods taking a font name and/or size: text.setFont(Font.font(12)); // 12 point, default font family or text.setFont(Font.font("Serif")); // default font size or text.setFont(Font.font("Serif", 12)); // 12 point serif... The FontWeight enum specifies the "weight" of the font (i.e. bold, extra bold, light,...
This was likely done because many email clients strip out the head element. However, the style element should go in the body element at point. The only supported child elements of html are head and body. Of course, even then, many email clients also strip out style elements, so really...
You can accomplish something like this with DataTamplates: <Window x:Class="StackSimpleSample.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> <Grid.Resources> <Style x:Key="RedStyle" TargetType="TextBlock"> <Setter Property="Foreground" Value="Red"/> </Style> <Style x:Key="GreenStyle" TargetType="TextBlock"> <Setter Property="Foreground"...
You must replace style=”@style/btnStyleGenoa” to style="@style/btnStyleGenoa" Working like a charm. ...
Any particular reason you do not want to use AppCompat? Recent releases of AppCompat have made many new options for theming that were not available to us in Holo. (Apart from overriding drawable assets). If you do want to stick with Holo, http://android-holo-colors.com/ is a very nice for generating those...