RredCat

Stories submitted by RredCat

Trouble with resources in WP7(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 9 months, 10 days ago

I started a few projects on WP7. It was done just for fun and for improving my skills (Fun was profitable - I won in Ukrainian WP7 competition). So I had completed my projects and tried to localize it. I met some issues: read more...

add a comment |category: |Views: 2

tags: another

Trimmed TextBlock for Windows Phone 7.(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 1 year, 3 months ago

Unfortunately WP7 is based on Silverlight 3. So we can't use some nice features of Silverlight 4 i.e. dynamic key word or TextBlock's trimming. But I've solved issue with trimming for Silverlight 3. Solution is here. Let me explain which code I use in WP7 project: read more...

add a comment |category: |Views: 30

tags: another

"using" directive in aspx's pages.(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 1 year, 5 months ago

It is funny but I don't know about this. I used full name of type (namespace+type name) in aspx pages. It is unnecessary. ASP.NET has directive for this. <%@ Import namespace="value" %> Sometime we omit in haste important things. read more...

add a comment |category: |Views: 4

tags: another

ASP.NET MVC aplication inside in an iframe (fix issue with empty sessi(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 1 year, 6 months ago

I developed application using ASP.NET MVC framework. It worked well but when I put my app inside of iframe I founded that in some case in Internet Explorer application missed session. I started to investigate for the source of the issue. read more...

add a comment |category: |Views: 11

tags: another

Unit Tests for ASP.NET MVC application that uses resources in code beh(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 1 year, 8 months ago

I started a project that uses ASP.NET MVC. This project requests multilingual support. I use resources for this. It works well when I use resource's properties in the View's layer but when I call resource's properties from code behind.. read more...

add a comment |category: |Views: 6

tags: another

Trimmed TextBlock for Silverlight.(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 2 months ago

Not always Silverlight TextBlock that contains long text has enough space for shows all this text. TextBlock clips text in this case - this behaviour isn't best way for this. Because I wait that TextBlock not only trims but also adds "..." to clipped text. WPF has brilliant property that helps to resolve this trouble - TextTrimming. I implemented this possibility for Silverlight and now want to present it for you. read more...

add a comment |category: |Views: 57

tags: another

Trips&Ticks: Easy way to navigate from XAML to class's definition.(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 2 months ago

Working with XAML code in VS2008 I have just found that I can easy jump to class's or property definition. read more...

add a comment |category: |Views: 11

tags: another

Zoom event for FlowDocumentPageViewer (corrected)(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 4 months ago

When I wrote my article Zoom and page chaged events for FlowDocumentPageViewer I make mistake, you can read about it - there. However Martin offer solution for this problem. But his solution doesn't like me, overriding of OnPropertyChanged isn't best solution because this method is risen in many cases so any logic there is serious performance issue. So how can we fix it in other way? read more...

add a comment |category: |Views: 2

tags: another

How to implement GroupName for RadioButton in WPF DataGrid's column?(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 4 months ago

Download source files - here It is very easy. We should use DataGridTemplateColumn for this. My acquaintance requested to me show it. I added source code where implemented this. Some notes: read more...

add a comment |category: |Views: 56

tags: another

Web access to Team Foundation Server.(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 4 months ago

I have been starting to work with Team Foundation Server as source control and bag tracking system for 2 month. In this time we migrated from one TFS to another. So sometime we needed access to both these servers (one as bug track, another as source control). I said to my manager about web access tool for TFS he heard it already that this tool is very cool but expensive. It isn't truth. read more...

add a comment |category: |Views: 18

tags: another

Useful code snippets for WPF developer.(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 6 months ago

I want to share very useful in my opinion code snippets for WPF developers. Most of they were created my friend - Dmitrij Zakharov. Moreover I want to add a short description to each snippets. Note: The Code Snippet Inserter inserts a code snippet at the cursor location, or inserts a surround-with code snippet around the currently selected code. read more...

add a comment |category: |Views: 22

tags: another

Zoom and page chahged events for FlowDocumentPageViewer(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 6 months ago

Kent Boogaart have written an article that describe approach searching and highlighting text in FlowDocumentPageViewer - Search and Highlight Text in an Arbitrary Visual Tree. Unfortunate, two serious issues present there. I copy theirs description from msdn forum: 1. When I change the pages of the FlowDocumentPageViewer, my Rectangular highlighted area remains the same and it is not sinking with the Text. 2. When I zoom in or zoom out of the FlowDocumentPageViewer, the text gets zoomed but the Highlight rectangle remains in the same position. read more...

add a comment |category: |Views: 11

tags: another

How to implement TextBox with PlaceHolder in WPF(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 6 months ago

Using PlaceHolder is very useful thing for UI in any type application. I want to show a short way how can you implement it in WPF. You can custom TextBox and add place-holder text on MouseEnter and remove on MouseLeave events. In this case place-holder's text looks like original text.. You can experiment with Foreground property, but truth me - you will not be satisfy. Let my suggest other way. read more...

add a comment |category: |Views: 215

tags: another

Performance degrades in your Silverlight App!? What can you do?(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 6 months ago

Some time ago I had written Silverlight app and I confronted with difficulties of difference between WPF and Silverlight :). When I had vanquished mismatches I found that performance of my app was serous degraded. I have done a little investigate of ways that can help to correct this issues. 1. MaxFrameRate 2. EnableGPUAcceleration & BitmapCash 3. CompositionTarget.Rendering read more...

add a comment |category: |Views: 7

tags: another

Do you know how you can unsubscribe from anonymous method?(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 9 months ago

Anonymous Methods is a useful feature which we receive in Framework 2.0. It allows to easy pass a small code block as a delegate parameter (you can set a large block code but this code will be harmful because it is complex and isn't clear for perception). For example: button1.Click += delegate { MessageBox.Show( "Anonymous" ); }; But I have one trouble. What can I do if I want to unsubscribe from event. Seems it is subscribed finally, isn't it?.. Noup! If we declare instance of delegate before define we can unsubscribe a event from this delegate in the code block. For example: read more...

add a comment |category: |Views: 14

tags: another

LINQPad (new version) - nice tool that can help you to stady LINQ.(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 2 years, 9 months ago

LINQPad is nice tool that can help you to study LINQ. I have read firs overview of this tool. Absence auto-complete grieves most people. Auto-complete is present in new version. This option requiring payment. IMHO: auto-complete is more detrimental than efficiency for studying (but very useful for work). But I want say not about that. LINQPad is obtain other interesting feature. Author of this tool Joseph Albahari with your brother had written book "C# 3.0 in a Nutshell" and he added LINQ samples from ... read more...

add a comment |category: |Views: 29

tags: another