UWP Calendar Date Picker Control - xaml

How can we Decrease the Font Size and Size of the UWP Calendar Date Picker Control?
I want to decrease the size of the Calendar Popup but It's not working and also the Font size of dates is not getting Changed even after changing the value for font size property of the Control.

It's is not possible to change the size of CalendarDatePicker in UWP apps as already described by documentation for size as follows:
Several of the FrameworkElement derived types are also derived from Shape. Not all of the Shape classes use Height or Width to specify their appearance, and instead use specific properties that might define a set of points. In this case a Height or Width is calculated, but is not typically set directly.

Related

Objective C multiline UILabel is not working

Here I have attached the scenario of my issue.
Current View
Here Top Title is a bit long string. But my view is shown partially.
Here I added the storyboard properties that I used for my UILabel.
Can someone suggest a solution to make this UiLabel as multilined one ?
You can't have a multi-line label with a fixed font size, if that label is constrained to a certain height.
Either the height needs to scale to allow more lines at that fixed font size, or the font size needs to scale down to fit all the text in.
If neither are possible, then the text will be truncated.
If your label is constrained to a certain height, then you can change the Autoshrink setting from Fixed font size to Minimum font size and specify the smallest size that you will allow the font to shrink to in order to accommodate longer strings.
Try to change the relation of constraint height: Greater than or equal

Changing button's size based on its content's length, so the button keeps its shape

I have a UIButton which is created programmatically (it can be customised from Interface Builder, though). It is a circular and it looks like this:
Now I'm working on Internationalization and I need to check it for Double-Length Pseudolanguage. The image above is taken when the app language is set to double-length pseudo, but as you can see, the button only shows one word. Here are the constraints of the button:
The title style of the button is plain, its text is centre-aligned, and the line break is set to "Word Wrap".
How to make the button keep its shape but to increase its size when needed (basically, to increase its width and height for the same amount, so it keeps being a circle), so for example, in this case to show two "Menu" words? If you know how to achieve this I would appreciate your help.
Try setting the content compression resistance on the button to required (1000) for horizontal and vertical. It will also depend on the stackViews above and below allowing for the size change.

vega-lite: how to dynamically resize single plots

I'm looking for a way to set the size on a chart either dynamically or at creation of a single vega-lite chart. So far, I have tried setting width and height on spec.config.cell used for trellis charts which sets the height only, also calling the width() and height() methods on the view object, e.g.
view.height(200).width(200).render()
best I can do is get the canvas to resize and crop the chart, but the chart does not redraw to the specified size. I'm looking for it to work with padding:'strict' to specify the overall size, not just the size of the data rect.
Aside from manually setting the bandWidth for ordinals it seems the feature isn't implemented just yet:
https://github.com/vega/vega-lite/issues/1356#issuecomment-231825910

How to adjust the font size of the UINavigationBar so that it fits the size of the titleView?

I like to use the default size of UINavigationBar.
However, sometimes the title is too long and I want the font size to get reduced appropiately.
How would I do so?
I suppose, first I need to find out the size of the titleView first. I think that can be done.
Then I need to call a function that will tell me the appropriate font size.
Then I would need to specify the font with that size WITHOUT changing the font name for that UINavigationBar.
Anyone knows how to do any of those (doesn't need to be all).
You need to set the titleTextAttributes property of the UINavigationBar. You can get the font size and font type from the same property and adjust or change the font size and font type depending on ur requirement.
Check out the documentation for more details on the same.
http://developer.apple.com/library/ios/#documentation/uikit/reference/UINavigationBar_Class/Reference/UINavigationBar.html

Phantom warning: Unsupported configuration minimum font size is greater than current font size

XCode is giving me a warning about my minimum font size being greater than my current font size. When I click on the warning, it takes me to a XIB file but it only highlights the outer object, none of the inner objects which actually have a font size attribute. Just to be sure, I went through each object and made sure their minimum font size was smaller than their current font size, but Xcode still gives me this warning. What is this warning trying to point to?
I fixed this issue by increasing the font size on a label object, then toggling off auto shrink on it, then rebuilding, then turning auto shrink back on.
There are two scenarios at play, and two solutions accordingly:
1) If you want to auto-shrink your label
Increase the minimum font size of your label to something safe, say 16point
Modify your code to set the font size to your desired font size at run-time
2) If you don't care about auto-shrink: simply change the "Autoshrink" setting to "Fixed Font Size" and this should correct the behavior regardless of what you have your font size set to in Interface Builder
I had the same problem and it was difficult to identify which label was the problem.
Then I opened the storyboard as Source Code and search for minimumFontSize. I compared minimumFontSize with fontDescription's pointSize, to check which value was equal to or greater than the minimumFontSize.
Replace minimum font size with minimum font scale.