I am struggling to find a way to style the appearance of the Windows 8.1 Universal DatePicker. I would like to remove the borders of the input control (except the bottom border).
With a combobox or textbox setting the BorderThickness = "0 0 0 1" achieves the desired effect. This however doesn't make any impact on the datepicker.
Does this need to be done through the use of Control Templates and if so, where can one find reference to which properties can be changed to achieve the desired effect? Or is there a simpler way of getting it done?
Thanks in advance.
I came right by doing the following:
Started new project (blank universal 8.1)
Added DatePicker control to a form.
Extracted the template by 'Edit Template' & 'Edit a copy'
The template is then added to the app.xaml
Edit the styling as needed there.
The styling I needed was done on the FlyoutButton BorderThickness="0 0 0 1"
Related
I am using the Dark theme of Visual studio and there is one particular color which in my opinion is too weak.
I have tried to change it but couldn't really succeed.
When you click on an object in the designer, the XAML editor will try to mark the code by changing the objects background:
Now if you pay attention, then the background of <ComboBox... > is changed, but the difference is not that much. And I want to change that.
In the next sample the same code is shown with another theme:
In the sample above it is much more clear. And I want to make the same for the Dark theme.
Does anybody know how to do that ?
I have tried Tools >> Options >> Environment >> Fonts and Colors:
There are so many possibilities, and I have clicked on all of them, but couldn't really find the particular color I wanted.
In Tools >> Options >> Environment >> Fonts and Colors you need to select TextEditor in the Show settings for: combo, and the option under Display items: responsible for that color is called Inactive Selected Text (it's the 3rd option from the top in my VS). You can then use the Item background: color picker to select preferred color. Note though that this will change the background color of inactive selected text in all text editors, not just in the XAML editor. Here's a screenshot:
My app uses gray background, i change the border of checkbox with borderbrush, but i dont find any attribute to change the color of the mark within checkbox. So, any solution ?
You've got a few options. If we go check out the default template the glyph Path that makes the checkmark visual has a Fill assigned to CheckBoxForegroundThemeBrush which you could change at the template level. Or at the resource level where you would find that resource declaration. Or you could change it at the instance level.
Hope this helps, cheers.
You can change it on the Resources property of the control:
DirectCast(Checkbox1.Resources("CheckBoxForegroundThemeBrush"),
SolidColorBrush).Color = Windows.UI.Colors.Black
On other forms, the icon is shown in the taskbar but only in this form, the icon is not shown in the taskbar.
I also made sure that there is an icon in the form's property.
Right Click the Project file and Select Property as follows
Now Change the default Icon here
Have you run the program from the exe in the debug/release folder.
I've found that the icon doesn't show in the taskbar when run from the debugger.
Edit: Just realised how old this is.
Well, hopefully this will help someone else.
To change the main icon for your application, go to the "Application" tab under the project property page, and change the "Icon:" combo box.
You can change icon form from properties form like this picture.
You need to change icon of application from Project Properties -> Application -> Icon
In properties of the form, browse for an icon in the icon tab.
Make sure that the picture you are using is in .ICO format. Sometimes, in newer versions, the language accepts images other than .ICO format but can produce error and doesn't display correctly everywhere.
Make sure that the .ICO you have converted is in more than 1 or 2 sizes (.ICO files have many resolutions in just one file).
I hope you understand!
In addition to other answers here, make sure that the 'ShowInTaskbar' property on the form is set to true. Sometimes settings get toggled. Toggle it back.
From NuGet I added the most recent Windows Phone ToolKit to my solution. I also checked the object Browser and the ToggleSwitch control is definitely there, but I can't add it to my Toolbox (doesn't show up as one of the controls from Choose Toolbox Items...) and also when I start typing on the Xaml page the closest that appears is the ToggleButton.
I added this already to my phoneapplicationpage
xmlns:tk="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
So I'm not sure where to go from here
EDIT: figured out from xaml I'm supposed to do this
<tk:ToggleSwitch></tk:ToggleSwitch>
But I still can't get it into the toolbox if that's even possible
It is possible to add Controls to ToolBox, - here is MSDN link.
It goes like this:
Open TootBox,
Right Click on 'Common Windows Phone Controls' (for example),
Click on 'Choose Items',
You can Browse for your dll and add it,
Mark Controls you wish to add.
I'm using dojo 1.8.1 and have two inline editors, one for a Textarea, and one for an Editor. I would like to provide flyover tips to help explain how they should be used. Ideally, I'd like to seed the inline editor's textarea / editor with a hint if there is no content, and have this disappear when they click to edit the missing content (the underlines with the writer icon didn't do it for me -- if I can replace that span that would be okay too). However, as a start it would be nice to have a tooltip show when mousing over the entry area.
There is a parameter in the constructor for the InlineEditBox called noValueIndicator where you can put the hint for content when none has been supplied and it disappears when the editor has focus for entry. Too simple -- horses, not zebras...