I use Reshaper 5.1.1 to extract strings to resource files in my Silverlight app. I want to be able to extract strings in my XAML (like Content or Text properties) - but the Move option under Resharper is never enabled when I am viewing XAML. It does not identify possible text strings for extraction.
I have done extensive searching but can't seem to find much about R# and localizing XAML files. Is it possible, and how can I enable it? (I checked all my settings and there's nothing about XAML and resources).
According to R# support forums, XAML string extraction is only possible in WPF, not Silverlight! This is very annoying... there is another tool called Resource Refactor (or similar) on CodePlex which does the job until R# support SL.
Related
I currently try to change the visual style of my pivot control in UWP.
I would like to change the plain default style of "just text" to something like this:
This is just an example I quickly found on the web. But it is a good representation of what I want to achieve.
I would like to make the pivot items to look like they are tabs.
They should be visibly seperated from another and when one of the items is selected I want to make it visually stand out from the others.
I'm really new to styling controls. I actually just started to read about it yesterday. But it really helps to make an app visually interesting instead of just the plain default styles.
I would really appreciate some help or guidance here :)
Greetings :)
We can modify the PivotHeaderItem default style to implement the effect. Here is also a similar thread that describes how to achieve it : Pivot Header style
Please note that: the PivotHeaderItem default style is based on the Windows Software Development Kit (SDK) for Windows 10, Version 1511 (Windows SDK version 10.0.10586.0). If your app target on other version, the styles and resources may be have different values. But the approach to implement the effect is similar. You can find the corresponding source in the path of your Windows SDK installation such as:
C:\Program Files (x86)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\10.0.16299.0\Generic.
I'm sure this is just a google search away, but I can't find the right search terms to find what I'm looking for.
I've created a DataPackage that has both HTML annd plain text content. I've used this in my copy and my sharing code and it works fine. I now want to create RTF output as some apps don't seem to accept HTML clipboard content.
I'm looking for a good guide to making RTF text that can be added to the DataPackage. I just need simple formatting including changing the font family, font size, font weight and adding newlines. The data comes from a list of objects taht I want to serialise as RTF, not from a text control on the screen.
WordPad outputs fairly clean RTF and some other text editors do as well. If that's not enough, you can download the RTF Specification 1.9.1 although like any specification that's probably overkill for what you're doing.
You can also use the SaveToStream method on the Document property of a RichEditBox from a Metro style app to share out as well.
I know that it's possible to read excel and word (modern)file in xml format, but i would like to know if exists a library useful only to present file content in a view... i don't need edit or manipulate files, i need to create a simple viewer.
I searched here for Excel/Word iOS viewer and library but i found nothing useful.
What do you suggest ? Is it possible create a views for these kind of file ?
You can use QuickLook framework for generating previews for documents, that can be handled by system (like iWorks or MS Office). See more information about this at http://developer.apple.com/library/ios/#DOCUMENTATION/QuickLook/Reference/QuickLookFrameworkReference_iPhoneOS/_index.html
In a Silverlight 4 app, our user base needs to define for us what content they want on buttons, labels, various screen text, etc. I understand the methods of resource files, but what i'm wondering is when wanting to give that kind of control to the users to define the text in the resource file, what is the best way to let them do that in a way that they can view their changes to the XAML pages? Do they need to have Blend installed?
I vaguely remember when doing a WinForms app, at one point I handed off to the users the actual winform, and they used some sort of visual designer to edit button text, labels, etc., and those changes were then saved to the resource file.
Our app is MVVM, so each item in the XAML would bind to a property in its view model, and that property would then load the entry from the resource file.
If there is a way to let the user update the contents of the resx file while visually reviewing their changes please let me know.
Thanks very much in advance for any assistance.
What I have done in the past is to have a dedicated assembly for Resources (resx) files. By default, they are "embedded" into the assembly. The trick is to change the property on the resx file to NOT be embedded (False). This way, the files are separate resx xml files that must go with the assembly (and live in the same /bin directory of the running application). This is what you see in some /bin directories with the /en-US/ and other resources. In the past, I have created a simply GUI for users to be able to edit these resx files that gets written back to disk. I am not familiar with Silverlight's inner workings for this type of permissions needed, but I would guess at worse case the edited resx files just get uploaded to a server where a new copy is downloaded on next app restart or alike.
Now, when I said "in the past", that was back in 2003 days. Recently I had to do this manually using the ResXResourceReader because of an existing assembly I could not modify.
Some example code (writing it from memory, completely untested):
using (var reader = new ResXResourceReader("[path-to-bin]/MyResources.resx"))
{
var value = reader["My_key_in_the_resx_file"].ToString;
}
Do note that by going this route, you do have access to other types of resources such as binary and files embedded int he resx files.
Lastly, watch your encoding formats. Some over-seas editors use UTF16. So going with a common Unicode converter may be needed.
Also note there is a ResXResourceWriter class, should you want to roll your own writers for updating the resx files through code.
I am wondering if it is possible to create tiff/eps image from XAML in WPF.
We are looking for printing high resolution images from existing XAML in WPF.
Please let me know if you have any suggestions.
Depending on what exactly you're trying to do you might want to look at the xsl-fo stuff. The goal of creating printable markup is the same but fo uses xml instead of xaml. Depending on your requirements you might be able to create xsl-fo directly instead of xaml. If not, I'm pretty sure you can find xaml to svg translators (there are lots that go from svg to xaml) and I know that xsl-fo can handle svg. For the last step of taking the xsl-fo to tiff I've used the Ecrion software but I'm sure there are others by now that also do a good job. Hope that helps...