where do i find my yootheme templates customiser css file location - joomla3.0

I am using a yootheme template yoo_master2, and I created a new style for my site by going to
extensions->templates->"select styles from the left menu"->select template name->options->settings->customiser
I then made the changes required and saved the changes as a new style and applied them to my site. The problem I am having is I cannot find the newly created css file anywhere in my file directory.
can someone tell me where I can find it please? the yootheme documentation says this "The /styles/STYLE-NAME/layouts folder of your theme is at the top of the hierarchy and modifications or additions you make here will override all other theme files. Also this folder will be preserved during updates, so it's the safest place to make your modifications."
but I don't seem to have a styles folder anywhere?
appreciate your help
many thanks
Luke

Related

editing the dnn:pagingcontrol

I want to edit the ascx file for the pagingcontrol because it appears like this:
paging control
Notice the "Page 1 of 4" and the "First..." sticks together, and it is really annoying to look at. But when i tried to look for the pagingcontrol file to try to edit it, I cannot find it anywhere.
I read somewhere that there is supposed to be a pagingcontrols file in the controls folder but it is not there for me.
How can i edit the pagingcontrol file?
Thanks.
I would recommend using CsS to style this. Changes to the default controls is a breaking change and would be lost with an upgrade.

Image path for ribbon application item

I got little problem with my image path for ribonn aplicaton menu item.
I got this piece of code:
<ribbon:RibbonApplicationMenuItem x:Name="MenuItemLogout" Header="Odhásit"
ImageSource="/Resources/logoutSmall.png"
Command="{Binding RelogUserCommand}"/>
The thing i want is: the right path of image. Because in this case, Visual Studio cant find that path. This are two different project. The one where i using this ribbon is called Z05.WPF.WeighingSystem in folder 01_LoadingPlace/ViewAnnouncedVehicles - in this folder i have particular xaml and view model.
And i have another project called Z05.DesktopApplication where i have folder called Resources and there i have all of my images. I also tried to use this path:
pack://application:,,,/Resources/
But its also doesnt work.
Any tips? Thanks! :)

What is the correct way to define images in XAML

Currently I add an image in XAML this way :
Put the file in the project's folder, in a sub-directory named "Resources",
Set its "Build Action" property to "Resource",
Add in my XAML file : <Image Source="/Resources/myImage.png />
And it works great.
But in SO I keep seeing people writing this instead :
<Image Source="pack://application:,,,/MyApplicationNamespace;component/Resources/myImage.jpg" />
Also recently, I've found that in Project Properties -> Resources, you can add files like images, texts...
So which of these 3 possibilities should I use ?
The Image Source="/Resources/myImage.png syntax used in your XAML to refer to an image in a sub folder is actually equivalent to the following syntax pack://application:,,,/Resources/myImage.jpg and this is one of the variations used to access binary resources in XAML.
Since the first two options are the same written differently this leaves us with the third option.
When to use the resource file ?
I usually tend to use them when i have different resources assemblies that are used as satellite assemblies which are in turn used for localization to different cultures. Also they can be used when you want to access those resources and switch them at run-time.

Find all objects and reapply current styles in Silverlight/XAML

I'm working on customizing the appearance of a silverlight app on user-click and with some help have managed to swap out the Resource Dictionary and reapply a style to a button - where the reapplied style comes from the new Resource dictionary. This works but I need to make it scalable, since the whole app needs to be restyle with a single user click.
I reapply the style of the button with the following statement:
this.button1.Style = (Style)App.Current.Resources["ButtonTheme"];
The two things I want to do are:
Get a collection of all objects on the page (all buttons, text boxes everything)
Loop through them and reapply whatever is the object's current style (after swapping out the Resource Dictionary)
Help here greatly appreciated. Also, please tell me if there is a better approach altogether.
Many thanks
You need to remove the "old" theme from the resource dictionary and then merge in the new one
See this link and this
You don't need to do it manually.
Please take a look at this sample http://weblogs.asp.net/lduveau/archive/2010/05/31/dynamically-apply-and-change-theme-with-the-silverlight-toolkit.aspx

WPF - Shut-off autogen of Main in App.g.cs

I'm learning WPF.
I want to provide my own Main method in my App.xaml.cs rather than getting one generated for me in App.g.cs. However I keep getting conflicts because I haven't found out how to stop an additional Main from being generated.
Is there a setting in my project file or elsewhere that controls this?
I found the answer here. http://learnwpf.com/post/2007/12/13/How-can-I-provide-my-own-Main%28%29-method-in-my-WPF-application.aspx
It is:
The way WPF knows to create the Main() method for a particular xaml file is through the build action property set for App.xaml - it has a build action of ApplicationDefinition. By changing this to Page WPF won't create the Main method and you can provide your own in a regular class file you add to the project.
However in the comments to the above blog, a comment notes there may be issues with blend and it references: http://blogs.msdn.com/expression/archive/2008/04/09/creating-a-wpf-blend-project-that-loads-resources-in-code.aspx . I don't fully understand the issues yet.
You can also just create a separate class (for example, Entry) which is responsible for bootstrapping your application. Then go to project settings and set your startup object to Entry. That way you don't even have to disable the autogenerated method.
The easiest way is to set the Build Action in the Properties window from ApplicationDefinition to Page for App.Xaml.
Then you can define your own entry point.
I found a solution:
Copy the data from your app.xaml file
Delete app.xaml file and re-create with the same name
Create `main` method in .cs file, and paste your old copied code into it
One way is to forgo defining an Application-derived class in XAML, so you can manually define the Main method with your custom requirement
The Easy way just create a class like Startup.cs with build action to compile
and remove ApplicationDefinition from App.xaml convert that to page
and remove it from any other file in the application

Resources