Hello,
I'm starting a new project (tending to be a large one in future), and as well starting with xaml, prism and RadControls (that we, honestly, tried for WinForms several years ago). Now for WPF and SL.
Currently the question arised regarding paths in Silverlight RibbonView demo for "Paint with MVVM".
Tha MainViewModel.cs contains this code:
which in demo SL application results in a certain directory within the demos. The name of that directory does not have the name (or name part) "components". I used Procmon to understand where an application tries to locate the images, and it looks to me that it at first searches the drive root, starting with the folder named "RibbonView;component" and then the project folder, again starting with this wierdly named subfolder.
I understand that somehow this semicolon should split the whole path into several, but apparently it does not. I tried to prepare my solution without other code, mostly just by copying whole viewmodels from the demos. But somehow Procmon shows that in case of demos individual folder names are returned, but in my case this concatenated folder is searched for, and obviously not located. Didn't find anything important in Docs for string.Format(string, object, object) eather.
So, what this semicolon means here, and what is a best solution to load images in SL application for a dynamic RibbonView?
Thank you!
I'm starting a new project (tending to be a large one in future), and as well starting with xaml, prism and RadControls (that we, honestly, tried for WinForms several years ago). Now for WPF and SL.
Currently the question arised regarding paths in Silverlight RibbonView demo for "Paint with MVVM".
Tha MainViewModel.cs contains this code:
private
const
string
format =
"/RibbonView;component/Images/RibbonView/{0}/{1}"
;
private
string
GetPath(
string
fileName)
{
string
icon =
string
.Format(format, GetTheme(), fileName);
return
icon;
}
I understand that somehow this semicolon should split the whole path into several, but apparently it does not. I tried to prepare my solution without other code, mostly just by copying whole viewmodels from the demos. But somehow Procmon shows that in case of demos individual folder names are returned, but in my case this concatenated folder is searched for, and obviously not located. Didn't find anything important in Docs for string.Format(string, object, object) eather.
So, what this semicolon means here, and what is a best solution to load images in SL application for a dynamic RibbonView?
Thank you!