|
Thanks for the hint. I tried the WindowSettings.Title but as you have pointed out, it is only accesible via XAML Attribute Usage and is not settable in code-behind or usable via data binding.
I think I've found another solution:
Im accessing the Main Application Window via "Application.Current.MainWindow" (see here[^]). This Application Class Property is of the Type System.Windows.Window (see here[^]) which has a settable Property "Title". Now I can at least set the main window title during runtime via a method:
private void SetMainTitle(string TitleStr)
{
if (string.IsNullOrEmpty(TitleStr))
{
}
else
{
Application.Current.MainWindow.Title = TitleStr;
}
}
|
|
|
|
|
I am trying to manke a generic HierarchicalDataTemplate to be used in all TreeViews. I am creating a Templates.xaml where I have the following template
<!--
<HierarchicalDataTemplate x:Key="TreeNodeTemplate" DataType="{x:Type vm:TreeNodeVM}" ItemsSource="{Binding Children}">
<StackPanel Orientation="Horizontal">
<Image Width="16" Height="16" Margin="3,0"
Source="{Binding ImageSource, Converter={StaticResource ImageFromAssetsConverter}}" /><<<< error here
<TextBlock Text="{Binding NodeLabel}" Margin="3" />
</StackPanel>
</HierarchicalDataTemplate>
My problem is that I cannot work out how to reference the Converter ImageFromAssetsConverter which lives in the Code folder. I have declared the code folder in the .xaml header.
xmlns:code="clr-namespace:ClassBuilder.Code">
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
First of all, if this template can be used across projects, you have to specify which assembly i<t is in as well. The problem you look to be having is that you haven't supplied the ImageFromAssetsConverter key. This would look something like
<code:ImageFromAssetsConverter x:key="ImageFromAssetsConverter" />
|
|
|
|
|
Pete O'Hanlon wrote: First of all, if this template can be used across projects
Bloody hell I just want to get the dammed thing working in my POC, I'm happy to make it project specific and C&P it from one project to the next as it is still evolving.
I have the reference in my App.xaml and the template works fine when placed inside the TreeView on the view.
<!--
<ResourceDictionary>
<code:ImageFromAssetsConverter x:Key="ImageFromAssetsConverter" />
</ResourceDictionary>
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
The key should be defined in Templates.xaml rather than App.xaml. Just move that line into your template file and you should be good to go.
|
|
|
|
|
Wheres the big sloopy kiss icon - thank you that worked nicely, now to tune it to do what I want (as apposed to what I tell it to)
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Not a problem. Glad I could help.
|
|
|
|
|
I need to create a WPF app that posts a message to a Facebook wall. I'm doing it in Win 8/Metro. I have the SDK, I and found this
http://blog.prabir.me/post/Facebook-CSharp-SDK-What%E2%80%99s-new-in-v5-3.aspx[^]
The Facebook Developer site doesn't have any info about Windows Metro development.
I have the project set up, but aside from the link above there's not much help out there. Again, all I want to do is post a message to a Facebook wall.
So far I have this:
public MainWindowViewModel()
{
try
{
Action<object> action = handleTask;
var fb = new FacebookClient(FACEBOOK_ID, FACEBOK_SECRET);
var task = fb.GetTaskAsync("4");
task.ContinueWith(action);
}
catch (FacebookApiException ex)
{
throw ex;
}
}
private void handleTask(object data)
{
}
The handleTask method gets called, but I can't figure out the type being passed. The data in it appears to be Zuckerberg's FB info (???).
Can anyone point me in the right direction?
Everything makes sense in someone's mind
modified 27-Feb-12 20:12pm.
|
|
|
|
|
Dear People
I've installed a trial version of Intersoft WebUI Studio 2011 R2 SP1, could someone help me how to activate in to full activation at desing time
kind regards
lapeci
|
|
|
|
|
Your asking people who make a living from writing software about how to crack a 3rd party ASP development product in a WPF/Silverlight forum.
I assume you should contact Intersoft, I assume the trial version of the tools are crippled!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
LAPEC wrote: Intersoft
I am quite sure that they would be happy to help you activiate the full version.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
|
|
|
|
|
This[^] should do the trick nicely.
|
|
|
|
|
Hi
Have you activatd it ,now? I've installed it,too.I'm also looking for the License Key.
|
|
|
|
|
You should go to http://intersoftpt.com/store in order to purchase the license, or you can directly contact martin@intersoftpt.com for more information about the license.
|
|
|
|
|
I am trying to emulate the preview that is in this app...
The app I am referring to is an app for the iPad. I am trying to do this for my own touch screen WPF app. What I am wanting it a panel of some kind that I can pull up that shows a zoomed in version of a specified area that the user clicked. I have tried layout and render scale transforms the problem that I run into is that when the "preview" area is zoomed in and the user writes the "note" area shows the ink in the wrong place... Also the "preview" area looks terrible because of the scaling the background image is very pixelated. Any ideas or suggestions are greatly appreciated thanks for you time.
http://www.use.com/8cfcfc554a15fbba702e[^]
Humble Programmer
|
|
|
|
|
what is the difference between Prism 1.0 and Prismv4?
Please a tuto Prismv4 WPF
Thank you !!
|
|
|
|
|
See here[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Have a look at the Prism documentation for both 4.x and 2.x here[^].
|
|
|
|
|
To use WCF service in c# windows application there is option to add service reference (pass url) and use it.
But i did not find any such option in VC++.
Can you guide me how to use it in VC++.
|
|
|
|
|
|
As the Design and Architecture forum seems to have vanished I will ask the questions here.
We have successfully moved to Silverlight as our UI with WCF driving the data.
We exist exclusively behind the firewall.
We have very tight security policies (no admin, net nazi, firewall between network regions). IT has some serious trust issues
Am I going to get any benefit from using WPF via clickonce or WPF in a browser.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
If you don't need full desktop feature access, then you aren't really going to see any benefits from the user experience point of view.
|
|
|
|
|
Full desktop would be nice but fighting the trust battle with IT would be irritating. I was more interested in whether System.Data being available to the UI makes a difference, Do you serialize datatables or pass collections as with Silverlight.
We do a lot of small file up/download, passing bits of data around and full trust would be useful there. Having a user try and upload 100mb over the WAN would get me sacked. With SL/WCF there are built in limits that I'm not sure apply with WPF.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I'm sorry but I don't understand your question.
If you have already moved to Silverlight, then why are you wondering about using WPF via clickonce or in a browser?
|
|
|
|
|
Well I feel like I may be missing out, WPF has a larger feature set than Silverlight but it seems they are all around the trust issues.
Really I'm looking for a benefit comparison, there are a number of feature comparisons that seem to point out limitations in Silverlight and how to get around them, out of browser and elevated trust mainly.
Never underestimate the power of human stupidity
RAH
|
|
|
|