Comments (2)
You may want to disable project code when working with this page. The page is attempting to gather the window width while in design time mode and fails. On the XAML designer you can enable and disable project code easily.
As an aside: I would recommend using event triggers and storyboards instead of animating in the code-behind. It will make your life easier when using the designer. His method for animating was good, but I found it overly complicated and hard to debug. Cases like this popped up all of the time. You can easily make a custom animation control that can be used across other projects.
from fasetto-word.
Hello,
I am getting this error:
at System.Windows.Controls.Page.System.Windows.IWindowService.get_Width() at System.Windows.Controls.Page.get_WindowWidth() at UI.Animation.PageAnimations.SlideAndFadeInFromRight(Page page, Single seconds) in UI\Animation\PageAnimations.cs:line28 at UI.Pages.BasePage
1.AnimateIn() in \UI\Pages\BasePage.cs:line 115 at UI.Pages.BasePage
1.BasePage_Loaded(Object sender, RoutedEventArgs e) in \UI\Pages\BasePage.cs:line 97 at System.Threading.Tasks.Task.<>c.b__139_0(Object state) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)Because of this method:
If I change like this page.WindowWidth to 700:
It's working, how can I fix this?
The only solution I've found is by adding d:Content="{Binding}"
inside the frame itself not the page.
from fasetto-word.
Related Issues (20)
- LoginViewModel binding for Email not working HOT 2
- Use Fasetto.Word.Web.Server in WPF-Project HOT 1
- ConcurrencyException
- When Window is Maximized, it goes under the TaskBar. HOT 5
- large data
- Can't Run HOT 4
- Framework.Service bug HOT 3
- System.ArgumentException: 'The path is not of a legal form.' HOT 1
- How to remove old page feature
- Change item selection
- MinWidth and MinHeight does't work. HOT 1
- Unable to open database file HOT 1
- DockChanged not detected when discplay scaling at 100%
- Errors using the code HOT 1
- Window cut when TaskBar is moved
- How to add a new dialog control?
- Question - Pass data between Viewmodels HOT 5
- Question - Modify ObservableCollection from Non-UI-Thread
- WPF Application error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fasetto-word.