Change the default color for gridview selected item in winrt application - microsoft-metro

I'm trying to change the default color for gridview border selected item in winrt application. I try to find it in blend (item container template), but still no luck. Does anyone here know how to do it? Thanks.

I found my answer here http://labs.vectorform.com/2012/09/styling-a-gridviewitem-in-winrt/
Just change the color in the code, and you're set :)

See if this works... :)
<GridView>
<GridView.BorderBrush>
<SolidColorBrush Color="Red" />
</GridView.BorderBrush>
</GridView>

Related

Unity: How could I change the text of a button using the inspector?

I am trying to make a title screen for my game and I cannot figure out how to change the text of a button using the Inspector.
Any ways I could do this?
Oops. I just realized the text is a child of the button. Never mind, don't answer!
Aight mate!
It is a common mistake... it is fine.
I'd advise you to use TextMesh Pro.
It is a better way and a way more customizable option.
It has crispier text and looks cleaner.
If you need any help, you can ask me out.

I want to hide upper left icon of material-ui Appbar. Can somebody tell me how can I hide it?

I want to hide upper left icon of material-ui Appbar. Can somebody tell me how can I hide it? because I am not implementing anything on click of that icon
As it saids on the docs, you have two options, you can use for example an empty react component like below on the iconElementLeft property or also iconClassNameLeft
<AppBar iconElementLeft={(<div />)} />
See more here: http://www.material-ui.com/#/components/app-bar

Create a horizontal listview in winJs?

I have implemented a ListView and it seems vertical in orientation.
Cannot change the orientation to horizontal. I know it is easy in WinRT and Xaml but I have no idea in WinJS. Any property or method I need to set ? Please let me know.
There's no template edition like in xaml c# for list view . I guess the only way is to use a Grid layout and change the height as to hold only one element at a time . As a result it will get on expanding to the right with a fixed height.
<div id="basicListView"
data-win-control="WinJS.UI.ListView"
data-win-options="{ itemDataSource : DataExample.itemList.dataSource,
itemTemplate: select('#mediumListIconTextTemplate'),
layout: {type: WinJS.UI.GridLayout}}">
</div>
Specify your own height and width in cssto hold one item only
It appears that at there are many properties supported at 8.1 that aren't supported at 8.
GridLayout Orientation being one of those.
Minimum supported client : Windows 8.1 Preview [Windows Store apps only]
Easiest means that I've come across is here:

GWT DialogBox - setGlassEnabled(true) does not cover the whole window

I set glass enabled to true of a GWT dialog box. However, when the user has scrolled down in the window, then the "glass effect" does not cover the whole window anymore.
Does anyone know how to fix that? Many thanks for any advices!
You need a css property such as
moveToPopUp.setGlassStyleName("myApp-PopupPanel-GlassStyle");
where
.myApp-PopupPanel-GlassStyle{
background-color : #333;
opacity : 0.4;
clip : rect(auto,auto,auto,auto);
}
There is no straight fix available, but you can:
1. Remove scroll when showing popup with addStyleName, removeStyleName
2. There is also other solution, but you have to change layout of your style and will limit your functionality so I do not recommend this. But if you are interested I can describe this.
try
glassPanel.setSize("100%", "100%");
where glassPanel is the name of your panel,
be sure to include the import statement.

Applying color to uilabel in interface builder goes to background?

I've succesfully changed the font (color,size,type) of a text label (UILabel) on my app. Then I tried to do the same on 2 other labels. But this time the color goes to the background. After looking for what could be the issue I still dont understand. Can you help me ?
Thx for your help,
Stephane
Interface builder just does that sometimes. It's a glitch. Just change the background back to what you want.