Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all 1760 articles
Browse latest View live

New Post: Path to configuraiton file missing

$
0
0
i have the following in my App.xaml
<Application x:Class="TestApplication.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:TestApplication">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="silver.xaml" />
                <ResourceDictionary>
                    <local:AppBootstrapper x:Key="bootstrapper" />
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
This seems to work as im able to use the application, but in my designer i am always getting a blue underline on the <local:AppBootstrapper x:Key="bootstrapper" /> line with the following error:
"Path to configuration file is missing:"

any idea what this is related to? doesnt seem to be causing any runtime problems

Created Unassigned: Caliburn Obfuscation [361]

$
0
0
Hi everyone,
I created a simple application which has a reference to Caliburn.Micro (WPF45 Version).
After trying to obfuscate the dll or the exe with SmartAssembly my application crashed right away
(I tried several times to configure in different way but no luck).

I know that it's possible to skip of some classes by adding an attribute,
but unfurtanlly my application crashed again.

Does anyone know what should I do?

Thanks in advance.

New Post: Caliburn Obfuscation

$
0
0
Hi everyone,
I created a simple application which has a reference to Caliburn.Micro (WPF45 Version).
After trying to obfuscate the dll or the exe with SmartAssembly my application crashed right away
(I tried several times to configure in different way but no luck).

I know that it's possible to skip of some classes by adding an attribute,
but unfurtanlly my application crashed again.

Does anyone know what should I do?

Thanks in advance.

Commented Unassigned: Caliburn Obfuscation [361]

$
0
0
Hi everyone,
I created a simple application which has a reference to Caliburn.Micro (WPF45 Version).
After trying to obfuscate the dll or the exe with SmartAssembly my application crashed right away
(I tried several times to configure in different way but no luck).

I know that it's possible to skip of some classes by adding an attribute,
but unfurtanlly my application crashed again.

Does anyone know what should I do?

Thanks in advance.
Comments: Project is now on GitHub: - issues should go to https://github.com/BlueSpire/Caliburn.Micro/issues - questions to https://stackoverflow.com/questions/tagged/caliburn.micro

Commented Unassigned: Buttons inside a Flyout [360]

$
0
0
Hi together,

i have a little problem using Buttons inside of a Flyout.
The Buttons methods should be invoked via caliburn.message.... .
Every time the application starts, the Buttons wont react.
Open the Flyout again, everthing works fine.

Has anybody an idea whats the reason for this?


Comments: Project is now on GitHub: - issues should go to https://github.com/BlueSpire/Caliburn.Micro/issues - questions to https://stackoverflow.com/questions/tagged/caliburn.micro

Closed Feature: [Phone] Tombstoning Doesn't Support Composite View Models [139]

$
0
0
The scenario in question is that in a WP7 app, a view model (a Conductor for example) has an Items collection, which may contain other view models. The user can add new items on the fly, and therefore we don't have specific design-time knowledge of them. However, we want to be able to persist them using CM's tombstoning support.

We should be able to, in the storage handler for the conductor, specify that the Items property (or any other collection) should get persisted. Ideally, the storage mechanism should then look up any available storage handlers for the view model types contained in Items (or other specified collections) in order to persist them.

Currently, the storage mechanism simply attempts to serialize the objects in the collection in their entirety, which typically results in an exception. I've worked around this in my app using a custom implementation of IStorageHandler that does its own binary serialization; but I'd rather use the same mechanism for everything.
Comments: Moved to github.

Closed Issue: Exception on Toggle in/out of view in Win8.1 [354]

$
0
0
In Win8.1, if you have a ItemsControl derived type that removes and re-adds some portion of its children and you're using the c:View.Model binding on a data template to convert child view models into their views, you hit an issue.

The issue is this. The OnModelChanged event gets fired every time that the child appears or disappears, which in and of itself would not be bad. However, the following pattern is then employed ...

1. Use the ViewLocator to get the view.
2. Set the ContentProperty on the target to the view.

The problem lies in that the ViewLocator attempts to use a cached view by default and that view is still part of the visual tree. Therefore, the setting the content property fails because the view is already the child of another element in the tree.

This has been tested with several Syncfusion controls that employ this visual hiding/reshowing.

The workaround is to add this override, which trades out the exception (and failure to display the view-model with instead a memory increase as the view keeps being created.


public override object GetView(object context = null) {
return null;
}
Comments: Moved to github

Closed Issue: CacheViews=false should not influence IViewAware.GetView() behaviour [343]

$
0
0
see https://caliburnmicro.codeplex.com/discussions/261999 for details
Comments: Moved to github

Closed Issue: [Phone] NullReferenceException in TaskController [337]

$
0
0
Hi,

I'm getting null ref errors in TaskController.OnTaskComplete method because the "request" field is null. I dug deeper and while I don't have a solid understanding of why it's happening here is what is happening:

1. Page A does EventAggregator.RequestTask<PhotoChooserTask>()
2. The PhotoChooserTask completes, Page A's async void Handle(TaskCompleted<PhotoResult> completed) fires.
3. Page A navigates to Page B which does EventAggregator.RequestTask<ShareMediaTask>()
4. Pres Back button twice to get back to Page A.
5. Page A does EventAggregator.RequestTask<PhotoChooserTask>()
6. The PhotoChooserTask completes and the NullReferenceException crash happens in the TaskController.OnTaskComplete.

The culprit is this, on step 5 the TaskController handles the TaskExecutionRequested and executes this bit of code:

```
var @event = taskType.GetEvent("Completed");
if(@event != null) {
request = message;
@event.AddEventHandler(request.Task, CreateOnTaskCompletedDelegate(@event));
}
```

As soon as the event handler is attached the Chooser's event fires with TaskResult.Cancel result. TaskController.OnTaskComplete executes and clears out the __request__ field.

So when the Chooser is actually shown and completes and OnTaskComplete is fired again the __request__ field is null.
Comments: Moved to github

Closed Issue: [Win8] StartDesignTime() is not executed in designer [344]

$
0
0
`StartDesignTime()` logic is not executed in designer.

see https://caliburnmicro.codeplex.com/discussions/463911 for details
Comments: Moved to github

New Post: Caliburn Obfuscation

$
0
0
YossiExploiteam wrote:
Does anyone know what should I do?
Stop doing something as useless as running obfuscation tools :-)

Commented Unassigned: Caliburn Obfuscation [361]

$
0
0
Hi everyone,
I created a simple application which has a reference to Caliburn.Micro (WPF45 Version).
After trying to obfuscate the dll or the exe with SmartAssembly my application crashed right away
(I tried several times to configure in different way but no luck).

I know that it's possible to skip of some classes by adding an attribute,
but unfurtanlly my application crashed again.

Does anyone know what should I do?

Thanks in advance.
Comments: Please ask this on stack overflow.

Closed Unassigned: Caliburn Obfuscation [361]

$
0
0
Hi everyone,
I created a simple application which has a reference to Caliburn.Micro (WPF45 Version).
After trying to obfuscate the dll or the exe with SmartAssembly my application crashed right away
(I tried several times to configure in different way but no luck).

I know that it's possible to skip of some classes by adding an attribute,
but unfurtanlly my application crashed again.

Does anyone know what should I do?

Thanks in advance.
Comments: Move to stackoverflow.

Closed Unassigned: CameraCaptureTask with Caliburn Micro [359]

$
0
0
How to?
thank you
Comments: Move to stack overflow

Closed Unassigned: Buttons inside a Flyout [360]

$
0
0
Hi together,

i have a little problem using Buttons inside of a Flyout.
The Buttons methods should be invoked via caliburn.message.... .
Every time the application starts, the Buttons wont react.
Open the Flyout again, everthing works fine.

Has anybody an idea whats the reason for this?


Comments: Please move to github.

New Post: Improve my WPF Application resposiveness

$
0
0
Hello,
I've a WPF Application (Framework)4.0 I started 2 years ago that was to have 2 funcion and now we're around 100... btw I' ve got a question since in those 2 years I've just added blocks without refactoring... I've a telerik busy indicator on each view that is set to true while data are beign fetched from the DB, that runs almost fine and performs well.. now I've stared using Servicestack for retrieving data (instead of ideablade).

When I've a single load it's fine. when I do some in parallel using Task.WaitAll(...) I got my GUI to be freezed for sometime and it hurts me... what's the best approach for avoiding this?

Another question it's related to the memory leaks.... I've almost all of my view that have a gridview that's bound to a BindableCollection<T> ...have I to take care of something special when closing a view? just not to leave a lot of stuff in memory
Thanks

New Post: How to use CM without "Application"-Object

$
0
0
Hi,
I am Novice to CM. I am in the same situation when Akkarin started this discussion and Eisenberg's reply to use "new Bootstrapper(false)". Well, I guess this was working with older versions of CM, but now the current version what I am using is "v1.5.2.0" and this does not support "new Bootstrapper(false)" any more.

Background: I am intending to introduce CM in an Class Library project under an existing application which does not use CM (A simple WPF application with MVVM).

Anybody could help me with a suggestion how to counter attack this problem. A demo code would be an added advantage.

Thanks in advance...

New Post: problem with locating viewmodel

$
0
0
Hello,
I've in a usercontrol defined this item

<search:RicercaRapportoInlineView x:Name="RapportiSearch"></search:RicercaRapportoInlineView>

where it's definition is

<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock x:Name="SearchText" HorizontalAlignment="Left" TextAlignment="Center" Text="Rapporto"
                                      VerticalAlignment="Center"/>
        <TextBox x:Name="PART_SearchTextBox" VerticalContentAlignment="Center" HorizontalAlignment="Left"
                                     Width="200" BorderBrush="Gray" BorderThickness="1" 
                                     Text="{Binding Path=SearchText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource TemplatedParent}}"/>
        <TextBlock x:Name="tb2" HorizontalAlignment="Left" Text="Intestazione" 
                                       VerticalAlignment="Center" Margin="5,0,0,0"/>
        <TextBlock x:Name="PART_DescriptionTextBlock" TextAlignment="Center" VerticalAlignment="Center"
                                       Text="{Binding Path=SelectedRapporto.INTESTAZIONE,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource TemplatedParent}}"
                                       MaxWidth="500" Background="LightGray" MinWidth="200" />
        <Button x:Name="GridSearch"  HorizontalAlignment="Right" Margin="2,0,0,0" >
            <Button.Content>
                <Image Height="15" Width="15">
                    <Image.Source>
                        <BitmapImage UriSource="/DOME;component/Media/find.png"></BitmapImage>
                    </Image.Source>
                </Image>
            </Button.Content>
        </Button>
    </StackPanel>
and I've its viewmodel ... now in another viewmodel I've defined a public property called

[Import]
public RicercaRapportoInlineViewModel RapportiSearch { get; set; }

When I click on the GridSearch as on the other items of my usercontrol no action is beign fired in the viewmodel...I think there's something missing on the binding.... can someone help me?
tHanks

New Post: WPF button Command vs Content

$
0
0
Thanks Morgan that was what I was kinda expecting yet I was not sure! I will revert my fix to your format.

About guarding the properties I already have the habit of doing that to ensure there are not mismatches within workflow of operations but i just not thought necessary to represent in the example above.

Again thanks
Luis

New Post: Error when closing a dialog

$
0
0
I have this function inside my mainview model, and want to fire up a login dialog.
The dialog commes up but when i close the dialog again from cancel or ok modal result i got a leak error.
Any sugestions
procedure TMyMainViewModel.ShowLoginDialog;
begin
WinMan := IoC.Get<IWindowManager>();
if WinMan.ShowDialog(Ioc.Get<ILoginViewModel>()) = mrCancel then
begin

end;
end;
Viewing all 1760 articles
Browse latest View live